diff --git a/graphql/codegen/src/__tests__/codegen/__snapshots__/cli-generator.test.ts.snap b/graphql/codegen/src/__tests__/codegen/__snapshots__/cli-generator.test.ts.snap index dd48e9391..4e0126985 100644 --- a/graphql/codegen/src/__tests__/codegen/__snapshots__/cli-generator.test.ts.snap +++ b/graphql/codegen/src/__tests__/codegen/__snapshots__/cli-generator.test.ts.snap @@ -362,12 +362,7 @@ No developer or entity involved in creating this software will be liable for any `; exports[`cli docs generator generates CLI skill files 1`] = ` -"--- -name: cli-context -description: Manage API endpoint contexts for myapp ---- - -# cli-context +"# Context Management @@ -401,12 +396,7 @@ myapp context list `; exports[`cli docs generator generates CLI skill files 2`] = ` -"--- -name: cli-auth -description: Manage authentication tokens for myapp ---- - -# cli-auth +"# Authentication @@ -437,12 +427,7 @@ myapp auth status `; exports[`cli docs generator generates CLI skill files 3`] = ` -"--- -name: cli-default-car -description: CRUD operations for Car records via myapp CLI ---- - -# cli-default-car +"# car @@ -477,28 +462,11 @@ myapp car create --make "value" --model "value" --year "value" --isElectric "val \`\`\`bash myapp car get --id \`\`\` - -### Update a car - -\`\`\`bash -myapp car update --id --make "new-value" -\`\`\` - -### Delete a car - -\`\`\`bash -myapp car delete --id -\`\`\` " `; exports[`cli docs generator generates CLI skill files 4`] = ` -"--- -name: cli-default-driver -description: CRUD operations for Driver records via myapp CLI ---- - -# cli-default-driver +"# driver @@ -533,74 +501,104 @@ myapp driver create --name "value" --licenseNumber "value" \`\`\`bash myapp driver get --id \`\`\` +" +`; -### Update a driver +exports[`cli docs generator generates CLI skill files 5`] = ` +"# currentUser + + + +Get the currently authenticated user + +## Usage \`\`\`bash -myapp driver update --id --name "new-value" +myapp current-user \`\`\` -### Delete a driver +## Examples + +### Run currentUser \`\`\`bash -myapp driver delete --id +myapp current-user \`\`\` " `; -exports[`cli docs generator generates CLI skill files 5`] = ` -"--- -name: cli-default-current-user -description: Get the currently authenticated user ---- - -# cli-default-current-user +exports[`cli docs generator generates CLI skill files 6`] = ` +"# login -Get the currently authenticated user +Authenticate a user ## Usage \`\`\`bash -myapp current-user +myapp login --email --password \`\`\` ## Examples -### Run currentUser +### Run login \`\`\`bash -myapp current-user +myapp login --email --password \`\`\` " `; -exports[`cli docs generator generates CLI skill files 6`] = ` +exports[`cli docs generator generates CLI skill files 7`] = ` "--- -name: cli-default-login -description: Authenticate a user +name: cli-default +description: CLI tool (myapp) for the default API — provides CRUD commands for 2 tables and 2 custom operations --- -# cli-default-login +# cli-default -Authenticate a user +CLI tool (myapp) for the default API — provides CRUD commands for 2 tables and 2 custom operations ## Usage \`\`\`bash -myapp login --email --password +# Context management +myapp context create --endpoint +myapp context use + +# Authentication +myapp auth set-token + +# CRUD for any table (e.g. car) +myapp car list +myapp car get --id +myapp car create -- \`\`\` ## Examples -### Run login +### Set up and query \`\`\`bash -myapp login --email --password +myapp context create local --endpoint http://localhost:5000/graphql +myapp context use local +myapp auth set-token +myapp car list \`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +- [car](references/car.md) +- [driver](references/driver.md) +- [current-user](references/current-user.md) +- [login](references/login.md) " `; @@ -1811,12 +1809,7 @@ No developer or entity involved in creating this software will be liable for any `; exports[`hooks docs generator generates hooks skill files 1`] = ` -"--- -name: hooks-default-car -description: React Query hooks for Car data operations ---- - -# hooks-default-car +"# car @@ -1854,12 +1847,7 @@ mutate({ make: '', model: '', year: '', isElectric: ' @@ -1897,12 +1885,7 @@ mutate({ name: '', licenseNumber: '' }); `; exports[`hooks docs generator generates hooks skill files 3`] = ` -"--- -name: hooks-default-current-user -description: Get the currently authenticated user ---- - -# hooks-default-current-user +"# currentUser @@ -1925,12 +1908,7 @@ const { data, isLoading } = useCurrentUserQuery(); `; exports[`hooks docs generator generates hooks skill files 4`] = ` -"--- -name: hooks-default-login -description: Authenticate a user ---- - -# hooks-default-login +"# login @@ -1953,6 +1931,53 @@ mutate({ email: '', password: '' }); " `; +exports[`hooks docs generator generates hooks skill files 5`] = ` +"--- +name: hooks-default +description: React Query hooks for the default API — provides typed query and mutation hooks for 2 tables and 2 custom operations +--- + +# hooks-default + + + +React Query hooks for the default API — provides typed query and mutation hooks for 2 tables and 2 custom operations + +## Usage + +\`\`\`typescript +// Import hooks +import { useCarsQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useCarsQuery({ + selection: { fields: { id: true } }, +}); +\`\`\` + +## Examples + +### Query records + +\`\`\`typescript +const { data, isLoading } = useCarsQuery({ + selection: { fields: { id: true } }, +}); +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [car](references/car.md) +- [driver](references/driver.md) +- [current-user](references/current-user.md) +- [login](references/login.md) +" +`; + exports[`multi-target cli docs generates multi-target AGENTS.md 1`] = ` "# myapp CLI - Agent Reference @@ -2955,12 +2980,7 @@ No developer or entity involved in creating this software will be liable for any exports[`multi-target cli docs generates multi-target skills 1`] = ` [ { - "content": "--- -name: cli-context -description: Manage API endpoint contexts for myapp (multi-target: auth, members, app) ---- - -# cli-context + "content": "# Context Management @@ -2991,23 +3011,11 @@ myapp context use local myapp context create production --auth-endpoint --members-endpoint --app-endpoint myapp context use production \`\`\` - -### List and switch contexts - -\`\`\`bash -myapp context list -myapp context use staging -\`\`\` ", - "fileName": "cli-context/SKILL.md", + "fileName": "cli-common/references/context.md", }, { - "content": "--- -name: cli-auth -description: Manage authentication tokens for myapp (shared across all targets) ---- - -# cli-auth + "content": "# Authentication @@ -3035,15 +3043,53 @@ myapp credentials set-token eyJhbGciOiJIUzI1NiIs... myapp credentials status \`\`\` ", - "fileName": "cli-auth/SKILL.md", + "fileName": "cli-common/references/auth.md", }, { "content": "--- -name: cli-auth-user -description: CRUD operations for User records via myapp CLI (auth target) +name: cli-common +description: Shared CLI utilities for myapp — context management and authentication across targets: auth, members, app --- -# cli-auth-user +# cli-common + + + +Shared CLI utilities for myapp — context management and authentication across targets: auth, members, app + +## Usage + +\`\`\`bash +# Context management +myapp context create +myapp context use + +# Authentication +myapp credentials set-token +myapp credentials status +\`\`\` + +## Examples + +### Set up and authenticate + +\`\`\`bash +myapp context create local +myapp context use local +myapp credentials set-token +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +", + "fileName": "cli-common/SKILL.md", + }, + { + "content": "# user @@ -3072,22 +3118,11 @@ myapp auth:user list \`\`\`bash myapp auth:user create --email "value" --name "value" \`\`\` - -### Get a user by id - -\`\`\`bash -myapp auth:user get --id -\`\`\` ", - "fileName": "cli-auth-user/SKILL.md", + "fileName": "cli-auth/references/user.md", }, { - "content": "--- -name: cli-auth-current-user -description: Get the currently authenticated user (auth target) ---- - -# cli-auth-current-user + "content": "# currentUser @@ -3107,15 +3142,10 @@ myapp auth:current-user myapp auth:current-user \`\`\` ", - "fileName": "cli-auth-current-user/SKILL.md", + "fileName": "cli-auth/references/current-user.md", }, { - "content": "--- -name: cli-auth-login -description: Authenticate a user (auth target) ---- - -# cli-auth-login + "content": "# login @@ -3136,15 +3166,49 @@ myapp auth:login --email --password --save-token myapp auth:login --email --password \`\`\` ", - "fileName": "cli-auth-login/SKILL.md", + "fileName": "cli-auth/references/login.md", }, { "content": "--- -name: cli-members-member -description: CRUD operations for Member records via myapp CLI (members target) +name: cli-auth +description: CLI commands for the auth API target — 1 tables and 2 custom operations via myapp --- -# cli-members-member +# cli-auth + + + +CLI commands for the auth API target — 1 tables and 2 custom operations via myapp + +## Usage + +\`\`\`bash +# CRUD for auth tables (e.g. user) +myapp auth:user list +myapp auth:user get --id +myapp auth:user create -- +\`\`\` + +## Examples + +### Query auth records + +\`\`\`bash +myapp auth:user list +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [user](references/user.md) +- [current-user](references/current-user.md) +- [login](references/login.md) +", + "fileName": "cli-auth/SKILL.md", + }, + { + "content": "# member @@ -3173,22 +3237,48 @@ myapp members:member list \`\`\`bash myapp members:member create --role "value" \`\`\` +", + "fileName": "cli-members/references/member.md", + }, + { + "content": "--- +name: cli-members +description: CLI commands for the members API target — 1 tables and 0 custom operations via myapp +--- + +# cli-members + + -### Get a member by id +CLI commands for the members API target — 1 tables and 0 custom operations via myapp + +## Usage \`\`\`bash +# CRUD for members tables (e.g. member) +myapp members:member list myapp members:member get --id +myapp members:member create -- \`\`\` + +## Examples + +### Query members records + +\`\`\`bash +myapp members:member list +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [member](references/member.md) ", - "fileName": "cli-members-member/SKILL.md", + "fileName": "cli-members/SKILL.md", }, { - "content": "--- -name: cli-app-car -description: CRUD operations for Car records via myapp CLI (app target) ---- - -# cli-app-car + "content": "# car @@ -3217,14 +3307,45 @@ myapp app:car list \`\`\`bash myapp app:car create --make "value" --model "value" --year "value" --isElectric "value" \`\`\` +", + "fileName": "cli-app/references/car.md", + }, + { + "content": "--- +name: cli-app +description: CLI commands for the app API target — 1 tables and 0 custom operations via myapp +--- -### Get a car by id +# cli-app + + + +CLI commands for the app API target — 1 tables and 0 custom operations via myapp + +## Usage \`\`\`bash +# CRUD for app tables (e.g. car) +myapp app:car list myapp app:car get --id +myapp app:car create -- +\`\`\` + +## Examples + +### Query app records + +\`\`\`bash +myapp app:car list \`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [car](references/car.md) ", - "fileName": "cli-app-car/SKILL.md", + "fileName": "cli-app/SKILL.md", }, ] `; @@ -4587,12 +4708,7 @@ No developer or entity involved in creating this software will be liable for any `; exports[`orm docs generator generates ORM skill files 1`] = ` -"--- -name: orm-default-car -description: ORM operations for Car records ---- - -# orm-default-car +"# car @@ -4630,12 +4746,7 @@ const item = await db.car.create({ `; exports[`orm docs generator generates ORM skill files 2`] = ` -"--- -name: orm-default-driver -description: ORM operations for Driver records ---- - -# orm-default-driver +"# driver @@ -4673,12 +4784,7 @@ const item = await db.driver.create({ `; exports[`orm docs generator generates ORM skill files 3`] = ` -"--- -name: orm-default-current-user -description: Get the currently authenticated user ---- - -# orm-default-current-user +"# currentUser @@ -4701,12 +4807,7 @@ const result = await db.query.currentUser().execute(); `; exports[`orm docs generator generates ORM skill files 4`] = ` -"--- -name: orm-default-login -description: Authenticate a user ---- - -# orm-default-login +"# login @@ -4728,6 +4829,53 @@ const result = await db.mutation.login({ email: '', password: '' } " `; +exports[`orm docs generator generates ORM skill files 5`] = ` +"--- +name: orm-default +description: ORM client for the default API — provides typed CRUD operations for 2 tables and 2 custom operations +--- + +# orm-default + + + +ORM client for the default API — provides typed CRUD operations for 2 tables and 2 custom operations + +## Usage + +\`\`\`typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: car, driver +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +\`\`\` + +## Examples + +### Query records + +\`\`\`typescript +const items = await db.car.findMany({ + select: { id: true } +}).execute(); +\`\`\` + +## References + +See the \`references/\` directory for detailed per-entity API documentation: + +- [car](references/car.md) +- [driver](references/driver.md) +- [current-user](references/current-user.md) +- [login](references/login.md) +" +`; + exports[`target docs generator generates combined MCP config 1`] = ` "{ "name": "myapp", diff --git a/graphql/codegen/src/__tests__/codegen/cli-generator.test.ts b/graphql/codegen/src/__tests__/codegen/cli-generator.test.ts index 4839022b2..0d04d177d 100644 --- a/graphql/codegen/src/__tests__/codegen/cli-generator.test.ts +++ b/graphql/codegen/src/__tests__/codegen/cli-generator.test.ts @@ -700,9 +700,10 @@ describe('multi-target cli docs', () => { const skills = generateMultiTargetSkills(docsInput); expect(skills.length).toBeGreaterThan(0); const fileNames = skills.map((s) => s.fileName); - expect(fileNames.some((n) => n.includes('auth-'))).toBe(true); - expect(fileNames.some((n) => n.includes('members-'))).toBe(true); - expect(fileNames.some((n) => n.includes('app-'))).toBe(true); + expect(fileNames.some((n) => n.startsWith('cli-auth/'))).toBe(true); + expect(fileNames.some((n) => n.startsWith('cli-members/'))).toBe(true); + expect(fileNames.some((n) => n.startsWith('cli-app/'))).toBe(true); + expect(fileNames.some((n) => n.startsWith('cli-common/'))).toBe(true); expect(skills).toMatchSnapshot(); }); diff --git a/graphql/codegen/src/core/codegen/cli/docs-generator.ts b/graphql/codegen/src/core/codegen/cli/docs-generator.ts index 83fd43b8d..414949d8f 100644 --- a/graphql/codegen/src/core/codegen/cli/docs-generator.ts +++ b/graphql/codegen/src/core/codegen/cli/docs-generator.ts @@ -8,6 +8,7 @@ import { getReadmeFooter, gqlTypeToJsonSchemaType, buildSkillFile, + buildSkillReference, } from '../docs-utils'; import type { GeneratedDocFile, McpTool } from '../docs-utils'; import { @@ -594,13 +595,15 @@ export function generateSkills( targetName: string, ): GeneratedDocFile[] { const files: GeneratedDocFile[] = []; + const skillName = `cli-${targetName}`; + const referenceNames: string[] = []; - const contextSkillName = 'cli-context'; - + // Context reference + referenceNames.push('context'); files.push({ - fileName: `${contextSkillName}/SKILL.md`, - content: buildSkillFile({ - name: contextSkillName, + fileName: `${skillName}/references/context.md`, + content: buildSkillReference({ + title: 'Context Management', description: `Manage API endpoint contexts for ${toolName}`, usage: [ `${toolName} context create --endpoint `, @@ -625,12 +628,12 @@ export function generateSkills( }), }); - const authSkillName = 'cli-auth'; - + // Auth reference + referenceNames.push('auth'); files.push({ - fileName: `${authSkillName}/SKILL.md`, - content: buildSkillFile({ - name: authSkillName, + fileName: `${skillName}/references/auth.md`, + content: buildSkillReference({ + title: 'Authentication', description: `Manage authentication tokens for ${toolName}`, usage: [ `${toolName} auth set-token `, @@ -650,18 +653,19 @@ export function generateSkills( }), }); + // Table references for (const table of tables) { const { singularName } = getTableNames(table); const kebab = toKebabCase(singularName); const pk = getPrimaryKeyInfo(table)[0]; const editableFields = getEditableFields(table); - const skillName = `cli-${targetName}-${kebab}`; + referenceNames.push(kebab); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${kebab}.md`, + content: buildSkillReference({ + title: singularName, description: `CRUD operations for ${table.name} records via ${toolName} CLI`, usage: [ `${toolName} ${kebab} list`, @@ -685,21 +689,12 @@ export function generateSkills( description: `Get a ${singularName} by ${pk.name}`, code: [`${toolName} ${kebab} get --${pk.name} `], }, - { - description: `Update a ${singularName}`, - code: [ - `${toolName} ${kebab} update --${pk.name} --${editableFields[0]?.name || 'field'} "new-value"`, - ], - }, - { - description: `Delete a ${singularName}`, - code: [`${toolName} ${kebab} delete --${pk.name} `], - }, ], }), }); } + // Custom operation references for (const op of customOperations) { const kebab = toKebabCase(op.name); const usage = @@ -707,12 +702,12 @@ export function generateSkills( ? `${toolName} ${kebab} ${op.args.map((a) => `--${a.name} `).join(' ')}` : `${toolName} ${kebab}`; - const skillName = `cli-${targetName}-${kebab}`; + referenceNames.push(kebab); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${kebab}.md`, + content: buildSkillReference({ + title: op.name, description: op.description || `Execute the ${op.name} ${op.kind}`, usage: [usage], examples: [ @@ -725,6 +720,43 @@ export function generateSkills( }); } + // Overview SKILL.md + const tableKebabs = tables.slice(0, 5).map((t) => toKebabCase(getTableNames(t).singularName)); + files.push({ + fileName: `${skillName}/SKILL.md`, + content: buildSkillFile( + { + name: skillName, + description: `CLI tool (${toolName}) for the ${targetName} API — provides CRUD commands for ${tables.length} tables and ${customOperations.length} custom operations`, + usage: [ + `# Context management`, + `${toolName} context create --endpoint `, + `${toolName} context use `, + '', + `# Authentication`, + `${toolName} auth set-token `, + '', + `# CRUD for any table (e.g. ${tableKebabs[0] || 'model'})`, + `${toolName} ${tableKebabs[0] || 'model'} list`, + `${toolName} ${tableKebabs[0] || 'model'} get --id `, + `${toolName} ${tableKebabs[0] || 'model'} create -- `, + ], + examples: [ + { + description: 'Set up and query', + code: [ + `${toolName} context create local --endpoint http://localhost:5000/graphql`, + `${toolName} context use local`, + `${toolName} auth set-token `, + `${toolName} ${tableKebabs[0] || 'model'} list`, + ], + }, + ], + }, + referenceNames, + ), + }); + return files; } @@ -1427,24 +1459,28 @@ export function generateMultiTargetSkills( const { toolName, builtinNames, targets } = input; const files: GeneratedDocFile[] = []; - const contextUsage = [ - `${toolName} ${builtinNames.context} create `, - `${toolName} ${builtinNames.context} list`, - `${toolName} ${builtinNames.context} use `, - `${toolName} ${builtinNames.context} current`, - `${toolName} ${builtinNames.context} delete `, - ]; + // Generate one skill per target, plus a shared cli-common skill for context/auth + const commonSkillName = 'cli-common'; + const commonReferenceNames: string[] = []; + const contextCreateFlags = targets .map((t) => `--${t.name}-endpoint `) .join(' '); - const contextSkillName = 'cli-context'; + // Context reference + commonReferenceNames.push('context'); files.push({ - fileName: `${contextSkillName}/SKILL.md`, - content: buildSkillFile({ - name: contextSkillName, + fileName: `${commonSkillName}/references/context.md`, + content: buildSkillReference({ + title: 'Context Management', description: `Manage API endpoint contexts for ${toolName} (multi-target: ${targets.map((t) => t.name).join(', ')})`, - usage: contextUsage, + usage: [ + `${toolName} ${builtinNames.context} create `, + `${toolName} ${builtinNames.context} list`, + `${toolName} ${builtinNames.context} use `, + `${toolName} ${builtinNames.context} current`, + `${toolName} ${builtinNames.context} delete `, + ], examples: [ { description: 'Create a context for local development (accept all defaults)', @@ -1460,23 +1496,16 @@ export function generateMultiTargetSkills( `${toolName} ${builtinNames.context} use production`, ], }, - { - description: 'List and switch contexts', - code: [ - `${toolName} ${builtinNames.context} list`, - `${toolName} ${builtinNames.context} use staging`, - ], - }, ], }), }); - const authSkillName = 'cli-auth'; - + // Auth reference + commonReferenceNames.push('auth'); files.push({ - fileName: `${authSkillName}/SKILL.md`, - content: buildSkillFile({ - name: authSkillName, + fileName: `${commonSkillName}/references/auth.md`, + content: buildSkillReference({ + title: 'Authentication', description: `Manage authentication tokens for ${toolName} (shared across all targets)`, usage: [ `${toolName} ${builtinNames.auth} set-token `, @@ -1496,7 +1525,42 @@ export function generateMultiTargetSkills( }), }); + // Common SKILL.md + files.push({ + fileName: `${commonSkillName}/SKILL.md`, + content: buildSkillFile( + { + name: commonSkillName, + description: `Shared CLI utilities for ${toolName} — context management and authentication across targets: ${targets.map((t) => t.name).join(', ')}`, + usage: [ + `# Context management`, + `${toolName} ${builtinNames.context} create `, + `${toolName} ${builtinNames.context} use `, + '', + `# Authentication`, + `${toolName} ${builtinNames.auth} set-token `, + `${toolName} ${builtinNames.auth} status`, + ], + examples: [ + { + description: 'Set up and authenticate', + code: [ + `${toolName} ${builtinNames.context} create local`, + `${toolName} ${builtinNames.context} use local`, + `${toolName} ${builtinNames.auth} set-token `, + ], + }, + ], + }, + commonReferenceNames, + ), + }); + + // Generate one skill per target with table/op references for (const tgt of targets) { + const tgtSkillName = `cli-${tgt.name}`; + const tgtReferenceNames: string[] = []; + for (const table of tgt.tables) { const { singularName } = getTableNames(table); const kebab = toKebabCase(singularName); @@ -1504,12 +1568,12 @@ export function generateMultiTargetSkills( const editableFields = getEditableFields(table); const cmd = `${tgt.name}:${kebab}`; - const skillName = `cli-${tgt.name}-${kebab}`; + tgtReferenceNames.push(kebab); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${tgtSkillName}/references/${kebab}.md`, + content: buildSkillReference({ + title: singularName, description: `CRUD operations for ${table.name} records via ${toolName} CLI (${tgt.name} target)`, usage: [ `${toolName} ${cmd} list`, @@ -1529,10 +1593,6 @@ export function generateMultiTargetSkills( `${toolName} ${cmd} create ${editableFields.map((f) => `--${f.name} "value"`).join(' ')}`, ], }, - { - description: `Get a ${singularName} by ${pk.name}`, - code: [`${toolName} ${cmd} get --${pk.name} `], - }, ], }), }); @@ -1550,12 +1610,12 @@ export function generateMultiTargetSkills( usageLines.push(`${baseUsage} --save-token`); } - const skillName = `cli-${tgt.name}-${kebab}`; + tgtReferenceNames.push(kebab); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${tgtSkillName}/references/${kebab}.md`, + content: buildSkillReference({ + title: op.name, description: `${op.description || `Execute the ${op.name} ${op.kind}`} (${tgt.name} target)`, usage: usageLines, examples: [ @@ -1567,6 +1627,33 @@ export function generateMultiTargetSkills( }), }); } + + // Target SKILL.md + const firstKebab = tgt.tables.length > 0 + ? toKebabCase(getTableNames(tgt.tables[0]).singularName) + : 'model'; + files.push({ + fileName: `${tgtSkillName}/SKILL.md`, + content: buildSkillFile( + { + name: tgtSkillName, + description: `CLI commands for the ${tgt.name} API target — ${tgt.tables.length} tables and ${tgt.customOperations.length} custom operations via ${toolName}`, + usage: [ + `# CRUD for ${tgt.name} tables (e.g. ${firstKebab})`, + `${toolName} ${tgt.name}:${firstKebab} list`, + `${toolName} ${tgt.name}:${firstKebab} get --id `, + `${toolName} ${tgt.name}:${firstKebab} create -- `, + ], + examples: [ + { + description: `Query ${tgt.name} records`, + code: [`${toolName} ${tgt.name}:${firstKebab} list`], + }, + ], + }, + tgtReferenceNames, + ), + }); } return files; diff --git a/graphql/codegen/src/core/codegen/docs-utils.ts b/graphql/codegen/src/core/codegen/docs-utils.ts index 751ffb587..c139b3f85 100644 --- a/graphql/codegen/src/core/codegen/docs-utils.ts +++ b/graphql/codegen/src/core/codegen/docs-utils.ts @@ -22,6 +22,14 @@ export interface SkillDefinition { language?: string; } +export interface SkillReferenceDefinition { + title: string; + description: string; + usage: string[]; + examples: { description: string; code: string[] }[]; + language?: string; +} + const CONSTRUCTIVE_LOGO_URL = 'https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg'; @@ -119,7 +127,10 @@ export function gqlTypeToJsonSchemaType(gqlType: string): string { } } -export function buildSkillFile(skill: SkillDefinition): string { +export function buildSkillFile( + skill: SkillDefinition, + referenceNames?: string[], +): string { const lang = skill.language ?? 'bash'; const lines: string[] = []; @@ -157,5 +168,50 @@ export function buildSkillFile(skill: SkillDefinition): string { lines.push(''); } + if (referenceNames && referenceNames.length > 0) { + lines.push('## References'); + lines.push(''); + lines.push('See the `references/` directory for detailed per-entity API documentation:'); + lines.push(''); + for (const name of referenceNames) { + lines.push(`- [${name}](references/${name}.md)`); + } + lines.push(''); + } + + return lines.join('\n'); +} + +export function buildSkillReference(ref: SkillReferenceDefinition): string { + const lang = ref.language ?? 'bash'; + const lines: string[] = []; + + lines.push(`# ${ref.title}`); + lines.push(''); + lines.push(''); + lines.push(''); + lines.push(ref.description); + lines.push(''); + lines.push('## Usage'); + lines.push(''); + lines.push(`\`\`\`${lang}`); + for (const u of ref.usage) { + lines.push(u); + } + lines.push('```'); + lines.push(''); + lines.push('## Examples'); + lines.push(''); + for (const ex of ref.examples) { + lines.push(`### ${ex.description}`); + lines.push(''); + lines.push(`\`\`\`${lang}`); + for (const cmd of ex.code) { + lines.push(cmd); + } + lines.push('```'); + lines.push(''); + } + return lines.join('\n'); } diff --git a/graphql/codegen/src/core/codegen/hooks-docs-generator.ts b/graphql/codegen/src/core/codegen/hooks-docs-generator.ts index 1cca73278..18453f953 100644 --- a/graphql/codegen/src/core/codegen/hooks-docs-generator.ts +++ b/graphql/codegen/src/core/codegen/hooks-docs-generator.ts @@ -3,6 +3,7 @@ import { toKebabCase } from 'komoji'; import type { CleanOperation, CleanTable } from '../../types/schema'; import { buildSkillFile, + buildSkillReference, formatArgType, getReadmeHeader, getReadmeFooter, @@ -501,7 +502,10 @@ export function generateHooksSkills( targetName: string, ): GeneratedDocFile[] { const files: GeneratedDocFile[] = []; + const skillName = `hooks-${targetName}`; + const referenceNames: string[] = []; + // Generate reference files for each table for (const table of tables) { const { singularName, pluralName } = getTableNames(table); const pk = getPrimaryKeyInfo(table)[0]; @@ -510,13 +514,13 @@ export function generateHooksSkills( .map((f) => `${f.name}: true`) .join(', '); - const tableKebab = toKebabCase(singularName); - const skillName = `hooks-${targetName}-${tableKebab}`; + const refName = toKebabCase(singularName); + referenceNames.push(refName); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${refName}.md`, + content: buildSkillReference({ + title: singularName, description: table.description || `React Query hooks for ${table.name} data operations`, language: 'typescript', usage: [ @@ -557,6 +561,7 @@ export function generateHooksSkills( }); } + // Generate reference files for custom operations for (const op of customOperations) { const hookName = getCustomHookName(op); const callArgs = @@ -564,13 +569,13 @@ export function generateHooksSkills( ? `{ ${op.args.map((a) => `${a.name}: ''`).join(', ')} }` : ''; - const opKebab = toKebabCase(op.name); - const skillName = `hooks-${targetName}-${opKebab}`; + const refName = toKebabCase(op.name); + referenceNames.push(refName); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${refName}.md`, + content: buildSkillReference({ + title: op.name, description: op.description || `React Query ${op.kind} hook for ${op.name}`, @@ -600,5 +605,40 @@ export function generateHooksSkills( }); } + // Generate the overview SKILL.md + const hookExamples = tables.slice(0, 3).map((t) => getListQueryHookName(t)); + files.push({ + fileName: `${skillName}/SKILL.md`, + content: buildSkillFile( + { + name: skillName, + description: `React Query hooks for the ${targetName} API — provides typed query and mutation hooks for ${tables.length} tables and ${customOperations.length} custom operations`, + language: 'typescript', + usage: [ + `// Import hooks`, + `import { ${hookExamples[0] || 'useModelQuery'} } from './hooks';`, + '', + `// Query hooks: useQuery, usesQuery`, + `// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation`, + '', + `const { data, isLoading } = ${hookExamples[0] || 'useModelQuery'}({`, + ` selection: { fields: { id: true } },`, + `});`, + ], + examples: [ + { + description: 'Query records', + code: [ + `const { data, isLoading } = ${hookExamples[0] || 'useModelQuery'}({`, + ' selection: { fields: { id: true } },', + '});', + ], + }, + ], + }, + referenceNames, + ), + }); + return files; } diff --git a/graphql/codegen/src/core/codegen/orm/docs-generator.ts b/graphql/codegen/src/core/codegen/orm/docs-generator.ts index 936c7b09a..fb2c05798 100644 --- a/graphql/codegen/src/core/codegen/orm/docs-generator.ts +++ b/graphql/codegen/src/core/codegen/orm/docs-generator.ts @@ -3,6 +3,7 @@ import { toKebabCase } from 'komoji'; import type { CleanOperation, CleanTable } from '../../../types/schema'; import { buildSkillFile, + buildSkillReference, formatArgType, getEditableFields, getReadmeHeader, @@ -454,20 +455,23 @@ export function generateOrmSkills( targetName: string, ): GeneratedDocFile[] { const files: GeneratedDocFile[] = []; + const skillName = `orm-${targetName}`; + const referenceNames: string[] = []; + // Generate reference files for each table for (const table of tables) { const { singularName } = getTableNames(table); const pk = getPrimaryKeyInfo(table)[0]; const editableFields = getEditableFields(table); const modelName = lcFirst(singularName); - const tableKebab = toKebabCase(singularName); - const skillName = `orm-${targetName}-${tableKebab}`; + const refName = toKebabCase(singularName); + referenceNames.push(refName); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${refName}.md`, + content: buildSkillReference({ + title: singularName, description: table.description || `ORM operations for ${table.name} records`, language: 'typescript', usage: [ @@ -500,6 +504,7 @@ export function generateOrmSkills( }); } + // Generate reference files for custom operations for (const op of customOperations) { const accessor = op.kind === 'query' ? 'query' : 'mutation'; const callArgs = @@ -507,13 +512,13 @@ export function generateOrmSkills( ? `{ ${op.args.map((a) => `${a.name}: ''`).join(', ')} }` : ''; - const opKebab = toKebabCase(op.name); - const skillName = `orm-${targetName}-${opKebab}`; + const refName = toKebabCase(op.name); + referenceNames.push(refName); files.push({ - fileName: `${skillName}/SKILL.md`, - content: buildSkillFile({ - name: skillName, + fileName: `${skillName}/references/${refName}.md`, + content: buildSkillReference({ + title: op.name, description: op.description || `Execute the ${op.name} ${op.kind}`, language: 'typescript', usage: [`db.${accessor}.${op.name}(${callArgs}).execute()`], @@ -527,5 +532,40 @@ export function generateOrmSkills( }); } + // Generate the overview SKILL.md + const tableNames = tables.map((t) => lcFirst(getTableNames(t).singularName)); + files.push({ + fileName: `${skillName}/SKILL.md`, + content: buildSkillFile( + { + name: skillName, + description: `ORM client for the ${targetName} API — provides typed CRUD operations for ${tables.length} tables and ${customOperations.length} custom operations`, + language: 'typescript', + usage: [ + `// Import the ORM client`, + `import { db } from './orm';`, + '', + `// Available models: ${tableNames.slice(0, 8).join(', ')}${tableNames.length > 8 ? ', ...' : ''}`, + `db..findMany({ select: { id: true } }).execute()`, + `db..findOne({ id: '', select: { id: true } }).execute()`, + `db..create({ data: { ... }, select: { id: true } }).execute()`, + `db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute()`, + `db..delete({ where: { id: '' } }).execute()`, + ], + examples: [ + { + description: 'Query records', + code: [ + `const items = await db.${tableNames[0] || 'model'}.findMany({`, + ' select: { id: true }', + '}).execute();', + ], + }, + ], + }, + referenceNames, + ), + }); + return files; } diff --git a/sdk/constructive-react/src/admin/README.md b/sdk/constructive-react/src/admin/README.md index b5c432743..39496581d 100644 --- a/sdk/constructive-react/src/admin/README.md +++ b/sdk/constructive-react/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 28 -- **Custom queries:** 10 +- **Tables:** 32 +- **Custom queries:** 11 - **Custom mutations:** 2 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index f73146cc4..3e0c146a3 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -32,148 +32,163 @@ function App() { | Hook | Type | Description | |------|------|-------------| -| `useAppPermissionsQuery` | Query | List all appPermissions | -| `useAppPermissionQuery` | Query | Get one appPermission | -| `useCreateAppPermissionMutation` | Mutation | Create a appPermission | -| `useUpdateAppPermissionMutation` | Mutation | Update a appPermission | -| `useDeleteAppPermissionMutation` | Mutation | Delete a appPermission | -| `useOrgPermissionsQuery` | Query | List all orgPermissions | -| `useOrgPermissionQuery` | Query | Get one orgPermission | -| `useCreateOrgPermissionMutation` | Mutation | Create a orgPermission | -| `useUpdateOrgPermissionMutation` | Mutation | Update a orgPermission | -| `useDeleteOrgPermissionMutation` | Mutation | Delete a orgPermission | -| `useAppLevelRequirementsQuery` | Query | Requirements to achieve a level | -| `useAppLevelRequirementQuery` | Query | Requirements to achieve a level | -| `useCreateAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useUpdateAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useDeleteAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useOrgMembersQuery` | Query | List all orgMembers | -| `useOrgMemberQuery` | Query | Get one orgMember | -| `useCreateOrgMemberMutation` | Mutation | Create a orgMember | -| `useUpdateOrgMemberMutation` | Mutation | Update a orgMember | -| `useDeleteOrgMemberMutation` | Mutation | Delete a orgMember | -| `useAppPermissionDefaultsQuery` | Query | List all appPermissionDefaults | -| `useAppPermissionDefaultQuery` | Query | Get one appPermissionDefault | -| `useCreateAppPermissionDefaultMutation` | Mutation | Create a appPermissionDefault | -| `useUpdateAppPermissionDefaultMutation` | Mutation | Update a appPermissionDefault | -| `useDeleteAppPermissionDefaultMutation` | Mutation | Delete a appPermissionDefault | -| `useOrgPermissionDefaultsQuery` | Query | List all orgPermissionDefaults | -| `useOrgPermissionDefaultQuery` | Query | Get one orgPermissionDefault | -| `useCreateOrgPermissionDefaultMutation` | Mutation | Create a orgPermissionDefault | -| `useUpdateOrgPermissionDefaultMutation` | Mutation | Update a orgPermissionDefault | -| `useDeleteOrgPermissionDefaultMutation` | Mutation | Delete a orgPermissionDefault | -| `useAppAdminGrantsQuery` | Query | List all appAdminGrants | -| `useAppAdminGrantQuery` | Query | Get one appAdminGrant | -| `useCreateAppAdminGrantMutation` | Mutation | Create a appAdminGrant | -| `useUpdateAppAdminGrantMutation` | Mutation | Update a appAdminGrant | -| `useDeleteAppAdminGrantMutation` | Mutation | Delete a appAdminGrant | -| `useAppOwnerGrantsQuery` | Query | List all appOwnerGrants | -| `useAppOwnerGrantQuery` | Query | Get one appOwnerGrant | -| `useCreateAppOwnerGrantMutation` | Mutation | Create a appOwnerGrant | -| `useUpdateAppOwnerGrantMutation` | Mutation | Update a appOwnerGrant | -| `useDeleteAppOwnerGrantMutation` | Mutation | Delete a appOwnerGrant | -| `useAppLimitDefaultsQuery` | Query | List all appLimitDefaults | -| `useAppLimitDefaultQuery` | Query | Get one appLimitDefault | -| `useCreateAppLimitDefaultMutation` | Mutation | Create a appLimitDefault | -| `useUpdateAppLimitDefaultMutation` | Mutation | Update a appLimitDefault | -| `useDeleteAppLimitDefaultMutation` | Mutation | Delete a appLimitDefault | -| `useOrgLimitDefaultsQuery` | Query | List all orgLimitDefaults | -| `useOrgLimitDefaultQuery` | Query | Get one orgLimitDefault | -| `useCreateOrgLimitDefaultMutation` | Mutation | Create a orgLimitDefault | -| `useUpdateOrgLimitDefaultMutation` | Mutation | Update a orgLimitDefault | -| `useDeleteOrgLimitDefaultMutation` | Mutation | Delete a orgLimitDefault | -| `useOrgAdminGrantsQuery` | Query | List all orgAdminGrants | -| `useOrgAdminGrantQuery` | Query | Get one orgAdminGrant | -| `useCreateOrgAdminGrantMutation` | Mutation | Create a orgAdminGrant | -| `useUpdateOrgAdminGrantMutation` | Mutation | Update a orgAdminGrant | -| `useDeleteOrgAdminGrantMutation` | Mutation | Delete a orgAdminGrant | -| `useOrgOwnerGrantsQuery` | Query | List all orgOwnerGrants | -| `useOrgOwnerGrantQuery` | Query | Get one orgOwnerGrant | -| `useCreateOrgOwnerGrantMutation` | Mutation | Create a orgOwnerGrant | -| `useUpdateOrgOwnerGrantMutation` | Mutation | Update a orgOwnerGrant | -| `useDeleteOrgOwnerGrantMutation` | Mutation | Delete a orgOwnerGrant | -| `useMembershipTypesQuery` | Query | List all membershipTypes | -| `useMembershipTypeQuery` | Query | Get one membershipType | -| `useCreateMembershipTypeMutation` | Mutation | Create a membershipType | -| `useUpdateMembershipTypeMutation` | Mutation | Update a membershipType | -| `useDeleteMembershipTypeMutation` | Mutation | Delete a membershipType | -| `useAppLimitsQuery` | Query | List all appLimits | -| `useAppLimitQuery` | Query | Get one appLimit | -| `useCreateAppLimitMutation` | Mutation | Create a appLimit | -| `useUpdateAppLimitMutation` | Mutation | Update a appLimit | -| `useDeleteAppLimitMutation` | Mutation | Delete a appLimit | -| `useAppAchievementsQuery` | Query | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useAppAchievementQuery` | Query | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useCreateAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useUpdateAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useDeleteAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useAppStepsQuery` | Query | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useAppStepQuery` | Query | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useCreateAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useUpdateAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useDeleteAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useClaimedInvitesQuery` | Query | List all claimedInvites | -| `useClaimedInviteQuery` | Query | Get one claimedInvite | -| `useCreateClaimedInviteMutation` | Mutation | Create a claimedInvite | -| `useUpdateClaimedInviteMutation` | Mutation | Update a claimedInvite | -| `useDeleteClaimedInviteMutation` | Mutation | Delete a claimedInvite | -| `useAppGrantsQuery` | Query | List all appGrants | -| `useAppGrantQuery` | Query | Get one appGrant | -| `useCreateAppGrantMutation` | Mutation | Create a appGrant | -| `useUpdateAppGrantMutation` | Mutation | Update a appGrant | -| `useDeleteAppGrantMutation` | Mutation | Delete a appGrant | -| `useAppMembershipDefaultsQuery` | Query | List all appMembershipDefaults | -| `useAppMembershipDefaultQuery` | Query | Get one appMembershipDefault | -| `useCreateAppMembershipDefaultMutation` | Mutation | Create a appMembershipDefault | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Update a appMembershipDefault | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Delete a appMembershipDefault | -| `useOrgLimitsQuery` | Query | List all orgLimits | -| `useOrgLimitQuery` | Query | Get one orgLimit | -| `useCreateOrgLimitMutation` | Mutation | Create a orgLimit | -| `useUpdateOrgLimitMutation` | Mutation | Update a orgLimit | -| `useDeleteOrgLimitMutation` | Mutation | Delete a orgLimit | -| `useOrgClaimedInvitesQuery` | Query | List all orgClaimedInvites | -| `useOrgClaimedInviteQuery` | Query | Get one orgClaimedInvite | -| `useCreateOrgClaimedInviteMutation` | Mutation | Create a orgClaimedInvite | -| `useUpdateOrgClaimedInviteMutation` | Mutation | Update a orgClaimedInvite | -| `useDeleteOrgClaimedInviteMutation` | Mutation | Delete a orgClaimedInvite | -| `useOrgGrantsQuery` | Query | List all orgGrants | -| `useOrgGrantQuery` | Query | Get one orgGrant | -| `useCreateOrgGrantMutation` | Mutation | Create a orgGrant | -| `useUpdateOrgGrantMutation` | Mutation | Update a orgGrant | -| `useDeleteOrgGrantMutation` | Mutation | Delete a orgGrant | -| `useOrgMembershipDefaultsQuery` | Query | List all orgMembershipDefaults | -| `useOrgMembershipDefaultQuery` | Query | Get one orgMembershipDefault | -| `useCreateOrgMembershipDefaultMutation` | Mutation | Create a orgMembershipDefault | -| `useUpdateOrgMembershipDefaultMutation` | Mutation | Update a orgMembershipDefault | -| `useDeleteOrgMembershipDefaultMutation` | Mutation | Delete a orgMembershipDefault | -| `useAppLevelsQuery` | Query | Levels for achievement | -| `useAppLevelQuery` | Query | Levels for achievement | -| `useCreateAppLevelMutation` | Mutation | Levels for achievement | -| `useUpdateAppLevelMutation` | Mutation | Levels for achievement | -| `useDeleteAppLevelMutation` | Mutation | Levels for achievement | -| `useInvitesQuery` | Query | List all invites | -| `useInviteQuery` | Query | Get one invite | -| `useCreateInviteMutation` | Mutation | Create a invite | -| `useUpdateInviteMutation` | Mutation | Update a invite | -| `useDeleteInviteMutation` | Mutation | Delete a invite | -| `useAppMembershipsQuery` | Query | List all appMemberships | -| `useAppMembershipQuery` | Query | Get one appMembership | -| `useCreateAppMembershipMutation` | Mutation | Create a appMembership | -| `useUpdateAppMembershipMutation` | Mutation | Update a appMembership | -| `useDeleteAppMembershipMutation` | Mutation | Delete a appMembership | -| `useOrgMembershipsQuery` | Query | List all orgMemberships | -| `useOrgMembershipQuery` | Query | Get one orgMembership | -| `useCreateOrgMembershipMutation` | Mutation | Create a orgMembership | -| `useUpdateOrgMembershipMutation` | Mutation | Update a orgMembership | -| `useDeleteOrgMembershipMutation` | Mutation | Delete a orgMembership | -| `useOrgInvitesQuery` | Query | List all orgInvites | -| `useOrgInviteQuery` | Query | Get one orgInvite | -| `useCreateOrgInviteMutation` | Mutation | Create a orgInvite | -| `useUpdateOrgInviteMutation` | Mutation | Update a orgInvite | -| `useDeleteOrgInviteMutation` | Mutation | Delete a orgInvite | +| `useOrgGetManagersQuery` | Query | List all orgGetManagers | +| `useCreateOrgGetManagersRecordMutation` | Mutation | Create a orgGetManagersRecord | +| `useOrgGetSubordinatesQuery` | Query | List all orgGetSubordinates | +| `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | +| `useAppPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useAppPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useCreateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useUpdateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useDeleteAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useOrgPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useOrgPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useCreateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useUpdateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useDeleteOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useAppLevelRequirementsQuery` | Query | Defines the specific requirements that must be met to achieve a level | +| `useAppLevelRequirementQuery` | Query | Defines the specific requirements that must be met to achieve a level | +| `useCreateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `useUpdateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `useDeleteAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `useOrgMembersQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useOrgMemberQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useCreateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useUpdateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useDeleteOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useAppPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useAppPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useAppAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | +| `useAppAdminGrantQuery` | Query | Records of admin role grants and revocations between members | +| `useCreateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useUpdateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useAppOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useAppOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | +| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | +| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useUpdateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useDeleteOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useAppAchievementsQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useAppAchievementQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useCreateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useUpdateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useDeleteAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useAppStepsQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useAppStepQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useCreateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useUpdateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useDeleteAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useCreateClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useUpdateClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useDeleteClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useAppGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useAppGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useCreateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useUpdateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useDeleteAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useOrgClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useCreateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useOrgGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useOrgGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useCreateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useUpdateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useDeleteOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useAppLevelsQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useAppLevelQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useCreateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useUpdateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useDeleteAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useOrgMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useOrgMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useCreateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useUpdateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useDeleteOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useOrgInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useOrgInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useAppPermissionsGetPaddedMaskQuery` | Query | appPermissionsGetPaddedMask | | `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | +| `useOrgIsManagerOfQuery` | Query | orgIsManagerOf | | `useStepsAchievedQuery` | Query | stepsAchieved | | `useAppPermissionsGetMaskQuery` | Query | appPermissionsGetMask | | `useOrgPermissionsGetMaskQuery` | Query | orgPermissionsGetMask | @@ -187,6 +202,36 @@ function App() { ## Table Hooks +### OrgGetManagersRecord + +```typescript +// List all orgGetManagers +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { userId: true, depth: true } }, +}); + +// Create a orgGetManagersRecord +const { mutate: create } = useCreateOrgGetManagersRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ userId: '', depth: '' }); +``` + +### OrgGetSubordinatesRecord + +```typescript +// List all orgGetSubordinates +const { data, isLoading } = useOrgGetSubordinatesQuery({ + selection: { fields: { userId: true, depth: true } }, +}); + +// Create a orgGetSubordinatesRecord +const { mutate: create } = useCreateOrgGetSubordinatesRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ userId: '', depth: '' }); +``` + ### AppPermission ```typescript @@ -355,88 +400,88 @@ const { mutate: create } = useCreateAppOwnerGrantMutation({ create({ isGrant: '', actorId: '', grantorId: '' }); ``` -### AppLimitDefault +### OrgAdminGrant ```typescript -// List all appLimitDefaults -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all orgAdminGrants +const { data, isLoading } = useOrgAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one appLimitDefault -const { data: item } = useAppLimitDefaultQuery({ +// Get one orgAdminGrant +const { data: item } = useOrgAdminGrantQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a appLimitDefault -const { mutate: create } = useCreateAppLimitDefaultMutation({ +// Create a orgAdminGrant +const { mutate: create } = useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgLimitDefault +### OrgOwnerGrant ```typescript -// List all orgLimitDefaults -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all orgOwnerGrants +const { data, isLoading } = useOrgOwnerGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one orgLimitDefault -const { data: item } = useOrgLimitDefaultQuery({ +// Get one orgOwnerGrant +const { data: item } = useOrgOwnerGrantQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a orgLimitDefault -const { mutate: create } = useCreateOrgLimitDefaultMutation({ +// Create a orgOwnerGrant +const { mutate: create } = useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgAdminGrant +### AppLimitDefault ```typescript -// List all orgAdminGrants -const { data, isLoading } = useOrgAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all appLimitDefaults +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, }); -// Get one orgAdminGrant -const { data: item } = useOrgAdminGrantQuery({ +// Get one appLimitDefault +const { data: item } = useAppLimitDefaultQuery({ id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, max: true } }, }); -// Create a orgAdminGrant -const { mutate: create } = useCreateOrgAdminGrantMutation({ +// Create a appLimitDefault +const { mutate: create } = useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ name: '', max: '' }); ``` -### OrgOwnerGrant +### OrgLimitDefault ```typescript -// List all orgOwnerGrants -const { data, isLoading } = useOrgOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all orgLimitDefaults +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, }); -// Get one orgOwnerGrant -const { data: item } = useOrgOwnerGrantQuery({ +// Get one orgLimitDefault +const { data: item } = useOrgLimitDefaultQuery({ id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, max: true } }, }); -// Create a orgOwnerGrant -const { mutate: create } = useCreateOrgOwnerGrantMutation({ +// Create a orgLimitDefault +const { mutate: create } = useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ name: '', max: '' }); ``` ### MembershipType @@ -460,6 +505,27 @@ const { mutate: create } = useCreateMembershipTypeMutation({ create({ name: '', description: '', prefix: '' }); ``` +### OrgChartEdgeGrant + +```typescript +// List all orgChartEdgeGrants +const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); + +// Get one orgChartEdgeGrant +const { data: item } = useOrgChartEdgeGrantQuery({ + id: '', + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); + +// Create a orgChartEdgeGrant +const { mutate: create } = useCreateOrgChartEdgeGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); +``` + ### AppLimit ```typescript @@ -649,46 +715,46 @@ const { mutate: create } = useCreateOrgGrantMutation({ create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgMembershipDefault +### OrgChartEdge ```typescript -// List all orgMembershipDefaults -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, +// List all orgChartEdges +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); -// Get one orgMembershipDefault -const { data: item } = useOrgMembershipDefaultQuery({ +// Get one orgChartEdge +const { data: item } = useOrgChartEdgeQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); -// Create a orgMembershipDefault -const { mutate: create } = useCreateOrgMembershipDefaultMutation({ +// Create a orgChartEdge +const { mutate: create } = useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); +create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); ``` -### AppLevel +### OrgMembershipDefault ```typescript -// List all appLevels -const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, +// List all orgMembershipDefaults +const { data, isLoading } = useOrgMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, }); -// Get one appLevel -const { data: item } = useAppLevelQuery({ +// Get one orgMembershipDefault +const { data: item } = useOrgMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, }); -// Create a appLevel -const { mutate: create } = useCreateAppLevelMutation({ +// Create a orgMembershipDefault +const { mutate: create } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', image: '', ownerId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); ``` ### Invite @@ -712,25 +778,46 @@ const { mutate: create } = useCreateInviteMutation({ create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); ``` +### AppLevel + +```typescript +// List all appLevels +const { data, isLoading } = useAppLevelsQuery({ + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appLevel +const { data: item } = useAppLevelQuery({ + id: '', + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appLevel +const { mutate: create } = useCreateAppLevelMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', description: '', image: '', ownerId: '' }); +``` + ### AppMembership ```typescript // List all appMemberships const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); // Get one appMembership const { data: item } = useAppMembershipQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); // Create a appMembership const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### OrgMembership @@ -738,20 +825,20 @@ create({ createdBy: '', updatedBy: '', isApproved: '', isBa ```typescript // List all orgMemberships const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); // Get one orgMembership const { data: item } = useOrgMembershipQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); // Create a orgMembership const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); ``` ### OrgInvite @@ -799,6 +886,20 @@ orgPermissionsGetPaddedMask |----------|------| | `mask` | BitString | +### `useOrgIsManagerOfQuery` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + ### `useStepsAchievedQuery` stepsAchieved diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts index 25c7a8f3f..6a8186143 100644 --- a/sdk/constructive-react/src/admin/hooks/index.ts +++ b/sdk/constructive-react/src/admin/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: AppPermission, OrgPermission, AppLevelRequirement, OrgMember, AppPermissionDefault, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, AppLimitDefault, OrgLimitDefault, OrgAdminGrant, OrgOwnerGrant, MembershipType, AppLimit, AppAchievement, AppStep, ClaimedInvite, AppGrant, AppMembershipDefault, OrgLimit, OrgClaimedInvite, OrgGrant, OrgMembershipDefault, AppLevel, Invite, AppMembership, OrgMembership, OrgInvite + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, AppLevelRequirement, OrgMember, AppPermissionDefault, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, OrgAdminGrant, OrgOwnerGrant, AppLimitDefault, OrgLimitDefault, MembershipType, OrgChartEdgeGrant, AppLimit, AppAchievement, AppStep, ClaimedInvite, AppGrant, AppMembershipDefault, OrgLimit, OrgClaimedInvite, OrgGrant, OrgChartEdge, OrgMembershipDefault, Invite, AppLevel, AppMembership, OrgMembership, OrgInvite * * Usage: * diff --git a/sdk/constructive-react/src/admin/hooks/invalidation.ts b/sdk/constructive-react/src/admin/hooks/invalidation.ts index 5358dc6b0..4566d1c2e 100644 --- a/sdk/constructive-react/src/admin/hooks/invalidation.ts +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -15,6 +15,8 @@ import type { QueryClient } from '@tanstack/react-query'; import { + orgGetManagersRecordKeys, + orgGetSubordinatesRecordKeys, appPermissionKeys, orgPermissionKeys, appLevelRequirementKeys, @@ -23,11 +25,12 @@ import { orgPermissionDefaultKeys, appAdminGrantKeys, appOwnerGrantKeys, - appLimitDefaultKeys, - orgLimitDefaultKeys, orgAdminGrantKeys, orgOwnerGrantKeys, + appLimitDefaultKeys, + orgLimitDefaultKeys, membershipTypeKeys, + orgChartEdgeGrantKeys, appLimitKeys, appAchievementKeys, appStepKeys, @@ -37,9 +40,10 @@ import { orgLimitKeys, orgClaimedInviteKeys, orgGrantKeys, + orgChartEdgeKeys, orgMembershipDefaultKeys, - appLevelKeys, inviteKeys, + appLevelKeys, appMembershipKeys, orgMembershipKeys, orgInviteKeys, @@ -64,6 +68,40 @@ import { * ``` */ export const invalidate = { + /** Invalidate orgGetManagersRecord queries */ orgGetManagersRecord: { + /** Invalidate all orgGetManagersRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.all, + }), + /** Invalidate orgGetManagersRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.lists(), + }), + /** Invalidate a specific orgGetManagersRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.detail(id), + }), + }, + /** Invalidate orgGetSubordinatesRecord queries */ orgGetSubordinatesRecord: { + /** Invalidate all orgGetSubordinatesRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.all, + }), + /** Invalidate orgGetSubordinatesRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.lists(), + }), + /** Invalidate a specific orgGetSubordinatesRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.detail(id), + }), + }, /** Invalidate appPermission queries */ appPermission: { /** Invalidate all appPermission queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -200,72 +238,72 @@ export const invalidate = { queryKey: appOwnerGrantKeys.detail(id), }), }, - /** Invalidate appLimitDefault queries */ appLimitDefault: { - /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant queries */ orgAdminGrant: { + /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.all, + queryKey: orgAdminGrantKeys.all, }), - /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.lists(), + queryKey: orgAdminGrantKeys.lists(), }), - /** Invalidate a specific appLimitDefault */ detail: ( + /** Invalidate a specific orgAdminGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), }), }, - /** Invalidate orgLimitDefault queries */ orgLimitDefault: { - /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { + /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.all, + queryKey: orgOwnerGrantKeys.all, }), - /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.lists(), + queryKey: orgOwnerGrantKeys.lists(), }), - /** Invalidate a specific orgLimitDefault */ detail: ( + /** Invalidate a specific orgOwnerGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.detail(id), + queryKey: orgOwnerGrantKeys.detail(id), }), }, - /** Invalidate orgAdminGrant queries */ orgAdminGrant: { - /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitDefault queries */ appLimitDefault: { + /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.all, + queryKey: appLimitDefaultKeys.all, }), - /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.lists(), + queryKey: appLimitDefaultKeys.lists(), }), - /** Invalidate a specific orgAdminGrant */ detail: ( + /** Invalidate a specific appLimitDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }), }, - /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { - /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate orgLimitDefault queries */ orgLimitDefault: { + /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.all, + queryKey: orgLimitDefaultKeys.all, }), - /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.lists(), + queryKey: orgLimitDefaultKeys.lists(), }), - /** Invalidate a specific orgOwnerGrant */ detail: ( + /** Invalidate a specific orgLimitDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.detail(id), + queryKey: orgLimitDefaultKeys.detail(id), }), }, /** Invalidate membershipType queries */ membershipType: { @@ -285,6 +323,23 @@ export const invalidate = { queryKey: membershipTypeKeys.detail(id), }), }, + /** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: { + /** Invalidate all orgChartEdgeGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.all, + }), + /** Invalidate orgChartEdgeGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }), + /** Invalidate a specific orgChartEdgeGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.detail(id), + }), + }, /** Invalidate appLimit queries */ appLimit: { /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -423,35 +478,38 @@ export const invalidate = { queryKey: orgGrantKeys.detail(id), }), }, - /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { - /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate orgChartEdge queries */ orgChartEdge: { + /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.all, + queryKey: orgChartEdgeKeys.all, }), - /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), + queryKey: orgChartEdgeKeys.lists(), }), - /** Invalidate a specific orgMembershipDefault */ detail: ( + /** Invalidate a specific orgChartEdge */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }), }, - /** Invalidate appLevel queries */ appLevel: { - /** Invalidate all appLevel queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { + /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLevelKeys.all, + queryKey: orgMembershipDefaultKeys.all, }), - /** Invalidate appLevel list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLevelKeys.lists(), + queryKey: orgMembershipDefaultKeys.lists(), }), - /** Invalidate a specific appLevel */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific orgMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: appLevelKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }), }, /** Invalidate invite queries */ invite: { @@ -468,6 +526,20 @@ export const invalidate = { queryKey: inviteKeys.detail(id), }), }, + /** Invalidate appLevel queries */ appLevel: { + /** Invalidate all appLevel queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelKeys.all, + }), + /** Invalidate appLevel list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelKeys.lists(), + }), + /** Invalidate a specific appLevel */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appLevelKeys.detail(id), + }), + }, /** Invalidate appMembership queries */ appMembership: { /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -532,6 +604,22 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { + /** Remove orgGetManagersRecord from cache */ orgGetManagersRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgGetManagersRecordKeys.detail(id), + }); + }, + /** Remove orgGetSubordinatesRecord from cache */ orgGetSubordinatesRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgGetSubordinatesRecordKeys.detail(id), + }); + }, /** Remove appPermission from cache */ appPermission: ( queryClient: QueryClient, id: string | number @@ -593,36 +681,36 @@ export const remove = { queryKey: appOwnerGrantKeys.detail(id), }); }, - /** Remove appLimitDefault from cache */ appLimitDefault: ( + /** Remove orgAdminGrant from cache */ orgAdminGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitDefaultKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), }); }, - /** Remove orgLimitDefault from cache */ orgLimitDefault: ( + /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitDefaultKeys.detail(id), + queryKey: orgOwnerGrantKeys.detail(id), }); }, - /** Remove orgAdminGrant from cache */ orgAdminGrant: ( + /** Remove appLimitDefault from cache */ appLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgAdminGrantKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }); }, - /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( + /** Remove orgLimitDefault from cache */ orgLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgOwnerGrantKeys.detail(id), + queryKey: orgLimitDefaultKeys.detail(id), }); }, /** Remove membershipType from cache */ membershipType: ( @@ -633,6 +721,14 @@ export const remove = { queryKey: membershipTypeKeys.detail(id), }); }, + /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeGrantKeys.detail(id), + }); + }, /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: appLimitKeys.detail(id), @@ -690,17 +786,20 @@ export const remove = { queryKey: orgGrantKeys.detail(id), }); }, - /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + /** Remove orgChartEdge from cache */ orgChartEdge: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }); }, - /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { + /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: appLevelKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }); }, /** Remove invite from cache */ invite: (queryClient: QueryClient, id: string | number) => { @@ -708,6 +807,11 @@ export const remove = { queryKey: inviteKeys.detail(id), }); }, + /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appLevelKeys.detail(id), + }); + }, /** Remove appMembership from cache */ appMembership: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts index 788ebfd51..ca6c828f5 100644 --- a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -18,6 +18,27 @@ // Entity Mutation Keys // ============================================================================ +export const orgGetManagersRecordMutationKeys = { + /** All orgGetManagersRecord mutation keys */ all: ['mutation', 'orggetmanagersrecord'] as const, + /** Create orgGetManagersRecord mutation key */ create: () => + ['mutation', 'orggetmanagersrecord', 'create'] as const, + /** Update orgGetManagersRecord mutation key */ update: (id: string | number) => + ['mutation', 'orggetmanagersrecord', 'update', id] as const, + /** Delete orgGetManagersRecord mutation key */ delete: (id: string | number) => + ['mutation', 'orggetmanagersrecord', 'delete', id] as const, +} as const; +export const orgGetSubordinatesRecordMutationKeys = { + /** All orgGetSubordinatesRecord mutation keys */ all: [ + 'mutation', + 'orggetsubordinatesrecord', + ] as const, + /** Create orgGetSubordinatesRecord mutation key */ create: () => + ['mutation', 'orggetsubordinatesrecord', 'create'] as const, + /** Update orgGetSubordinatesRecord mutation key */ update: (id: string | number) => + ['mutation', 'orggetsubordinatesrecord', 'update', id] as const, + /** Delete orgGetSubordinatesRecord mutation key */ delete: (id: string | number) => + ['mutation', 'orggetsubordinatesrecord', 'delete', id] as const, +} as const; export const appPermissionMutationKeys = { /** All appPermission mutation keys */ all: ['mutation', 'apppermission'] as const, /** Create appPermission mutation key */ create: () => @@ -89,24 +110,6 @@ export const appOwnerGrantMutationKeys = { /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'appownergrant', 'delete', id] as const, } as const; -export const appLimitDefaultMutationKeys = { - /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, - /** Create appLimitDefault mutation key */ create: () => - ['mutation', 'applimitdefault', 'create'] as const, - /** Update appLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'applimitdefault', 'update', id] as const, - /** Delete appLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'applimitdefault', 'delete', id] as const, -} as const; -export const orgLimitDefaultMutationKeys = { - /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, - /** Create orgLimitDefault mutation key */ create: () => - ['mutation', 'orglimitdefault', 'create'] as const, - /** Update orgLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'orglimitdefault', 'update', id] as const, - /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitdefault', 'delete', id] as const, -} as const; export const orgAdminGrantMutationKeys = { /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, /** Create orgAdminGrant mutation key */ create: () => @@ -125,6 +128,24 @@ export const orgOwnerGrantMutationKeys = { /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgownergrant', 'delete', id] as const, } as const; +export const appLimitDefaultMutationKeys = { + /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, + /** Create appLimitDefault mutation key */ create: () => + ['mutation', 'applimitdefault', 'create'] as const, + /** Update appLimitDefault mutation key */ update: (id: string | number) => + ['mutation', 'applimitdefault', 'update', id] as const, + /** Delete appLimitDefault mutation key */ delete: (id: string | number) => + ['mutation', 'applimitdefault', 'delete', id] as const, +} as const; +export const orgLimitDefaultMutationKeys = { + /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, + /** Create orgLimitDefault mutation key */ create: () => + ['mutation', 'orglimitdefault', 'create'] as const, + /** Update orgLimitDefault mutation key */ update: (id: string | number) => + ['mutation', 'orglimitdefault', 'update', id] as const, + /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitdefault', 'delete', id] as const, +} as const; export const membershipTypeMutationKeys = { /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, /** Create membershipType mutation key */ create: () => @@ -134,6 +155,15 @@ export const membershipTypeMutationKeys = { /** Delete membershipType mutation key */ delete: (id: string | number) => ['mutation', 'membershiptype', 'delete', id] as const, } as const; +export const orgChartEdgeGrantMutationKeys = { + /** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'] as const, + /** Create orgChartEdgeGrant mutation key */ create: () => + ['mutation', 'orgchartedgegrant', 'create'] as const, + /** Update orgChartEdgeGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedgegrant', 'update', id] as const, + /** Delete orgChartEdgeGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedgegrant', 'delete', id] as const, +} as const; export const appLimitMutationKeys = { /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, @@ -210,6 +240,15 @@ export const orgGrantMutationKeys = { /** Delete orgGrant mutation key */ delete: (id: string | number) => ['mutation', 'orggrant', 'delete', id] as const, } as const; +export const orgChartEdgeMutationKeys = { + /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, + /** Create orgChartEdge mutation key */ create: () => + ['mutation', 'orgchartedge', 'create'] as const, + /** Update orgChartEdge mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedge', 'update', id] as const, + /** Delete orgChartEdge mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedge', 'delete', id] as const, +} as const; export const orgMembershipDefaultMutationKeys = { /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, /** Create orgMembershipDefault mutation key */ create: () => @@ -219,14 +258,6 @@ export const orgMembershipDefaultMutationKeys = { /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgmembershipdefault', 'delete', id] as const, } as const; -export const appLevelMutationKeys = { - /** All appLevel mutation keys */ all: ['mutation', 'applevel'] as const, - /** Create appLevel mutation key */ create: () => ['mutation', 'applevel', 'create'] as const, - /** Update appLevel mutation key */ update: (id: string | number) => - ['mutation', 'applevel', 'update', id] as const, - /** Delete appLevel mutation key */ delete: (id: string | number) => - ['mutation', 'applevel', 'delete', id] as const, -} as const; export const inviteMutationKeys = { /** All invite mutation keys */ all: ['mutation', 'invite'] as const, /** Create invite mutation key */ create: () => ['mutation', 'invite', 'create'] as const, @@ -235,6 +266,14 @@ export const inviteMutationKeys = { /** Delete invite mutation key */ delete: (id: string | number) => ['mutation', 'invite', 'delete', id] as const, } as const; +export const appLevelMutationKeys = { + /** All appLevel mutation keys */ all: ['mutation', 'applevel'] as const, + /** Create appLevel mutation key */ create: () => ['mutation', 'applevel', 'create'] as const, + /** Update appLevel mutation key */ update: (id: string | number) => + ['mutation', 'applevel', 'update', id] as const, + /** Delete appLevel mutation key */ delete: (id: string | number) => + ['mutation', 'applevel', 'delete', id] as const, +} as const; export const appMembershipMutationKeys = { /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, /** Create appMembership mutation key */ create: () => @@ -299,6 +338,8 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + orgGetManagersRecord: orgGetManagersRecordMutationKeys, + orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, appPermission: appPermissionMutationKeys, orgPermission: orgPermissionMutationKeys, appLevelRequirement: appLevelRequirementMutationKeys, @@ -307,11 +348,12 @@ export const mutationKeys = { orgPermissionDefault: orgPermissionDefaultMutationKeys, appAdminGrant: appAdminGrantMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, - appLimitDefault: appLimitDefaultMutationKeys, - orgLimitDefault: orgLimitDefaultMutationKeys, orgAdminGrant: orgAdminGrantMutationKeys, orgOwnerGrant: orgOwnerGrantMutationKeys, + appLimitDefault: appLimitDefaultMutationKeys, + orgLimitDefault: orgLimitDefaultMutationKeys, membershipType: membershipTypeMutationKeys, + orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, appLimit: appLimitMutationKeys, appAchievement: appAchievementMutationKeys, appStep: appStepMutationKeys, @@ -321,9 +363,10 @@ export const mutationKeys = { orgLimit: orgLimitMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, orgGrant: orgGrantMutationKeys, + orgChartEdge: orgChartEdgeMutationKeys, orgMembershipDefault: orgMembershipDefaultMutationKeys, - appLevel: appLevelMutationKeys, invite: inviteMutationKeys, + appLevel: appLevelMutationKeys, appMembership: appMembershipMutationKeys, orgMembership: orgMembershipMutationKeys, orgInvite: orgInviteMutationKeys, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts index 0f9e610e3..ed7b372ed 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateOrgGetManagersRecordMutation'; +export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateAppPermissionMutation'; export * from './useUpdateAppPermissionMutation'; export * from './useDeleteAppPermissionMutation'; @@ -27,21 +29,24 @@ export * from './useDeleteAppAdminGrantMutation'; export * from './useCreateAppOwnerGrantMutation'; export * from './useUpdateAppOwnerGrantMutation'; export * from './useDeleteAppOwnerGrantMutation'; -export * from './useCreateAppLimitDefaultMutation'; -export * from './useUpdateAppLimitDefaultMutation'; -export * from './useDeleteAppLimitDefaultMutation'; -export * from './useCreateOrgLimitDefaultMutation'; -export * from './useUpdateOrgLimitDefaultMutation'; -export * from './useDeleteOrgLimitDefaultMutation'; export * from './useCreateOrgAdminGrantMutation'; export * from './useUpdateOrgAdminGrantMutation'; export * from './useDeleteOrgAdminGrantMutation'; export * from './useCreateOrgOwnerGrantMutation'; export * from './useUpdateOrgOwnerGrantMutation'; export * from './useDeleteOrgOwnerGrantMutation'; +export * from './useCreateAppLimitDefaultMutation'; +export * from './useUpdateAppLimitDefaultMutation'; +export * from './useDeleteAppLimitDefaultMutation'; +export * from './useCreateOrgLimitDefaultMutation'; +export * from './useUpdateOrgLimitDefaultMutation'; +export * from './useDeleteOrgLimitDefaultMutation'; export * from './useCreateMembershipTypeMutation'; export * from './useUpdateMembershipTypeMutation'; export * from './useDeleteMembershipTypeMutation'; +export * from './useCreateOrgChartEdgeGrantMutation'; +export * from './useUpdateOrgChartEdgeGrantMutation'; +export * from './useDeleteOrgChartEdgeGrantMutation'; export * from './useCreateAppLimitMutation'; export * from './useUpdateAppLimitMutation'; export * from './useDeleteAppLimitMutation'; @@ -69,15 +74,18 @@ export * from './useDeleteOrgClaimedInviteMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; +export * from './useCreateOrgChartEdgeMutation'; +export * from './useUpdateOrgChartEdgeMutation'; +export * from './useDeleteOrgChartEdgeMutation'; export * from './useCreateOrgMembershipDefaultMutation'; export * from './useUpdateOrgMembershipDefaultMutation'; export * from './useDeleteOrgMembershipDefaultMutation'; -export * from './useCreateAppLevelMutation'; -export * from './useUpdateAppLevelMutation'; -export * from './useDeleteAppLevelMutation'; export * from './useCreateInviteMutation'; export * from './useUpdateInviteMutation'; export * from './useDeleteInviteMutation'; +export * from './useCreateAppLevelMutation'; +export * from './useUpdateAppLevelMutation'; +export * from './useDeleteAppLevelMutation'; export * from './useCreateAppMembershipMutation'; export * from './useUpdateAppMembershipMutation'; export * from './useDeleteAppMembershipMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts index 769f9a739..3e32e7437 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAchievementInput, } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts index 7dd44401e..3c9af35db 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAdminGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts index 0e2e4c286..c3ae518e1 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts index ba7c1fd68..fe81072d0 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelInput, } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts index 08cd438f8..792b9fc9f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelRequirementInput, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts index 40b24b14d..5e39d5c93 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLimitDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts index b7f7072be..4831101f2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLimitInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts index 0a4ecf4bc..cc66d20ab 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppMembershipDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts index fa08b65df..e991ed8fd 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppMembershipInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts index 81f12be36..3f5a3413d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppOwnerGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts index 1f2314266..1246a1892 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppPermissionDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts index 73d4eceec..c76e9081a 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppPermissionInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts index 1e521eeaf..98022f147 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppStepInput, } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts index a84eca95c..1d73744e6 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateClaimedInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts index 928d4f0cd..9ee97b57b 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts index d8219655f..91c696e68 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateMembershipTypeInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts index 00687d7da..1f160dd1d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgAdminGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..2b4124103 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts @@ -0,0 +1,91 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + CreateOrgChartEdgeGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + CreateOrgChartEdgeGrantInput, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] +>; +export function useCreateOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.create(), + mutationFn: (data: CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']) => + getClient() + .orgChartEdgeGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeMutation.ts new file mode 100644 index 000000000..e5562dc1f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgChartEdgeMutation.ts @@ -0,0 +1,88 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + CreateOrgChartEdgeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + CreateOrgChartEdgeInput, +} from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgChartEdgeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeInput['orgChartEdge'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeInput['orgChartEdge'] +>; +export function useCreateOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.create(), + mutationFn: (data: CreateOrgChartEdgeInput['orgChartEdge']) => + getClient() + .orgChartEdge.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts index 4ee4b71c3..f08114d37 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgClaimedInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts new file mode 100644 index 000000000..949ce4104 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgGetManagersRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgGetManagersRecordKeys } from '../query-keys'; +import { orgGetManagersRecordMutationKeys } from '../mutation-keys'; +import type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + CreateOrgGetManagersRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + CreateOrgGetManagersRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGetManagersRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGetManagersRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGetManagersRecordMutation( + params: { + selection: { + fields: S & OrgGetManagersRecordSelect; + } & HookStrictSelect, OrgGetManagersRecordSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetManagersRecordInput['orgGetManagersRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetManagersRecordInput['orgGetManagersRecord'] +>; +export function useCreateOrgGetManagersRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGetManagersRecordMutationKeys.create(), + mutationFn: (data: CreateOrgGetManagersRecordInput['orgGetManagersRecord']) => + getClient() + .orgGetManagersRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts new file mode 100644 index 000000000..237f47a7e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgGetSubordinatesRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgGetSubordinatesRecordKeys } from '../query-keys'; +import { orgGetSubordinatesRecordMutationKeys } from '../mutation-keys'; +import type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + CreateOrgGetSubordinatesRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + CreateOrgGetSubordinatesRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGetSubordinatesRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGetSubordinatesRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGetSubordinatesRecordMutation( + params: { + selection: { + fields: S & OrgGetSubordinatesRecordSelect; + } & HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] +>; +export function useCreateOrgGetSubordinatesRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGetSubordinatesRecordMutationKeys.create(), + mutationFn: (data: CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']) => + getClient() + .orgGetSubordinatesRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts index 391138997..7dc4d3025 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts index 6d65fa995..a81a94a9d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts index af559e6a2..42e50f62d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgLimitDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts index 33ed2f69e..d284edca9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgLimitInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts index 73bbfce52..14c7550f5 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMemberInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts index 9c1290cfb..b043e29d7 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMembershipDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts index e2b7c7e9b..84633ad1d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMembershipInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts index 9cec71f7f..974ac3430 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgOwnerGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts index da1688a0f..187051476 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgPermissionDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts index b1fd9fd3b..8c597cb08 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgPermissionInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts index cbcdae607..0e5f05546 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppAchievementSelect, AppAchievementWithRelations } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts index 83efe201c..1962f80e9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppAdminGrant with typed selection + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts index 2dcc61484..16814431f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppGrant with typed selection + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts index ae1a69ddd..cbef84ab8 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts index 624b78188..6784e56dc 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppLevelRequirementWithRelations, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts index 3d8cec160..d248f2be2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppLimitDefault with typed selection + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts index 9b3ebc52e..42ca8b532 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppLimit with typed selection + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts index bd2d8e77b..c01ff2054 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppMembershipDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppMembershipDefault with typed selection + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts index 270821ab2..03a601e74 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppMembership with typed selection + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts index 037ca9d28..836d241e1 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppOwnerGrant with typed selection + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts index 1c350f3fb..a9b23c747 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppPermissionDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppPermissionDefault with typed selection + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts index 327b4a107..b50268261 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppPermission with typed selection + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts index 9144c5c0a..7e2de1198 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types' import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts index 2c3709bd0..0a19b3fc7 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ClaimedInvite with typed selection + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts index bf9850ba6..7d0bc59be 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Invite with typed selection + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts index dbec0d9e9..71e81ffa9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a MembershipType with typed selection + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts index b2b62e271..dfd89d90e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgAdminGrant with typed selection + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..42b7b9e25 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts @@ -0,0 +1,104 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgChartEdgeGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.ts new file mode 100644 index 000000000..3aad832ca --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.ts @@ -0,0 +1,98 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgChartEdgeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgChartEdge.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts index 267b1abfe..ecc7fc630 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgClaimedInvite with typed selection + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts index 94b80fa12..3a1d1d967 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgGrant with typed selection + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts index 2960aeac6..34ba21236 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgInvite with typed selection + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts index a8e7bf162..b7614b66f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgLimitDefault with typed selection + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts index 818a3b294..340ecce1f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgLimit with typed selection + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts index 9c7697147..ed6a25761 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMember with typed selection + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts index e5c398c57..50fd07636 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { OrgMembershipDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMembershipDefault with typed selection + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts index 5108e73b9..62654c7ee 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMembership with typed selection + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts index 4700e63cd..834c27ca6 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgOwnerGrant with typed selection + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts index 841805104..a811eca53 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { OrgPermissionDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgPermissionDefault with typed selection + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts index 0792b5be9..1c02a813a 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgPermission with typed selection + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts index 837badc1b..ad055ea07 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAchievementPatch, } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts index 9f97a4a26..a41e1b8b9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAdminGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts index fe323065c..d0cb6ba8f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts index fbb3cc7b5..726bcffe8 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts index 07c816a74..01e6132c3 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppLevelRequirementPatch, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts index e4bf58682..d5402ef93 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppLimitDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts index 673e80850..5f606dc73 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts index c2d03af41..72d872f42 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppMembershipDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts index 21a8572d7..7ead9bdc2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppMembershipPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts index ec1d11eb5..7db485406 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppOwnerGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts index 9413e7ad3..9933bb8eb 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppPermissionDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts index 73effb82a..0b42bacb2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppPermissionPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts index a34404554..ed0cf895e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts index 45ccdc49a..b1d1cecf9 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ClaimedInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts index 819636de6..3c499b09e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts index caee90ff0..36101d2c0 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { MembershipTypePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts index 41f8e6380..a33b9997e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgAdminGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..151d9fa11 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantPatch, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgChartEdgeGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } +>; +export function useUpdateOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.all, + mutationFn: ({ + id, + orgChartEdgeGrantPatch, + }: { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + }) => + getClient() + .orgChartEdgeGrant.update({ + where: { + id, + }, + data: orgChartEdgeGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.ts new file mode 100644 index 000000000..e169ad09a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.ts @@ -0,0 +1,110 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgePatch, +} from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgChartEdgeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgChartEdgePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } +>; +export function useUpdateOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.all, + mutationFn: ({ id, orgChartEdgePatch }: { id: string; orgChartEdgePatch: OrgChartEdgePatch }) => + getClient() + .orgChartEdge.update({ + where: { + id, + }, + data: orgChartEdgePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts index 8b2a21d55..536c3ba76 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgClaimedInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts index fc612cf93..50e725580 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts index 5093adbfc..deae91a03 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts index 9226eadb8..c80fc084e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgLimitDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts index cd8f3baed..b911eef59 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts index 42f54bfc7..9afc577fb 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMemberPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts index 06b97181c..4536a0d0f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMembershipDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts index 5a8998fb2..af8939d5e 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMembershipPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts index f1704e8be..3bd0c3ac2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgOwnerGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts index b512499d2..b53a85a67 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgPermissionDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts index 69be765f0..2704a2545 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgPermissionPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/queries/index.ts b/sdk/constructive-react/src/admin/hooks/queries/index.ts index 8ae463934..fa333443c 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/index.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useOrgGetManagersQuery'; +export * from './useOrgGetSubordinatesQuery'; export * from './useAppPermissionsQuery'; export * from './useAppPermissionQuery'; export * from './useOrgPermissionsQuery'; @@ -19,16 +21,18 @@ export * from './useAppAdminGrantsQuery'; export * from './useAppAdminGrantQuery'; export * from './useAppOwnerGrantsQuery'; export * from './useAppOwnerGrantQuery'; -export * from './useAppLimitDefaultsQuery'; -export * from './useAppLimitDefaultQuery'; -export * from './useOrgLimitDefaultsQuery'; -export * from './useOrgLimitDefaultQuery'; export * from './useOrgAdminGrantsQuery'; export * from './useOrgAdminGrantQuery'; export * from './useOrgOwnerGrantsQuery'; export * from './useOrgOwnerGrantQuery'; +export * from './useAppLimitDefaultsQuery'; +export * from './useAppLimitDefaultQuery'; +export * from './useOrgLimitDefaultsQuery'; +export * from './useOrgLimitDefaultQuery'; export * from './useMembershipTypesQuery'; export * from './useMembershipTypeQuery'; +export * from './useOrgChartEdgeGrantsQuery'; +export * from './useOrgChartEdgeGrantQuery'; export * from './useAppLimitsQuery'; export * from './useAppLimitQuery'; export * from './useAppAchievementsQuery'; @@ -47,12 +51,14 @@ export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; export * from './useOrgGrantsQuery'; export * from './useOrgGrantQuery'; +export * from './useOrgChartEdgesQuery'; +export * from './useOrgChartEdgeQuery'; export * from './useOrgMembershipDefaultsQuery'; export * from './useOrgMembershipDefaultQuery'; -export * from './useAppLevelsQuery'; -export * from './useAppLevelQuery'; export * from './useInvitesQuery'; export * from './useInviteQuery'; +export * from './useAppLevelsQuery'; +export * from './useAppLevelQuery'; export * from './useAppMembershipsQuery'; export * from './useAppMembershipQuery'; export * from './useOrgMembershipsQuery'; @@ -61,6 +67,7 @@ export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; export * from './useAppPermissionsGetPaddedMaskQuery'; export * from './useOrgPermissionsGetPaddedMaskQuery'; +export * from './useOrgIsManagerOfQuery'; export * from './useStepsAchievedQuery'; export * from './useAppPermissionsGetMaskQuery'; export * from './useOrgPermissionsGetMaskQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts index df345dff7..c7750c259 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppAchievementSelect, AppAchievementWithRelations } from '../../or /** Query key factory - re-exported from query-keys.ts */ export const appAchievementQueryKey = appAchievementKeys.detail; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAchievementQuery( }); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAchievementQuery(params: { .unwrap(); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts index da6cdc397..d2b39ab84 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appAchievementsQueryKey = appAchievementKeys.list; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppAchievementsQuery( }); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchAppAchievementsQuery(params: { return getClient().appAchievement.findMany(args).unwrap(); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts index d010f7876..dab440873 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appAdminGrantQueryKey = appAdminGrantKeys.detail; /** - * Query hook for fetching a single AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAdminGrantQuery( }); } /** - * Fetch a single AppAdminGrant without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAdminGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppAdminGrant for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts index eb47436de..c41e3bfcf 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appAdminGrantsQueryKey = appAdminGrantKeys.list; /** - * Query hook for fetching AppAdminGrant list + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppAdminGrantsQuery( }); } /** - * Fetch AppAdminGrant list without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppAdminGrantsQuery(params: { return getClient().appAdminGrant.findMany(args).unwrap(); } /** - * Prefetch AppAdminGrant list for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts index a730510c7..41777becd 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appGrantQueryKey = appGrantKeys.detail; /** - * Query hook for fetching a single AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppGrantQuery( }); } /** - * Fetch a single AppGrant without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppGrant for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts index cf20fe3c6..de0684b89 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appGrantsQueryKey = appGrantKeys.list; /** - * Query hook for fetching AppGrant list + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppGrantsQuery( }); } /** - * Fetch AppGrant list without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppGrantsQuery(params: { return getClient().appGrant.findMany(args).unwrap(); } /** - * Prefetch AppGrant list for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts index 6d494bc93..2d947f33f 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appLevelQueryKey = appLevelKeys.detail; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLevelQuery( }); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLevelQuery(params: { .unwrap(); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts index 1735a08d4..c446092be 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelRequirementQueryKey = appLevelRequirementKeys.detail; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppLevelRequirementQuery( }); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppLevelRequirementQuery(params: { .unwrap(); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts index 502b029db..7dd162330 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelRequirementsQueryKey = appLevelRequirementKeys.list; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx @@ -95,7 +95,7 @@ export function useAppLevelRequirementsQuery( }); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts @@ -133,7 +133,7 @@ export async function fetchAppLevelRequirementsQuery(params: { return getClient().appLevelRequirement.findMany(args).unwrap(); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts index b576855c9..4e237d953 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelsQueryKey = appLevelKeys.list; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLevelsQuery( }); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLevelsQuery(params: { return getClient().appLevel.findMany(args).unwrap(); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts index c68c8c7ca..3f9e92b4c 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../ /** Query key factory - re-exported from query-keys.ts */ export const appLimitDefaultQueryKey = appLimitDefaultKeys.detail; /** - * Query hook for fetching a single AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLimitDefaultQuery( }); } /** - * Fetch a single AppLimitDefault without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLimitDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppLimitDefault for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts index 8f702ecb1..25eb72182 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitDefaultsQueryKey = appLimitDefaultKeys.list; /** - * Query hook for fetching AppLimitDefault list + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppLimitDefaultsQuery( }); } /** - * Fetch AppLimitDefault list without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchAppLimitDefaultsQuery(params: { return getClient().appLimitDefault.findMany(args).unwrap(); } /** - * Prefetch AppLimitDefault list for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts index eb7beb27f..92f7ca2ab 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appLimitQueryKey = appLimitKeys.detail; /** - * Query hook for fetching a single AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLimitQuery( }); } /** - * Fetch a single AppLimit without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLimitQuery(params: { .unwrap(); } /** - * Prefetch a single AppLimit for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts index 280fd25e8..fc868ff90 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitsQueryKey = appLimitKeys.list; /** - * Query hook for fetching AppLimit list + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLimitsQuery( }); } /** - * Fetch AppLimit list without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLimitsQuery(params: { return getClient().appLimit.findMany(args).unwrap(); } /** - * Prefetch AppLimit list for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts index b34f50fc2..7cf34e91a 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipDefaultQueryKey = appMembershipDefaultKeys.detail; /** - * Query hook for fetching a single AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppMembershipDefaultQuery( }); } /** - * Fetch a single AppMembershipDefault without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppMembershipDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppMembershipDefault for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts index bda74e8ba..a3722e798 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipDefaultsQueryKey = appMembershipDefaultKeys.list; /** - * Query hook for fetching AppMembershipDefault list + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -97,7 +97,7 @@ export function useAppMembershipDefaultsQuery( }); } /** - * Fetch AppMembershipDefault list without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchAppMembershipDefaultsQuery(params: { return getClient().appMembershipDefault.findMany(args).unwrap(); } /** - * Prefetch AppMembershipDefault list for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts index 5cd832890..47a401be2 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appMembershipQueryKey = appMembershipKeys.detail; /** - * Query hook for fetching a single AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppMembershipQuery( }); } /** - * Fetch a single AppMembership without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppMembershipQuery(params: { .unwrap(); } /** - * Prefetch a single AppMembership for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts index 714e4372b..4a7406a96 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipsQueryKey = appMembershipKeys.list; /** - * Query hook for fetching AppMembership list + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppMembershipsQuery( }); } /** - * Fetch AppMembership list without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppMembershipsQuery(params: { return getClient().appMembership.findMany(args).unwrap(); } /** - * Prefetch AppMembership list for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts index 49fcb6506..98a75b276 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appOwnerGrantQueryKey = appOwnerGrantKeys.detail; /** - * Query hook for fetching a single AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppOwnerGrantQuery( }); } /** - * Fetch a single AppOwnerGrant without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppOwnerGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppOwnerGrant for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts index 25a312bcc..3cd73b539 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appOwnerGrantsQueryKey = appOwnerGrantKeys.list; /** - * Query hook for fetching AppOwnerGrant list + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppOwnerGrantsQuery( }); } /** - * Fetch AppOwnerGrant list without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppOwnerGrantsQuery(params: { return getClient().appOwnerGrant.findMany(args).unwrap(); } /** - * Prefetch AppOwnerGrant list for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts index 47eb66e64..27e973c84 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionDefaultQueryKey = appPermissionDefaultKeys.detail; /** - * Query hook for fetching a single AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppPermissionDefaultQuery( }); } /** - * Fetch a single AppPermissionDefault without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppPermissionDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppPermissionDefault for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts index 21414a9fb..44cdda731 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionDefaultsQueryKey = appPermissionDefaultKeys.list; /** - * Query hook for fetching AppPermissionDefault list + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -97,7 +97,7 @@ export function useAppPermissionDefaultsQuery( }); } /** - * Fetch AppPermissionDefault list without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchAppPermissionDefaultsQuery(params: { return getClient().appPermissionDefault.findMany(args).unwrap(); } /** - * Prefetch AppPermissionDefault list for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts index 37a00c5e9..a71c93422 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appPermissionQueryKey = appPermissionKeys.detail; /** - * Query hook for fetching a single AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppPermissionQuery( }); } /** - * Fetch a single AppPermission without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppPermissionQuery(params: { .unwrap(); } /** - * Prefetch a single AppPermission for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts index f44f4e105..67d25dcdc 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionsQueryKey = appPermissionKeys.list; /** - * Query hook for fetching AppPermission list + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppPermissionsQuery( }); } /** - * Fetch AppPermission list without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppPermissionsQuery(params: { return getClient().appPermission.findMany(args).unwrap(); } /** - * Prefetch AppPermission list for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts index d6d579aef..5d3ebbbd0 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types' /** Query key factory - re-exported from query-keys.ts */ export const appStepQueryKey = appStepKeys.detail; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppStepQuery( }); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppStepQuery(params: { .unwrap(); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts index 9a4ec77c5..a20c454ec 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appStepsQueryKey = appStepKeys.list; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppStepsQuery( }); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppStepsQuery(params: { return getClient().appStep.findMany(args).unwrap(); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts index e74f389c7..e028debb3 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const claimedInviteQueryKey = claimedInviteKeys.detail; /** - * Query hook for fetching a single ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useClaimedInviteQuery( }); } /** - * Fetch a single ClaimedInvite without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchClaimedInviteQuery(params: { .unwrap(); } /** - * Prefetch a single ClaimedInvite for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts index 9373984d9..55ef8c00b 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const claimedInvitesQueryKey = claimedInviteKeys.list; /** - * Query hook for fetching ClaimedInvite list + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -86,7 +86,7 @@ export function useClaimedInvitesQuery( }); } /** - * Fetch ClaimedInvite list without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchClaimedInvitesQuery(params: { return getClient().claimedInvite.findMany(args).unwrap(); } /** - * Prefetch ClaimedInvite list for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts index 51db01afb..7dc699235 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const inviteQueryKey = inviteKeys.detail; /** - * Query hook for fetching a single Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -70,7 +70,7 @@ export function useInviteQuery( }); } /** - * Fetch a single Invite without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchInviteQuery(params: { .unwrap(); } /** - * Prefetch a single Invite for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts index 19a1fd3b1..873e55aa5 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const invitesQueryKey = inviteKeys.list; /** - * Query hook for fetching Invite list + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -82,7 +82,7 @@ export function useInvitesQuery( }); } /** - * Fetch Invite list without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchInvitesQuery(params: { return getClient().invite.findMany(args).unwrap(); } /** - * Prefetch Invite list for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts index c8d749048..71fdd8b77 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../or /** Query key factory - re-exported from query-keys.ts */ export const membershipTypeQueryKey = membershipTypeKeys.detail; /** - * Query hook for fetching a single MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useMembershipTypeQuery( }); } /** - * Fetch a single MembershipType without React hooks + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchMembershipTypeQuery(params: { .unwrap(); } /** - * Prefetch a single MembershipType for SSR or cache warming + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts index c0f5b68c9..c148bab02 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const membershipTypesQueryKey = membershipTypeKeys.list; /** - * Query hook for fetching MembershipType list + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx @@ -90,7 +90,7 @@ export function useMembershipTypesQuery( }); } /** - * Fetch MembershipType list without React hooks + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchMembershipTypesQuery(params: { return getClient().membershipType.findMany(args).unwrap(); } /** - * Prefetch MembershipType list for SSR or cache warming + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts index a4f507c14..04901b7da 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgAdminGrantQueryKey = orgAdminGrantKeys.detail; /** - * Query hook for fetching a single OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgAdminGrantQuery( }); } /** - * Fetch a single OrgAdminGrant without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgAdminGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgAdminGrant for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts index e3ce559b3..b79b6cfdd 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgAdminGrantsQueryKey = orgAdminGrantKeys.list; /** - * Query hook for fetching OrgAdminGrant list + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgAdminGrantsQuery( }); } /** - * Fetch OrgAdminGrant list without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgAdminGrantsQuery(params: { return getClient().orgAdminGrant.findMany(args).unwrap(); } /** - * Prefetch OrgAdminGrant list for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantQuery.ts new file mode 100644 index 000000000..576725d54 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantQuery.ts @@ -0,0 +1,144 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeGrantQueryKey = orgChartEdgeGrantKeys.detail; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgChartEdgeGrantQuery< + S extends OrgChartEdgeGrantSelect, + TData = { + orgChartEdgeGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdgeGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; +}): Promise<{ + orgChartEdgeGrant: InferSelectResult | null; +}>; +export async function fetchOrgChartEdgeGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * await prefetchOrgChartEdgeGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgChartEdgeGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantsQuery.ts new file mode 100644 index 000000000..8f4c33b08 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeGrantsQuery.ts @@ -0,0 +1,163 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeGrantsQueryKey = orgChartEdgeGrantKeys.list; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgChartEdgeGrantsQuery< + S extends OrgChartEdgeGrantSelect, + TData = { + orgChartEdgeGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdgeGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeGrantsQuery( + params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeGrantKeys.list(args), + queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; +}): Promise<{ + orgChartEdgeGrants: ConnectionResult>; +}>; +export async function fetchOrgChartEdgeGrantsQuery(params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + return getClient().orgChartEdgeGrant.findMany(args).unwrap(); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * await prefetchOrgChartEdgeGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgChartEdgeGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeGrantKeys.list(args), + queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeQuery.ts new file mode 100644 index 000000000..9087f1620 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgeQuery.ts @@ -0,0 +1,138 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeQueryKey = orgChartEdgeKeys.detail; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgChartEdgeQuery< + S extends OrgChartEdgeSelect, + TData = { + orgChartEdge: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdge: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; +}): Promise<{ + orgChartEdge: InferSelectResult | null; +}>; +export async function fetchOrgChartEdgeQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * await prefetchOrgChartEdgeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgChartEdgeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgesQuery.ts new file mode 100644 index 000000000..c5030a79d --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgChartEdgesQuery.ts @@ -0,0 +1,145 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgesQueryKey = orgChartEdgeKeys.list; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgChartEdgesQuery< + S extends OrgChartEdgeSelect, + TData = { + orgChartEdges: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdges: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeKeys.list(args), + queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * const data = await fetchOrgChartEdgesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgChartEdgesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; +}): Promise<{ + orgChartEdges: ConnectionResult>; +}>; +export async function fetchOrgChartEdgesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgChartEdge.findMany(args).unwrap(); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * await prefetchOrgChartEdgesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgChartEdgesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; + } +): Promise; +export async function prefetchOrgChartEdgesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeKeys.list(args), + queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts index 42ac5f45a..19223fbe3 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../. /** Query key factory - re-exported from query-keys.ts */ export const orgClaimedInviteQueryKey = orgClaimedInviteKeys.detail; /** - * Query hook for fetching a single OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgClaimedInviteQuery( }); } /** - * Fetch a single OrgClaimedInvite without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgClaimedInviteQuery(params: { .unwrap(); } /** - * Prefetch a single OrgClaimedInvite for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts index 965828b20..300fb5adf 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgClaimedInvitesQueryKey = orgClaimedInviteKeys.list; /** - * Query hook for fetching OrgClaimedInvite list + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -90,7 +90,7 @@ export function useOrgClaimedInvitesQuery( }); } /** - * Fetch OrgClaimedInvite list without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchOrgClaimedInvitesQuery(params: { return getClient().orgClaimedInvite.findMany(args).unwrap(); } /** - * Prefetch OrgClaimedInvite list for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGetManagersQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGetManagersQuery.ts new file mode 100644 index 000000000..cd9e04016 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGetManagersQuery.ts @@ -0,0 +1,172 @@ +/** + * List query hook for OrgGetManagersRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgGetManagersRecordKeys } from '../query-keys'; +import type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGetManagersQueryKey = orgGetManagersRecordKeys.list; +/** + * Query hook for fetching OrgGetManagersRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGetManagersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGetManagersQuery< + S extends OrgGetManagersRecordSelect, + TData = { + orgGetManagers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; + } & Omit< + UseQueryOptions< + { + orgGetManagers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGetManagersQuery( + params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGetManagersRecordKeys.list(args), + queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGetManagersRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGetManagersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGetManagersQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; +}): Promise<{ + orgGetManagers: ConnectionResult>; +}>; +export async function fetchOrgGetManagersQuery(params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + return getClient().orgGetManagersRecord.findMany(args).unwrap(); +} +/** + * Prefetch OrgGetManagersRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGetManagersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGetManagersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; + } +): Promise; +export async function prefetchOrgGetManagersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGetManagersRecordKeys.list(args), + queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGetSubordinatesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGetSubordinatesQuery.ts new file mode 100644 index 000000000..5f006d3ca --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGetSubordinatesQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for OrgGetSubordinatesRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgGetSubordinatesRecordKeys } from '../query-keys'; +import type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGetSubordinatesQueryKey = orgGetSubordinatesRecordKeys.list; +/** + * Query hook for fetching OrgGetSubordinatesRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGetSubordinatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGetSubordinatesQuery< + S extends OrgGetSubordinatesRecordSelect, + TData = { + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } & Omit< + UseQueryOptions< + { + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGetSubordinatesQuery( + params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGetSubordinatesRecordKeys.list(args), + queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGetSubordinatesRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGetSubordinatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGetSubordinatesQuery< + S extends OrgGetSubordinatesRecordSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; +}): Promise<{ + orgGetSubordinates: ConnectionResult>; +}>; +export async function fetchOrgGetSubordinatesQuery(params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + return getClient().orgGetSubordinatesRecord.findMany(args).unwrap(); +} +/** + * Prefetch OrgGetSubordinatesRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGetSubordinatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGetSubordinatesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } +): Promise; +export async function prefetchOrgGetSubordinatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGetSubordinatesRecordKeys.list(args), + queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts index 14ccf29ec..cd04f290e 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const orgGrantQueryKey = orgGrantKeys.detail; /** - * Query hook for fetching a single OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgGrantQuery( }); } /** - * Fetch a single OrgGrant without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgGrant for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts index 8f1ddc2ab..f40214130 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgGrantsQueryKey = orgGrantKeys.list; /** - * Query hook for fetching OrgGrant list + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgGrantsQuery( }); } /** - * Fetch OrgGrant list without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgGrantsQuery(params: { return getClient().orgGrant.findMany(args).unwrap(); } /** - * Prefetch OrgGrant list for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts index d6c2f623f..244288aa7 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const orgInviteQueryKey = orgInviteKeys.detail; /** - * Query hook for fetching a single OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgInviteQuery( }); } /** - * Fetch a single OrgInvite without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgInviteQuery(params: { .unwrap(); } /** - * Prefetch a single OrgInvite for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts index baaef3936..b5e0ee4dd 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgInvitesQueryKey = orgInviteKeys.list; /** - * Query hook for fetching OrgInvite list + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgInvitesQuery( }); } /** - * Fetch OrgInvite list without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgInvitesQuery(params: { return getClient().orgInvite.findMany(args).unwrap(); } /** - * Prefetch OrgInvite list for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgIsManagerOfQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgIsManagerOfQuery.ts new file mode 100644 index 000000000..6092abc4a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgIsManagerOfQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for orgIsManagerOf + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customQueryKeys } from '../query-keys'; +import type { OrgIsManagerOfVariables } from '../../orm/query'; +export type { OrgIsManagerOfVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgIsManagerOfQueryKey = customQueryKeys.orgIsManagerOf; +/** + * Query hook for orgIsManagerOf + * + * @example + * ```tsx + * const { data, isLoading } = useOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * + * if (data?.orgIsManagerOf) { + * console.log(data.orgIsManagerOf); + * } + * ``` + */ +export function useOrgIsManagerOfQuery< + TData = { + orgIsManagerOf: boolean | null; + }, +>( + params?: { + variables?: OrgIsManagerOfVariables; + } & Omit< + UseQueryOptions< + { + orgIsManagerOf: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgIsManagerOfQuery< + TData = { + orgIsManagerOf: boolean | null; + }, +>( + params?: { + variables?: OrgIsManagerOfVariables; + } & Omit< + UseQueryOptions< + { + orgIsManagerOf: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgIsManagerOfQueryKey(variables), + queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgIsManagerOf without React hooks + * + * @example + * ```ts + * const data = await fetchOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * ``` + */ +export async function fetchOrgIsManagerOfQuery(params?: { variables?: OrgIsManagerOfVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.orgIsManagerOf(variables).unwrap(); +} +/** + * Prefetch orgIsManagerOf for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgIsManagerOfQuery(queryClient, { variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * ``` + */ +export async function prefetchOrgIsManagerOfQuery( + queryClient: QueryClient, + params?: { + variables?: OrgIsManagerOfVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgIsManagerOfQueryKey(variables), + queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts index 695d1eff9..4c0eff29a 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../ /** Query key factory - re-exported from query-keys.ts */ export const orgLimitDefaultQueryKey = orgLimitDefaultKeys.detail; /** - * Query hook for fetching a single OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgLimitDefaultQuery( }); } /** - * Fetch a single OrgLimitDefault without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgLimitDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgLimitDefault for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts index fae82e41b..5a7b07bbf 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgLimitDefaultsQueryKey = orgLimitDefaultKeys.list; /** - * Query hook for fetching OrgLimitDefault list + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -90,7 +90,7 @@ export function useOrgLimitDefaultsQuery( }); } /** - * Fetch OrgLimitDefault list without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchOrgLimitDefaultsQuery(params: { return getClient().orgLimitDefault.findMany(args).unwrap(); } /** - * Prefetch OrgLimitDefault list for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts index db061397b..a63b11f53 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const orgLimitQueryKey = orgLimitKeys.detail; /** - * Query hook for fetching a single OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgLimitQuery( }); } /** - * Fetch a single OrgLimit without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgLimitQuery(params: { .unwrap(); } /** - * Prefetch a single OrgLimit for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts index 032866dfb..320ccf624 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgLimitsQueryKey = orgLimitKeys.list; /** - * Query hook for fetching OrgLimit list + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgLimitsQuery( }); } /** - * Fetch OrgLimit list without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgLimitsQuery(params: { return getClient().orgLimit.findMany(args).unwrap(); } /** - * Prefetch OrgLimit list for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts index aa4257559..e8cbfeaa0 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const orgMemberQueryKey = orgMemberKeys.detail; /** - * Query hook for fetching a single OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgMemberQuery( }); } /** - * Fetch a single OrgMember without React hooks + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgMemberQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMember for SSR or cache warming + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts index 651d52afb..21929089e 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembersQueryKey = orgMemberKeys.list; /** - * Query hook for fetching OrgMember list + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgMembersQuery( }); } /** - * Fetch OrgMember list without React hooks + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgMembersQuery(params: { return getClient().orgMember.findMany(args).unwrap(); } /** - * Prefetch OrgMember list for SSR or cache warming + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts index 47264e0a5..bff51e2a0 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipDefaultQueryKey = orgMembershipDefaultKeys.detail; /** - * Query hook for fetching a single OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -76,7 +76,7 @@ export function useOrgMembershipDefaultQuery( }); } /** - * Fetch a single OrgMembershipDefault without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchOrgMembershipDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMembershipDefault for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts index 8cb20caae..06c715627 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipDefaultsQueryKey = orgMembershipDefaultKeys.list; /** - * Query hook for fetching OrgMembershipDefault list + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -97,7 +97,7 @@ export function useOrgMembershipDefaultsQuery( }); } /** - * Fetch OrgMembershipDefault list without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchOrgMembershipDefaultsQuery(params: { return getClient().orgMembershipDefault.findMany(args).unwrap(); } /** - * Prefetch OrgMembershipDefault list for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts index ec1c49d75..945adf98d 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipQueryKey = orgMembershipKeys.detail; /** - * Query hook for fetching a single OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgMembershipQuery( }); } /** - * Fetch a single OrgMembership without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgMembershipQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMembership for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts index cde182a7b..2e620b485 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipsQueryKey = orgMembershipKeys.list; /** - * Query hook for fetching OrgMembership list + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgMembershipsQuery( }); } /** - * Fetch OrgMembership list without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgMembershipsQuery(params: { return getClient().orgMembership.findMany(args).unwrap(); } /** - * Prefetch OrgMembership list for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts index 9a0b0c9df..ad6a4b4ba 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgOwnerGrantQueryKey = orgOwnerGrantKeys.detail; /** - * Query hook for fetching a single OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgOwnerGrantQuery( }); } /** - * Fetch a single OrgOwnerGrant without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgOwnerGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgOwnerGrant for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts index 315d1cc57..5f22b3f8a 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgOwnerGrantsQueryKey = orgOwnerGrantKeys.list; /** - * Query hook for fetching OrgOwnerGrant list + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgOwnerGrantsQuery( }); } /** - * Fetch OrgOwnerGrant list without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgOwnerGrantsQuery(params: { return getClient().orgOwnerGrant.findMany(args).unwrap(); } /** - * Prefetch OrgOwnerGrant list for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts index 3f324b798..e1e71f5fc 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionDefaultQueryKey = orgPermissionDefaultKeys.detail; /** - * Query hook for fetching a single OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -76,7 +76,7 @@ export function useOrgPermissionDefaultQuery( }); } /** - * Fetch a single OrgPermissionDefault without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchOrgPermissionDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgPermissionDefault for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts index 021e73f1c..8bbff2240 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionDefaultsQueryKey = orgPermissionDefaultKeys.list; /** - * Query hook for fetching OrgPermissionDefault list + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -97,7 +97,7 @@ export function useOrgPermissionDefaultsQuery( }); } /** - * Fetch OrgPermissionDefault list without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchOrgPermissionDefaultsQuery(params: { return getClient().orgPermissionDefault.findMany(args).unwrap(); } /** - * Prefetch OrgPermissionDefault list for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts index 3d28f9542..fcee408e9 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionQueryKey = orgPermissionKeys.detail; /** - * Query hook for fetching a single OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgPermissionQuery( }); } /** - * Fetch a single OrgPermission without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgPermissionQuery(params: { .unwrap(); } /** - * Prefetch a single OrgPermission for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts index 3e48264a6..b5272fe6f 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionsQueryKey = orgPermissionKeys.list; /** - * Query hook for fetching OrgPermission list + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgPermissionsQuery( }); } /** - * Fetch OrgPermission list without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgPermissionsQuery(params: { return getClient().orgPermission.findMany(args).unwrap(); } /** - * Prefetch OrgPermission list for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/query-keys.ts b/sdk/constructive-react/src/admin/hooks/query-keys.ts index da5741b1c..19f130656 100644 --- a/sdk/constructive-react/src/admin/hooks/query-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -19,6 +19,24 @@ // Entity Query Keys // ============================================================================ +export const orgGetManagersRecordKeys = { + /** All orgGetManagersRecord queries */ all: ['orggetmanagersrecord'] as const, + /** List query keys */ lists: () => [...orgGetManagersRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGetManagersRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGetManagersRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGetManagersRecordKeys.details(), id] as const, +} as const; +export const orgGetSubordinatesRecordKeys = { + /** All orgGetSubordinatesRecord queries */ all: ['orggetsubordinatesrecord'] as const, + /** List query keys */ lists: () => [...orgGetSubordinatesRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGetSubordinatesRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGetSubordinatesRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGetSubordinatesRecordKeys.details(), id] as const, +} as const; export const appPermissionKeys = { /** All appPermission queries */ all: ['apppermission'] as const, /** List query keys */ lists: () => [...appPermissionKeys.all, 'list'] as const, @@ -91,24 +109,6 @@ export const appOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appOwnerGrantKeys.details(), id] as const, } as const; -export const appLimitDefaultKeys = { - /** All appLimitDefault queries */ all: ['applimitdefault'] as const, - /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitDefaultKeys.details(), id] as const, -} as const; -export const orgLimitDefaultKeys = { - /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, - /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitDefaultKeys.details(), id] as const, -} as const; export const orgAdminGrantKeys = { /** All orgAdminGrant queries */ all: ['orgadmingrant'] as const, /** List query keys */ lists: () => [...orgAdminGrantKeys.all, 'list'] as const, @@ -127,6 +127,24 @@ export const orgOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgOwnerGrantKeys.details(), id] as const, } as const; +export const appLimitDefaultKeys = { + /** All appLimitDefault queries */ all: ['applimitdefault'] as const, + /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitDefaultKeys.details(), id] as const, +} as const; +export const orgLimitDefaultKeys = { + /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, + /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitDefaultKeys.details(), id] as const, +} as const; export const membershipTypeKeys = { /** All membershipType queries */ all: ['membershiptype'] as const, /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, @@ -136,6 +154,15 @@ export const membershipTypeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...membershipTypeKeys.details(), id] as const, } as const; +export const orgChartEdgeGrantKeys = { + /** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'] as const, + /** List query keys */ lists: () => [...orgChartEdgeGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgChartEdgeGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgChartEdgeGrantKeys.details(), id] as const, +} as const; export const appLimitKeys = { /** All appLimit queries */ all: ['applimit'] as const, /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, @@ -217,6 +244,15 @@ export const orgGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgGrantKeys.details(), id] as const, } as const; +export const orgChartEdgeKeys = { + /** All orgChartEdge queries */ all: ['orgchartedge'] as const, + /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgChartEdgeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgChartEdgeKeys.details(), id] as const, +} as const; export const orgMembershipDefaultKeys = { /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, @@ -226,15 +262,6 @@ export const orgMembershipDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMembershipDefaultKeys.details(), id] as const, } as const; -export const appLevelKeys = { - /** All appLevel queries */ all: ['applevel'] as const, - /** List query keys */ lists: () => [...appLevelKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLevelKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLevelKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLevelKeys.details(), id] as const, -} as const; export const inviteKeys = { /** All invite queries */ all: ['invite'] as const, /** List query keys */ lists: () => [...inviteKeys.all, 'list'] as const, @@ -244,6 +271,15 @@ export const inviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...inviteKeys.details(), id] as const, } as const; +export const appLevelKeys = { + /** All appLevel queries */ all: ['applevel'] as const, + /** List query keys */ lists: () => [...appLevelKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLevelKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLevelKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLevelKeys.details(), id] as const, +} as const; export const appMembershipKeys = { /** All appMembership queries */ all: ['appmembership'] as const, /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, @@ -283,6 +319,8 @@ export const customQueryKeys = { /** Query key for orgPermissionsGetPaddedMask */ orgPermissionsGetPaddedMask: ( variables?: object ) => ['orgPermissionsGetPaddedMask', variables] as const, + /** Query key for orgIsManagerOf */ orgIsManagerOf: (variables?: object) => + ['orgIsManagerOf', variables] as const, /** Query key for stepsAchieved */ stepsAchieved: (variables?: object) => ['stepsAchieved', variables] as const, /** Query key for appPermissionsGetMask */ appPermissionsGetMask: (variables?: object) => @@ -325,6 +363,8 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + orgGetManagersRecord: orgGetManagersRecordKeys, + orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, appPermission: appPermissionKeys, orgPermission: orgPermissionKeys, appLevelRequirement: appLevelRequirementKeys, @@ -333,11 +373,12 @@ export const queryKeys = { orgPermissionDefault: orgPermissionDefaultKeys, appAdminGrant: appAdminGrantKeys, appOwnerGrant: appOwnerGrantKeys, - appLimitDefault: appLimitDefaultKeys, - orgLimitDefault: orgLimitDefaultKeys, orgAdminGrant: orgAdminGrantKeys, orgOwnerGrant: orgOwnerGrantKeys, + appLimitDefault: appLimitDefaultKeys, + orgLimitDefault: orgLimitDefaultKeys, membershipType: membershipTypeKeys, + orgChartEdgeGrant: orgChartEdgeGrantKeys, appLimit: appLimitKeys, appAchievement: appAchievementKeys, appStep: appStepKeys, @@ -347,9 +388,10 @@ export const queryKeys = { orgLimit: orgLimitKeys, orgClaimedInvite: orgClaimedInviteKeys, orgGrant: orgGrantKeys, + orgChartEdge: orgChartEdgeKeys, orgMembershipDefault: orgMembershipDefaultKeys, - appLevel: appLevelKeys, invite: inviteKeys, + appLevel: appLevelKeys, appMembership: appMembershipKeys, orgMembership: orgMembershipKeys, orgInvite: orgInviteKeys, diff --git a/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md b/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md deleted file mode 100644 index 109aaf8bb..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appAchievement - - - -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. - -## Usage - -```typescript -useAppAchievementsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useAppAchievementQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useCreateAppAchievementMutation({ selection: { fields: { id: true } } }) -useUpdateAppAchievementMutation({ selection: { fields: { id: true } } }) -useDeleteAppAchievementMutation({}) -``` - -## Examples - -### List all appAchievements - -```typescript -const { data, isLoading } = useAppAchievementsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appAchievement - -```typescript -const { mutate } = useCreateAppAchievementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', name: '', count: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appAdminGrant.md b/sdk/constructive-react/src/admin/hooks/skills/appAdminGrant.md deleted file mode 100644 index 6bfebeb38..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appAdminGrant - - - -React Query hooks for AppAdminGrant data operations - -## Usage - -```typescript -useAppAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useAppAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateAppAdminGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppAdminGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppAdminGrantMutation({}) -``` - -## Examples - -### List all appAdminGrants - -```typescript -const { data, isLoading } = useAppAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appAdminGrant - -```typescript -const { mutate } = useCreateAppAdminGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appGrant.md b/sdk/constructive-react/src/admin/hooks/skills/appGrant.md deleted file mode 100644 index be596bddb..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appGrant - - - -React Query hooks for AppGrant data operations - -## Usage - -```typescript -useAppGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useAppGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateAppGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppGrantMutation({}) -``` - -## Examples - -### List all appGrants - -```typescript -const { data, isLoading } = useAppGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appGrant - -```typescript -const { mutate } = useCreateAppGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLevel.md b/sdk/constructive-react/src/admin/hooks/skills/appLevel.md deleted file mode 100644 index bd72a41e7..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appLevel.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appLevel - - - -Levels for achievement - -## Usage - -```typescript -useAppLevelsQuery({ selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) -useAppLevelQuery({ id: '', selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) -useCreateAppLevelMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelMutation({}) -``` - -## Examples - -### List all appLevels - -```typescript -const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appLevel - -```typescript -const { mutate } = useCreateAppLevelMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', description: '', image: '', ownerId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md b/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md deleted file mode 100644 index 82fdcbb8a..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appLevelRequirement - - - -Requirements to achieve a level - -## Usage - -```typescript -useAppLevelRequirementsQuery({ selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) -useAppLevelRequirementQuery({ id: '', selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) -useCreateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelRequirementMutation({}) -``` - -## Examples - -### List all appLevelRequirements - -```typescript -const { data, isLoading } = useAppLevelRequirementsQuery({ - selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appLevelRequirement - -```typescript -const { mutate } = useCreateAppLevelRequirementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', level: '', description: '', requiredCount: '', priority: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLimit.md b/sdk/constructive-react/src/admin/hooks/skills/appLimit.md deleted file mode 100644 index ea8cb8cc6..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appLimit - - - -React Query hooks for AppLimit data operations - -## Usage - -```typescript -useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) -useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) -useCreateAppLimitMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitMutation({}) -``` - -## Examples - -### List all appLimits - -```typescript -const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, -}); -``` - -### Create a appLimit - -```typescript -const { mutate } = useCreateAppLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', num: '', max: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLimitDefault.md b/sdk/constructive-react/src/admin/hooks/skills/appLimitDefault.md deleted file mode 100644 index 9997fe7ae..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appLimitDefault - - - -React Query hooks for AppLimitDefault data operations - -## Usage - -```typescript -useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) -useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitDefaultMutation({}) -``` - -## Examples - -### List all appLimitDefaults - -```typescript -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); -``` - -### Create a appLimitDefault - -```typescript -const { mutate } = useCreateAppLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appMembership.md b/sdk/constructive-react/src/admin/hooks/skills/appMembership.md deleted file mode 100644 index ba73841d6..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appMembership - - - -React Query hooks for AppMembership data operations - -## Usage - -```typescript -useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } } }) -useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } } }) -useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) -useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) -useDeleteAppMembershipMutation({}) -``` - -## Examples - -### List all appMemberships - -```typescript -const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, -}); -``` - -### Create a appMembership - -```typescript -const { mutate } = useCreateAppMembershipMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appMembershipDefault.md b/sdk/constructive-react/src/admin/hooks/skills/appMembershipDefault.md deleted file mode 100644 index 7536d11fb..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appMembershipDefault - - - -React Query hooks for AppMembershipDefault data operations - -## Usage - -```typescript -useAppMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) -useAppMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) -useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppMembershipDefaultMutation({}) -``` - -## Examples - -### List all appMembershipDefaults - -```typescript -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); -``` - -### Create a appMembershipDefault - -```typescript -const { mutate } = useCreateAppMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appOwnerGrant.md b/sdk/constructive-react/src/admin/hooks/skills/appOwnerGrant.md deleted file mode 100644 index 3b6971d85..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appOwnerGrant - - - -React Query hooks for AppOwnerGrant data operations - -## Usage - -```typescript -useAppOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useAppOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppOwnerGrantMutation({}) -``` - -## Examples - -### List all appOwnerGrants - -```typescript -const { data, isLoading } = useAppOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appOwnerGrant - -```typescript -const { mutate } = useCreateAppOwnerGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermission.md b/sdk/constructive-react/src/admin/hooks/skills/appPermission.md deleted file mode 100644 index 1c7b49ffa..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appPermission - - - -React Query hooks for AppPermission data operations - -## Usage - -```typescript -useAppPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useAppPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useCreateAppPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionMutation({}) -``` - -## Examples - -### List all appPermissions - -```typescript -const { data, isLoading } = useAppPermissionsQuery({ - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); -``` - -### Create a appPermission - -```typescript -const { mutate } = useCreateAppPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', bitnum: '', bitstr: '', description: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionDefault.md b/sdk/constructive-react/src/admin/hooks/skills/appPermissionDefault.md deleted file mode 100644 index d0ab1ab74..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appPermissionDefault - - - -React Query hooks for AppPermissionDefault data operations - -## Usage - -```typescript -useAppPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true } } }) -useAppPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true } } }) -useCreateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionDefaultMutation({}) -``` - -## Examples - -### List all appPermissionDefaults - -```typescript -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, -}); -``` - -### Create a appPermissionDefault - -```typescript -const { mutate } = useCreateAppPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetByMask.md b/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetByMask.md deleted file mode 100644 index 567bab5a3..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useAppPermissionsGetByMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMask.md b/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMask.md deleted file mode 100644 index ec4bfe8b1..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-appPermissionsGetMask - - - -React Query query hook for appPermissionsGetMask - -## Usage - -```typescript -useAppPermissionsGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useAppPermissionsGetMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetMaskQuery({ ids: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMaskByNames.md deleted file mode 100644 index 9fbcc74d9..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-appPermissionsGetMaskByNames - - - -React Query query hook for appPermissionsGetMaskByNames - -## Usage - -```typescript -useAppPermissionsGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useAppPermissionsGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ names: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetPaddedMask.md deleted file mode 100644 index 73d5aa1d2..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-appPermissionsGetPaddedMask - - - -React Query query hook for appPermissionsGetPaddedMask - -## Usage - -```typescript -useAppPermissionsGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useAppPermissionsGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/appStep.md b/sdk/constructive-react/src/admin/hooks/skills/appStep.md deleted file mode 100644 index 9e8de0574..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/appStep.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appStep - - - -The user achieving a requirement for a level. Log table that has every single step ever taken. - -## Usage - -```typescript -useAppStepsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useAppStepQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useCreateAppStepMutation({ selection: { fields: { id: true } } }) -useUpdateAppStepMutation({ selection: { fields: { id: true } } }) -useDeleteAppStepMutation({}) -``` - -## Examples - -### List all appSteps - -```typescript -const { data, isLoading } = useAppStepsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appStep - -```typescript -const { mutate } = useCreateAppStepMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', name: '', count: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/claimedInvite.md b/sdk/constructive-react/src/admin/hooks/skills/claimedInvite.md deleted file mode 100644 index 262dff555..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/claimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-claimedInvite - - - -React Query hooks for ClaimedInvite data operations - -## Usage - -```typescript -useClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useCreateClaimedInviteMutation({ selection: { fields: { id: true } } }) -useUpdateClaimedInviteMutation({ selection: { fields: { id: true } } }) -useDeleteClaimedInviteMutation({}) -``` - -## Examples - -### List all claimedInvites - -```typescript -const { data, isLoading } = useClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a claimedInvite - -```typescript -const { mutate } = useCreateClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', senderId: '', receiverId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/invite.md b/sdk/constructive-react/src/admin/hooks/skills/invite.md deleted file mode 100644 index 3be140ad1..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-invite - - - -React Query hooks for Invite data operations - -## Usage - -```typescript -useInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useCreateInviteMutation({ selection: { fields: { id: true } } }) -useUpdateInviteMutation({ selection: { fields: { id: true } } }) -useDeleteInviteMutation({}) -``` - -## Examples - -### List all invites - -```typescript -const { data, isLoading } = useInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a invite - -```typescript -const { mutate } = useCreateInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/membershipType.md b/sdk/constructive-react/src/admin/hooks/skills/membershipType.md deleted file mode 100644 index 51dd3584b..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/membershipType.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-membershipType - - - -React Query hooks for MembershipType data operations - -## Usage - -```typescript -useMembershipTypesQuery({ selection: { fields: { id: true, name: true, description: true, prefix: true } } }) -useMembershipTypeQuery({ id: '', selection: { fields: { id: true, name: true, description: true, prefix: true } } }) -useCreateMembershipTypeMutation({ selection: { fields: { id: true } } }) -useUpdateMembershipTypeMutation({ selection: { fields: { id: true } } }) -useDeleteMembershipTypeMutation({}) -``` - -## Examples - -### List all membershipTypes - -```typescript -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true } }, -}); -``` - -### Create a membershipType - -```typescript -const { mutate } = useCreateMembershipTypeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', description: '', prefix: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgAdminGrant.md b/sdk/constructive-react/src/admin/hooks/skills/orgAdminGrant.md deleted file mode 100644 index aac7029bb..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgAdminGrant - - - -React Query hooks for OrgAdminGrant data operations - -## Usage - -```typescript -useOrgAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useOrgAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgAdminGrantMutation({}) -``` - -## Examples - -### List all orgAdminGrants - -```typescript -const { data, isLoading } = useOrgAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a orgAdminGrant - -```typescript -const { mutate } = useCreateOrgAdminGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgClaimedInvite.md b/sdk/constructive-react/src/admin/hooks/skills/orgClaimedInvite.md deleted file mode 100644 index cb033587c..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgClaimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgClaimedInvite - - - -React Query hooks for OrgClaimedInvite data operations - -## Usage - -```typescript -useOrgClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) -useOrgClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) -useCreateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) -useUpdateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) -useDeleteOrgClaimedInviteMutation({}) -``` - -## Examples - -### List all orgClaimedInvites - -```typescript -const { data, isLoading } = useOrgClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, -}); -``` - -### Create a orgClaimedInvite - -```typescript -const { mutate } = useCreateOrgClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', senderId: '', receiverId: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgGrant.md b/sdk/constructive-react/src/admin/hooks/skills/orgGrant.md deleted file mode 100644 index f70a2a0f2..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgGrant - - - -React Query hooks for OrgGrant data operations - -## Usage - -```typescript -useOrgGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useOrgGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateOrgGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgGrantMutation({}) -``` - -## Examples - -### List all orgGrants - -```typescript -const { data, isLoading } = useOrgGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a orgGrant - -```typescript -const { mutate } = useCreateOrgGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgInvite.md b/sdk/constructive-react/src/admin/hooks/skills/orgInvite.md deleted file mode 100644 index d4eefbee2..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgInvite - - - -React Query hooks for OrgInvite data operations - -## Usage - -```typescript -useOrgInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) -useOrgInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) -useCreateOrgInviteMutation({ selection: { fields: { id: true } } }) -useUpdateOrgInviteMutation({ selection: { fields: { id: true } } }) -useDeleteOrgInviteMutation({}) -``` - -## Examples - -### List all orgInvites - -```typescript -const { data, isLoading } = useOrgInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, -}); -``` - -### Create a orgInvite - -```typescript -const { mutate } = useCreateOrgInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgLimit.md b/sdk/constructive-react/src/admin/hooks/skills/orgLimit.md deleted file mode 100644 index 95dfb47a3..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgLimit - - - -React Query hooks for OrgLimit data operations - -## Usage - -```typescript -useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) -useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) -useCreateOrgLimitMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitMutation({}) -``` - -## Examples - -### List all orgLimits - -```typescript -const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, -}); -``` - -### Create a orgLimit - -```typescript -const { mutate } = useCreateOrgLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', num: '', max: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgLimitDefault.md b/sdk/constructive-react/src/admin/hooks/skills/orgLimitDefault.md deleted file mode 100644 index e2e1703ab..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgLimitDefault - - - -React Query hooks for OrgLimitDefault data operations - -## Usage - -```typescript -useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) -useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitDefaultMutation({}) -``` - -## Examples - -### List all orgLimitDefaults - -```typescript -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); -``` - -### Create a orgLimitDefault - -```typescript -const { mutate } = useCreateOrgLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgMember.md b/sdk/constructive-react/src/admin/hooks/skills/orgMember.md deleted file mode 100644 index a95727212..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgMember.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgMember - - - -React Query hooks for OrgMember data operations - -## Usage - -```typescript -useOrgMembersQuery({ selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) -useOrgMemberQuery({ id: '', selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) -useCreateOrgMemberMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMemberMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMemberMutation({}) -``` - -## Examples - -### List all orgMembers - -```typescript -const { data, isLoading } = useOrgMembersQuery({ - selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, -}); -``` - -### Create a orgMember - -```typescript -const { mutate } = useCreateOrgMemberMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isAdmin: '', actorId: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgMembership.md b/sdk/constructive-react/src/admin/hooks/skills/orgMembership.md deleted file mode 100644 index ded9a40c5..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgMembership - - - -React Query hooks for OrgMembership data operations - -## Usage - -```typescript -useOrgMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } } }) -useOrgMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } } }) -useCreateOrgMembershipMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMembershipMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMembershipMutation({}) -``` - -## Examples - -### List all orgMemberships - -```typescript -const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, -}); -``` - -### Create a orgMembership - -```typescript -const { mutate } = useCreateOrgMembershipMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgMembershipDefault.md b/sdk/constructive-react/src/admin/hooks/skills/orgMembershipDefault.md deleted file mode 100644 index 21bdb9eb7..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgMembershipDefault - - - -React Query hooks for OrgMembershipDefault data operations - -## Usage - -```typescript -useOrgMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } } }) -useOrgMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } } }) -useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMembershipDefaultMutation({}) -``` - -## Examples - -### List all orgMembershipDefaults - -```typescript -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, -}); -``` - -### Create a orgMembershipDefault - -```typescript -const { mutate } = useCreateOrgMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgOwnerGrant.md b/sdk/constructive-react/src/admin/hooks/skills/orgOwnerGrant.md deleted file mode 100644 index b26688557..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgOwnerGrant - - - -React Query hooks for OrgOwnerGrant data operations - -## Usage - -```typescript -useOrgOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useOrgOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgOwnerGrantMutation({}) -``` - -## Examples - -### List all orgOwnerGrants - -```typescript -const { data, isLoading } = useOrgOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a orgOwnerGrant - -```typescript -const { mutate } = useCreateOrgOwnerGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermission.md b/sdk/constructive-react/src/admin/hooks/skills/orgPermission.md deleted file mode 100644 index babce4b02..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgPermission - - - -React Query hooks for OrgPermission data operations - -## Usage - -```typescript -useOrgPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useOrgPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useCreateOrgPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionMutation({}) -``` - -## Examples - -### List all orgPermissions - -```typescript -const { data, isLoading } = useOrgPermissionsQuery({ - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); -``` - -### Create a orgPermission - -```typescript -const { mutate } = useCreateOrgPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', bitnum: '', bitstr: '', description: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionDefault.md b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionDefault.md deleted file mode 100644 index 31e59c0dc..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgPermissionDefault - - - -React Query hooks for OrgPermissionDefault data operations - -## Usage - -```typescript -useOrgPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true, entityId: true } } }) -useOrgPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true, entityId: true } } }) -useCreateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionDefaultMutation({}) -``` - -## Examples - -### List all orgPermissionDefaults - -```typescript -const { data, isLoading } = useOrgPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true, entityId: true } }, -}); -``` - -### Create a orgPermissionDefault - -```typescript -const { mutate } = useCreateOrgPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetByMask.md b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetByMask.md deleted file mode 100644 index d21ac66dd..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetByMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMask.md b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMask.md deleted file mode 100644 index cfa5b4302..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-orgPermissionsGetMask - - - -React Query query hook for orgPermissionsGetMask - -## Usage - -```typescript -useOrgPermissionsGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetMaskQuery({ ids: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMaskByNames.md deleted file mode 100644 index 7f0f4452d..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-orgPermissionsGetMaskByNames - - - -React Query query hook for orgPermissionsGetMaskByNames - -## Usage - -```typescript -useOrgPermissionsGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ names: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetPaddedMask.md deleted file mode 100644 index 9ff601b07..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-orgPermissionsGetPaddedMask - - - -React Query query hook for orgPermissionsGetPaddedMask - -## Usage - -```typescript -useOrgPermissionsGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/stepsAchieved.md b/sdk/constructive-react/src/admin/hooks/skills/stepsAchieved.md deleted file mode 100644 index c5e1f6bda..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/stepsAchieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-stepsAchieved - - - -React Query query hook for stepsAchieved - -## Usage - -```typescript -useStepsAchievedQuery({ vlevel: '', vroleId: '' }) -``` - -## Examples - -### Use useStepsAchievedQuery - -```typescript -const { data, isLoading } = useStepsAchievedQuery({ vlevel: '', vroleId: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/stepsRequired.md b/sdk/constructive-react/src/admin/hooks/skills/stepsRequired.md deleted file mode 100644 index 6862ec2dd..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/stepsRequired.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -useStepsRequiredQuery({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useStepsRequiredQuery - -```typescript -const { data, isLoading } = useStepsRequiredQuery({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/submitInviteCode.md b/sdk/constructive-react/src/admin/hooks/skills/submitInviteCode.md deleted file mode 100644 index 54388f821..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/submitInviteCode.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-submitInviteCode - - - -React Query mutation hook for submitInviteCode - -## Usage - -```typescript -const { mutate } = useSubmitInviteCodeMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSubmitInviteCodeMutation - -```typescript -const { mutate, isLoading } = useSubmitInviteCodeMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/admin/hooks/skills/submitOrgInviteCode.md b/sdk/constructive-react/src/admin/hooks/skills/submitOrgInviteCode.md deleted file mode 100644 index c61b24f83..000000000 --- a/sdk/constructive-react/src/admin/hooks/skills/submitOrgInviteCode.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-submitOrgInviteCode - - - -React Query mutation hook for submitOrgInviteCode - -## Usage - -```typescript -const { mutate } = useSubmitOrgInviteCodeMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSubmitOrgInviteCodeMutation - -```typescript -const { mutate, isLoading } = useSubmitOrgInviteCodeMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index a3154dc57..4269dd02c 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -21,6 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `orgGetManagersRecord` | findMany, findOne, create, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | | `appLevelRequirement` | findMany, findOne, create, update, delete | @@ -29,11 +31,12 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | @@ -43,15 +46,76 @@ const db = createClient({ | `orgLimit` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `appLevel` | findMany, findOne, create, update, delete | | `invite` | findMany, findOne, create, update, delete | +| `appLevel` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations +### `db.orgGetManagersRecord` + +CRUD operations for OrgGetManagersRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGetSubordinatesRecord` + +CRUD operations for OrgGetSubordinatesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.appPermission` CRUD operations for AppPermission records. @@ -315,136 +379,136 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.orgAdminGrant` -CRUD operations for AppLimitDefault records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.orgOwnerGrant` -CRUD operations for OrgLimitDefault records. +CRUD operations for OrgOwnerGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.appLimitDefault` -CRUD operations for OrgAdminGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.orgLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipType` @@ -479,6 +543,43 @@ const updated = await db.membershipType.update({ where: { id: '' }, data: const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` +### `db.orgChartEdgeGrant` + +CRUD operations for OrgChartEdgeGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appLimit` CRUD operations for AppLimit records. @@ -789,9 +890,9 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { per const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.orgChartEdge` -CRUD operations for OrgMembershipDefault records. +CRUD operations for OrgChartEdge records. **Fields:** @@ -800,65 +901,66 @@ CRUD operations for OrgMembershipDefault records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeGroups` | Boolean | Yes | -| `createGroupsCascadeMembers` | Boolean | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.appLevel` +### `db.orgMembershipDefault` -CRUD operations for AppLevel records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `image` | ConstructiveInternalTypeImage | Yes | -| `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeGroups` | Boolean | Yes | +| `createGroupsCascadeMembers` | Boolean | Yes | **Operations:** ```typescript -// List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.invite` @@ -901,6 +1003,41 @@ const updated = await db.invite.update({ where: { id: '' }, data: { email const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` +### `db.appLevel` + +CRUD operations for AppLevel records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `image` | ConstructiveInternalTypeImage | Yes | +| `ownerId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appLevel records +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +``` + ### `db.appMembership` CRUD operations for AppMembership records. @@ -924,18 +1061,19 @@ CRUD operations for AppMembership records. | `permissions` | BitString | Yes | | `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -967,18 +1105,19 @@ CRUD operations for OrgMembership records. | `granted` | BitString | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -1061,6 +1200,24 @@ orgPermissionsGetPaddedMask const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` +### `db.query.orgIsManagerOf` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` + ### `db.query.stepsAchieved` stepsAchieved diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts index 877700d3e..524d28db3 100644 --- a/sdk/constructive-react/src/admin/orm/index.ts +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -5,6 +5,8 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; +import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; import { AppLevelRequirementModel } from './models/appLevelRequirement'; @@ -13,11 +15,12 @@ import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppLimitModel } from './models/appLimit'; import { AppAchievementModel } from './models/appAchievement'; import { AppStepModel } from './models/appStep'; @@ -27,9 +30,10 @@ import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgLimitModel } from './models/orgLimit'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { AppLevelModel } from './models/appLevel'; import { InviteModel } from './models/invite'; +import { AppLevelModel } from './models/appLevel'; import { AppMembershipModel } from './models/appMembership'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgInviteModel } from './models/orgInvite'; @@ -68,6 +72,8 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + orgGetManagersRecord: new OrgGetManagersRecordModel(client), + orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), appLevelRequirement: new AppLevelRequirementModel(client), @@ -76,11 +82,12 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), orgAdminGrant: new OrgAdminGrantModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), membershipType: new MembershipTypeModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appLimit: new AppLimitModel(client), appAchievement: new AppAchievementModel(client), appStep: new AppStepModel(client), @@ -90,9 +97,10 @@ export function createClient(config: OrmClientConfig) { orgLimit: new OrgLimitModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - appLevel: new AppLevelModel(client), invite: new InviteModel(client), + appLevel: new AppLevelModel(client), appMembership: new AppMembershipModel(client), orgMembership: new OrgMembershipModel(client), orgInvite: new OrgInviteModel(client), diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index aca539f61..6bc1887db 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -227,254 +227,435 @@ export interface UUIDListFilter { export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; // ============ Entity Types ============ +export interface OrgGetManagersRecord { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecord { + userId?: string | null; + depth?: number | null; +} +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } -/** Requirements to achieve a level */ +/** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; + /** Name identifier of the requirement (matches step names) */ name?: string | null; + /** Name of the level this requirement belongs to */ level?: string | null; + /** Human-readable description of what this requirement entails */ description?: string | null; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number | null; + /** Display ordering priority; lower values appear first */ priority?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; + /** Whether this member has admin privileges */ isAdmin?: boolean | null; + /** References the user who is a member */ actorId?: string | null; + /** References the entity (org or group) this member belongs to */ entityId?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface AppPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; + /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } -export interface AppLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} +/** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; + /** Human-readable name of the membership type */ name?: string | null; + /** Description of what this membership type represents */ description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; } +/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ +export interface OrgChartEdgeGrant { + id: string; + /** Organization this grant applies to */ + entityId?: string | null; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string | null; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string | null; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string | null; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean | null; + /** Job title or role name being assigned in this grant */ + positionTitle?: string | null; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number | null; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; } -/** This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. */ +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ export interface AppAchievement { id: string; actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; + /** Cumulative count of completed steps toward this requirement */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } -/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { id: string; actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; + /** Number of units completed in this step action */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; entityId?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ entityId?: string | null; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean | null; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -/** Levels for achievement */ -export interface AppLevel { - id: string; - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { id: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Defines available levels that users can achieve by completing requirements */ +export interface AppLevel { + id: string; + /** Unique name of the level */ + name?: string | null; + /** Human-readable description of what this level represents */ + description?: string | null; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + profileId?: string | null; } +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; + profileId?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: string | null; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -493,6 +674,8 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface OrgGetManagersRecordRelations {} +export interface OrgGetSubordinatesRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} export interface AppLevelRequirementRelations {} @@ -501,11 +684,12 @@ export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface OrgAdminGrantRelations {} export interface OrgOwnerGrantRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface MembershipTypeRelations {} +export interface OrgChartEdgeGrantRelations {} export interface AppLimitRelations {} export interface AppAchievementRelations {} export interface AppStepRelations {} @@ -515,13 +699,18 @@ export interface AppMembershipDefaultRelations {} export interface OrgLimitRelations {} export interface OrgClaimedInviteRelations {} export interface OrgGrantRelations {} +export interface OrgChartEdgeRelations {} export interface OrgMembershipDefaultRelations {} -export interface AppLevelRelations {} export interface InviteRelations {} +export interface AppLevelRelations {} export interface AppMembershipRelations {} export interface OrgMembershipRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; @@ -532,11 +721,12 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppStepWithRelations = AppStep & AppStepRelations; @@ -547,14 +737,23 @@ export type AppMembershipDefaultWithRelations = AppMembershipDefault & export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type InviteWithRelations = Invite & InviteRelations; +export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ +export type OrgGetManagersRecordSelect = { + userId?: boolean; + depth?: boolean; +}; +export type OrgGetSubordinatesRecordSelect = { + userId?: boolean; + depth?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -610,16 +809,6 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -638,12 +827,33 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; }; +export type OrgChartEdgeGrantSelect = { + id?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + grantorId?: boolean; + isGrant?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + createdAt?: boolean; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -720,6 +930,16 @@ export type OrgGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; +}; export type OrgMembershipDefaultSelect = { id?: boolean; createdAt?: boolean; @@ -731,15 +951,6 @@ export type OrgMembershipDefaultSelect = { deleteMemberCascadeGroups?: boolean; createGroupsCascadeMembers?: boolean; }; -export type AppLevelSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - image?: boolean; - ownerId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type InviteSelect = { id?: boolean; email?: boolean; @@ -754,6 +965,15 @@ export type InviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLevelSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + image?: boolean; + ownerId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -770,6 +990,7 @@ export type AppMembershipSelect = { permissions?: boolean; granted?: boolean; actorId?: boolean; + profileId?: boolean; }; export type OrgMembershipSelect = { id?: boolean; @@ -787,6 +1008,7 @@ export type OrgMembershipSelect = { granted?: boolean; actorId?: boolean; entityId?: boolean; + profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -805,6 +1027,20 @@ export type OrgInviteSelect = { entityId?: boolean; }; // ============ Table Filter Types ============ +export interface OrgGetManagersRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetManagersRecordFilter[]; + or?: OrgGetManagersRecordFilter[]; + not?: OrgGetManagersRecordFilter; +} +export interface OrgGetSubordinatesRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetSubordinatesRecordFilter[]; + or?: OrgGetSubordinatesRecordFilter[]; + not?: OrgGetSubordinatesRecordFilter; +} export interface AppPermissionFilter { id?: UUIDFilter; name?: StringFilter; @@ -884,22 +1120,6 @@ export interface AppOwnerGrantFilter { or?: AppOwnerGrantFilter[]; not?: AppOwnerGrantFilter; } -export interface AppLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: AppLimitDefaultFilter[]; - or?: AppLimitDefaultFilter[]; - not?: AppLimitDefaultFilter; -} -export interface OrgLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: OrgLimitDefaultFilter[]; - or?: OrgLimitDefaultFilter[]; - not?: OrgLimitDefaultFilter; -} export interface OrgAdminGrantFilter { id?: UUIDFilter; isGrant?: BooleanFilter; @@ -924,6 +1144,22 @@ export interface OrgOwnerGrantFilter { or?: OrgOwnerGrantFilter[]; not?: OrgOwnerGrantFilter; } +export interface AppLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: AppLimitDefaultFilter[]; + or?: AppLimitDefaultFilter[]; + not?: AppLimitDefaultFilter; +} +export interface OrgLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: OrgLimitDefaultFilter[]; + or?: OrgLimitDefaultFilter[]; + not?: OrgLimitDefaultFilter; +} export interface MembershipTypeFilter { id?: IntFilter; name?: StringFilter; @@ -933,6 +1169,20 @@ export interface MembershipTypeFilter { or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; } +export interface OrgChartEdgeGrantFilter { + id?: UUIDFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + grantorId?: UUIDFilter; + isGrant?: BooleanFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + createdAt?: DatetimeFilter; + and?: OrgChartEdgeGrantFilter[]; + or?: OrgChartEdgeGrantFilter[]; + not?: OrgChartEdgeGrantFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -1036,6 +1286,19 @@ export interface OrgGrantFilter { or?: OrgGrantFilter[]; not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + and?: OrgChartEdgeFilter[]; + or?: OrgChartEdgeFilter[]; + not?: OrgChartEdgeFilter; +} export interface OrgMembershipDefaultFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -1050,18 +1313,6 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface AppLevelFilter { - id?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - image?: StringFilter; - ownerId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppLevelFilter[]; - or?: AppLevelFilter[]; - not?: AppLevelFilter; -} export interface InviteFilter { id?: UUIDFilter; email?: StringFilter; @@ -1079,6 +1330,18 @@ export interface InviteFilter { or?: InviteFilter[]; not?: InviteFilter; } +export interface AppLevelFilter { + id?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + image?: StringFilter; + ownerId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelFilter[]; + or?: AppLevelFilter[]; + not?: AppLevelFilter; +} export interface AppMembershipFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -1095,6 +1358,7 @@ export interface AppMembershipFilter { permissions?: BitStringFilter; granted?: BitStringFilter; actorId?: UUIDFilter; + profileId?: UUIDFilter; and?: AppMembershipFilter[]; or?: AppMembershipFilter[]; not?: AppMembershipFilter; @@ -1115,6 +1379,7 @@ export interface OrgMembershipFilter { granted?: BitStringFilter; actorId?: UUIDFilter; entityId?: UUIDFilter; + profileId?: UUIDFilter; and?: OrgMembershipFilter[]; or?: OrgMembershipFilter[]; not?: OrgMembershipFilter; @@ -1139,6 +1404,14 @@ export interface OrgInviteFilter { not?: OrgInviteFilter; } // ============ Table Condition Types ============ +export interface OrgGetManagersRecordCondition { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecordCondition { + userId?: string | null; + depth?: number | null; +} export interface AppPermissionCondition { id?: string | null; name?: string | null; @@ -1194,16 +1467,6 @@ export interface AppOwnerGrantCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface AppLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} export interface OrgAdminGrantCondition { id?: string | null; isGrant?: boolean | null; @@ -1222,12 +1485,33 @@ export interface OrgOwnerGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; +} +export interface OrgLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; +} export interface MembershipTypeCondition { id?: number | null; name?: string | null; description?: string | null; prefix?: string | null; } +export interface OrgChartEdgeGrantCondition { + id?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; + createdAt?: string | null; +} export interface AppLimitCondition { id?: string | null; name?: string | null; @@ -1304,6 +1588,16 @@ export interface OrgGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface OrgChartEdgeCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} export interface OrgMembershipDefaultCondition { id?: string | null; createdAt?: string | null; @@ -1315,15 +1609,6 @@ export interface OrgMembershipDefaultCondition { deleteMemberCascadeGroups?: boolean | null; createGroupsCascadeMembers?: boolean | null; } -export interface AppLevelCondition { - id?: string | null; - name?: string | null; - description?: string | null; - image?: unknown | null; - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface InviteCondition { id?: string | null; email?: unknown | null; @@ -1338,6 +1623,15 @@ export interface InviteCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppLevelCondition { + id?: string | null; + name?: string | null; + description?: string | null; + image?: unknown | null; + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface AppMembershipCondition { id?: string | null; createdAt?: string | null; @@ -1354,6 +1648,7 @@ export interface AppMembershipCondition { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface OrgMembershipCondition { id?: string | null; @@ -1371,6 +1666,7 @@ export interface OrgMembershipCondition { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface OrgInviteCondition { id?: string | null; @@ -1389,6 +1685,22 @@ export interface OrgInviteCondition { entityId?: string | null; } // ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; export type AppPermissionOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1499,27 +1811,7 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' @@ -1555,6 +1847,26 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type MembershipTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1567,6 +1879,28 @@ export type MembershipTypeOrderBy = | 'DESCRIPTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC'; +export type OrgChartEdgeGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppLimitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1719,6 +2053,26 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type OrgMembershipDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1741,24 +2095,6 @@ export type OrgMembershipDefaultOrderBy = | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type AppLevelOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type InviteOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1787,6 +2123,24 @@ export type InviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLevelOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1820,7 +2174,9 @@ export type AppMembershipOrderBy = | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1854,7 +2210,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgInviteOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1888,6 +2246,46 @@ export type OrgInviteOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateOrgGetManagersRecordInput { + clientMutationId?: string; + orgGetManagersRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetManagersRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; + orgGetManagersRecordPatch: OrgGetManagersRecordPatch; +} +export interface DeleteOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + orgGetSubordinatesRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetSubordinatesRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; + orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; +} +export interface DeleteOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -2066,46 +2464,6 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - appLimitDefault: { - name: string; - max?: number; - }; -} -export interface AppLimitDefaultPatch { - name?: string | null; - max?: number | null; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: number; - }; -} -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: number | null; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface DeleteOrgLimitDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgAdminGrantInput { clientMutationId?: string; orgAdminGrant: { @@ -2154,6 +2512,46 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + appLimitDefault: { + name: string; + max?: number; + }; +} +export interface AppLimitDefaultPatch { + name?: string | null; + max?: number | null; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + orgLimitDefault: { + name: string; + max?: number; + }; +} +export interface OrgLimitDefaultPatch { + name?: string | null; + max?: number | null; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateMembershipTypeInput { clientMutationId?: string; membershipType: { @@ -2176,6 +2574,36 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + orgChartEdgeGrant: { + entityId: string; + childId: string; + parentId?: string; + grantorId: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgeGrantPatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -2390,6 +2818,32 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; +} +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; orgMembershipDefault: { @@ -2418,30 +2872,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: { - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - }; -} -export interface AppLevelPatch { - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; -} -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - appLevelPatch: AppLevelPatch; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} export interface CreateInviteInput { clientMutationId?: string; invite: { @@ -2476,6 +2906,30 @@ export interface DeleteInviteInput { clientMutationId?: string; id: string; } +export interface CreateAppLevelInput { + clientMutationId?: string; + appLevel: { + name: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + }; +} +export interface AppLevelPatch { + name?: string | null; + description?: string | null; + image?: ConstructiveInternalTypeImage | null; + ownerId?: string | null; +} +export interface UpdateAppLevelInput { + clientMutationId?: string; + id: string; + appLevelPatch: AppLevelPatch; +} +export interface DeleteAppLevelInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -2491,6 +2945,7 @@ export interface CreateAppMembershipInput { permissions?: string; granted?: string; actorId: string; + profileId?: string; }; } export interface AppMembershipPatch { @@ -2506,6 +2961,7 @@ export interface AppMembershipPatch { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -2531,6 +2987,7 @@ export interface CreateOrgMembershipInput { granted?: string; actorId: string; entityId: string; + profileId?: string; }; } export interface OrgMembershipPatch { @@ -2546,6 +3003,7 @@ export interface OrgMembershipPatch { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -3039,184 +3497,184 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateOrgAdminGrantPayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type CreateOrgAdminGrantPayloadSelect = { +export type CreateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface UpdateOrgAdminGrantPayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type UpdateOrgAdminGrantPayloadSelect = { +export type UpdateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface DeleteOrgAdminGrantPayload { +export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type DeleteOrgAdminGrantPayloadSelect = { +export type DeleteAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface CreateOrgOwnerGrantPayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type CreateOrgOwnerGrantPayloadSelect = { +export type CreateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface UpdateOrgOwnerGrantPayload { +export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type UpdateOrgOwnerGrantPayloadSelect = { +export type UpdateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface DeleteOrgOwnerGrantPayload { +export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type DeleteOrgOwnerGrantPayloadSelect = { +export type DeleteOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; export interface CreateMembershipTypePayload { @@ -3264,6 +3722,51 @@ export type DeleteMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type CreateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type UpdateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type DeleteOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; export interface CreateAppLimitPayload { clientMutationId?: string | null; /** The `AppLimit` that was created by this mutation. */ @@ -3669,6 +4172,51 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type CreateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was created by this mutation. */ @@ -3714,51 +4262,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type CreateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type UpdateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type DeleteAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; export interface CreateInvitePayload { clientMutationId?: string | null; /** The `Invite` that was created by this mutation. */ @@ -3804,6 +4307,51 @@ export type DeleteInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type CreateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type UpdateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type DeleteAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ @@ -4052,30 +4600,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -4100,6 +4624,30 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +export type AppLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitDefaultSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; + }; +}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -4112,6 +4660,18 @@ export type MembershipTypeEdgeSelect = { select: MembershipTypeSelect; }; }; +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +export type OrgChartEdgeGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeGrantSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -4220,28 +4780,28 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: OrgChartEdgeSelect; }; }; -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type AppLevelEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppLevelSelect; + select: OrgMembershipDefaultSelect; }; }; /** A `Invite` edge in the connection. */ @@ -4256,6 +4816,18 @@ export type InviteEdgeSelect = { select: InviteSelect; }; }; +/** A `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} +export type AppLevelEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelSelect; + }; +}; /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/orm/models/index.ts b/sdk/constructive-react/src/admin/orm/models/index.ts index 635d44b66..f20a6d0a4 100644 --- a/sdk/constructive-react/src/admin/orm/models/index.ts +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; +export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; export { AppLevelRequirementModel } from './appLevelRequirement'; @@ -11,11 +13,12 @@ export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgAdminGrantModel } from './orgAdminGrant'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppLimitModel } from './appLimit'; export { AppAchievementModel } from './appAchievement'; export { AppStepModel } from './appStep'; @@ -25,9 +28,10 @@ export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgLimitModel } from './orgLimit'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { AppLevelModel } from './appLevel'; export { InviteModel } from './invite'; +export { AppLevelModel } from './appLevel'; export { AppMembershipModel } from './appMembership'; export { OrgMembershipModel } from './orgMembership'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-react/src/admin/orm/models/orgChartEdge.ts b/sdk/constructive-react/src/admin/orm/models/orgChartEdge.ts new file mode 100644 index 000000000..3ff845429 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgChartEdge.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdge model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgChartEdge, + OrgChartEdgeWithRelations, + OrgChartEdgeSelect, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, + CreateOrgChartEdgeInput, + UpdateOrgChartEdgeInput, + OrgChartEdgePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdges: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdges: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdge: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdge', + document, + variables, + transform: (data: { + orgChartEdges?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdge', + 'createOrgChartEdge', + 'orgChartEdge', + args.select, + args.data, + 'CreateOrgChartEdgeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'createOrgChartEdge', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdge', + 'updateOrgChartEdge', + 'orgChartEdge', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeInput', + 'id', + 'orgChartEdgePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'updateOrgChartEdge', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdge', + 'deleteOrgChartEdge', + 'orgChartEdge', + args.where.id, + 'DeleteOrgChartEdgeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'deleteOrgChartEdge', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgChartEdgeGrant.ts new file mode 100644 index 000000000..40dba3391 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgChartEdgeGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdgeGrant model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgChartEdgeGrant, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, + CreateOrgChartEdgeGrantInput, + UpdateOrgChartEdgeGrantInput, + OrgChartEdgeGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrant', + document, + variables, + transform: (data: { + orgChartEdgeGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdgeGrant', + 'createOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.data, + 'CreateOrgChartEdgeGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'createOrgChartEdgeGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgeGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdgeGrant', + 'updateOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeGrantInput', + 'id', + 'orgChartEdgeGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'updateOrgChartEdgeGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdgeGrant', + 'deleteOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.where.id, + 'DeleteOrgChartEdgeGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'deleteOrgChartEdgeGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts new file mode 100644 index 000000000..9a0cefa8a --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts @@ -0,0 +1,127 @@ +/** + * OrgGetManagersRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgGetManagersRecord, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, + CreateOrgGetManagersRecordInput, + UpdateOrgGetManagersRecordInput, + OrgGetManagersRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetManagersRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgGetManagersRecordFilter', + 'OrgGetManagersRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + }, + 'OrgGetManagersRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetManagersRecord', + 'createOrgGetManagersRecord', + 'orgGetManagersRecord', + args.select, + args.data, + 'CreateOrgGetManagersRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetManagersRecord', + fieldName: 'createOrgGetManagersRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts new file mode 100644 index 000000000..5eeec50ca --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -0,0 +1,129 @@ +/** + * OrgGetSubordinatesRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgGetSubordinatesRecord, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, + CreateOrgGetSubordinatesRecordInput, + UpdateOrgGetSubordinatesRecordInput, + OrgGetSubordinatesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetSubordinatesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgGetSubordinatesRecordFilter', + 'OrgGetSubordinatesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + }, + 'OrgGetSubordinatesRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetSubordinatesRecord', + 'createOrgGetSubordinatesRecord', + 'orgGetSubordinatesRecord', + args.select, + args.data, + 'CreateOrgGetSubordinatesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'createOrgGetSubordinatesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/query/index.ts b/sdk/constructive-react/src/admin/orm/query/index.ts index 58c216770..db637075c 100644 --- a/sdk/constructive-react/src/admin/orm/query/index.ts +++ b/sdk/constructive-react/src/admin/orm/query/index.ts @@ -18,6 +18,12 @@ export interface AppPermissionsGetPaddedMaskVariables { export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } +export interface OrgIsManagerOfVariables { + pEntityId?: string; + pManagerId?: string; + pUserId?: string; + pMaxDepth?: number; +} export interface StepsAchievedVariables { vlevel?: string; vroleId?: string; @@ -131,6 +137,47 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + orgIsManagerOf: ( + args: OrgIsManagerOfVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgIsManagerOf: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'OrgIsManagerOf', + fieldName: 'orgIsManagerOf', + ...buildCustomDocument( + 'query', + 'OrgIsManagerOf', + 'orgIsManagerOf', + options?.select, + args, + [ + { + name: 'pEntityId', + type: 'UUID', + }, + { + name: 'pManagerId', + type: 'UUID', + }, + { + name: 'pUserId', + type: 'UUID', + }, + { + name: 'pMaxDepth', + type: 'Int', + }, + ], + connectionFieldsMap, + undefined + ), + }), stepsAchieved: ( args: StepsAchievedVariables, options?: { diff --git a/sdk/constructive-react/src/admin/orm/skills/appAchievement.md b/sdk/constructive-react/src/admin/orm/skills/appAchievement.md deleted file mode 100644 index 92ab466a3..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appAchievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAchievement - - - -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. - -## Usage - -```typescript -db.appAchievement.findMany({ select: { id: true } }).execute() -db.appAchievement.findOne({ id: '', select: { id: true } }).execute() -db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appAchievement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAchievement records - -```typescript -const items = await db.appAchievement.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appAchievement - -```typescript -const item = await db.appAchievement.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appAdminGrant.md b/sdk/constructive-react/src/admin/orm/skills/appAdminGrant.md deleted file mode 100644 index 6b585abee..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAdminGrant - - - -ORM operations for AppAdminGrant records - -## Usage - -```typescript -db.appAdminGrant.findMany({ select: { id: true } }).execute() -db.appAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAdminGrant records - -```typescript -const items = await db.appAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appAdminGrant - -```typescript -const item = await db.appAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appGrant.md b/sdk/constructive-react/src/admin/orm/skills/appGrant.md deleted file mode 100644 index 017771262..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appGrant - - - -ORM operations for AppGrant records - -## Usage - -```typescript -db.appGrant.findMany({ select: { id: true } }).execute() -db.appGrant.findOne({ id: '', select: { id: true } }).execute() -db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appGrant records - -```typescript -const items = await db.appGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appGrant - -```typescript -const item = await db.appGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appLevel.md b/sdk/constructive-react/src/admin/orm/skills/appLevel.md deleted file mode 100644 index 3677ecc37..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appLevel.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevel - - - -Levels for achievement - -## Usage - -```typescript -db.appLevel.findMany({ select: { id: true } }).execute() -db.appLevel.findOne({ id: '', select: { id: true } }).execute() -db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() -db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevel.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevel records - -```typescript -const items = await db.appLevel.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevel - -```typescript -const item = await db.appLevel.create({ - data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md b/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md deleted file mode 100644 index 28df77ff5..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevelRequirement - - - -Requirements to achieve a level - -## Usage - -```typescript -db.appLevelRequirement.findMany({ select: { id: true } }).execute() -db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() -db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() -db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevelRequirement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelRequirement records - -```typescript -const items = await db.appLevelRequirement.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevelRequirement - -```typescript -const item = await db.appLevelRequirement.create({ - data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appLimit.md b/sdk/constructive-react/src/admin/orm/skills/appLimit.md deleted file mode 100644 index 50fa2b37f..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimit - - - -ORM operations for AppLimit records - -## Usage - -```typescript -db.appLimit.findMany({ select: { id: true } }).execute() -db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() -db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimit records - -```typescript -const items = await db.appLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimit - -```typescript -const item = await db.appLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appLimitDefault.md b/sdk/constructive-react/src/admin/orm/skills/appLimitDefault.md deleted file mode 100644 index eb070a028..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimitDefault - - - -ORM operations for AppLimitDefault records - -## Usage - -```typescript -db.appLimitDefault.findMany({ select: { id: true } }).execute() -db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitDefault records - -```typescript -const items = await db.appLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitDefault - -```typescript -const item = await db.appLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appMembership.md b/sdk/constructive-react/src/admin/orm/skills/appMembership.md deleted file mode 100644 index 07e8f9763..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembership - - - -ORM operations for AppMembership records - -## Usage - -```typescript -db.appMembership.findMany({ select: { id: true } }).execute() -db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() -db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembership records - -```typescript -const items = await db.appMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembership - -```typescript -const item = await db.appMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appMembershipDefault.md b/sdk/constructive-react/src/admin/orm/skills/appMembershipDefault.md deleted file mode 100644 index 82c322958..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembershipDefault - - - -ORM operations for AppMembershipDefault records - -## Usage - -```typescript -db.appMembershipDefault.findMany({ select: { id: true } }).execute() -db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() -db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembershipDefault records - -```typescript -const items = await db.appMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembershipDefault - -```typescript -const item = await db.appMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appOwnerGrant.md b/sdk/constructive-react/src/admin/orm/skills/appOwnerGrant.md deleted file mode 100644 index 89c574dd7..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appOwnerGrant - - - -ORM operations for AppOwnerGrant records - -## Usage - -```typescript -db.appOwnerGrant.findMany({ select: { id: true } }).execute() -db.appOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appOwnerGrant records - -```typescript -const items = await db.appOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appOwnerGrant - -```typescript -const item = await db.appOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermission.md b/sdk/constructive-react/src/admin/orm/skills/appPermission.md deleted file mode 100644 index a497f7b8a..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermission - - - -ORM operations for AppPermission records - -## Usage - -```typescript -db.appPermission.findMany({ select: { id: true } }).execute() -db.appPermission.findOne({ id: '', select: { id: true } }).execute() -db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermission records - -```typescript -const items = await db.appPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appPermission - -```typescript -const item = await db.appPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionDefault.md b/sdk/constructive-react/src/admin/orm/skills/appPermissionDefault.md deleted file mode 100644 index ef8289183..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermissionDefault - - - -ORM operations for AppPermissionDefault records - -## Usage - -```typescript -db.appPermissionDefault.findMany({ select: { id: true } }).execute() -db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefault records - -```typescript -const items = await db.appPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appPermissionDefault - -```typescript -const item = await db.appPermissionDefault.create({ - data: { permissions: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetByMask.md b/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetByMask.md deleted file mode 100644 index 369df9f26..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetByMask - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMask.md b/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMask.md deleted file mode 100644 index ceca5548f..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```typescript -db.query.appPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMask - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMaskByNames.md deleted file mode 100644 index c3f40dddc..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.appPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetPaddedMask.md deleted file mode 100644 index accce0eed..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/appStep.md b/sdk/constructive-react/src/admin/orm/skills/appStep.md deleted file mode 100644 index 3c349de1f..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/appStep.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appStep - - - -The user achieving a requirement for a level. Log table that has every single step ever taken. - -## Usage - -```typescript -db.appStep.findMany({ select: { id: true } }).execute() -db.appStep.findOne({ id: '', select: { id: true } }).execute() -db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appStep.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appStep records - -```typescript -const items = await db.appStep.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appStep - -```typescript -const item = await db.appStep.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/claimedInvite.md b/sdk/constructive-react/src/admin/orm/skills/claimedInvite.md deleted file mode 100644 index 3d5de6b3b..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/claimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-claimedInvite - - - -ORM operations for ClaimedInvite records - -## Usage - -```typescript -db.claimedInvite.findMany({ select: { id: true } }).execute() -db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() -db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.claimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all claimedInvite records - -```typescript -const items = await db.claimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a claimedInvite - -```typescript -const item = await db.claimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/invite.md b/sdk/constructive-react/src/admin/orm/skills/invite.md deleted file mode 100644 index 727a2107e..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-invite - - - -ORM operations for Invite records - -## Usage - -```typescript -db.invite.findMany({ select: { id: true } }).execute() -db.invite.findOne({ id: '', select: { id: true } }).execute() -db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() -db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.invite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invite records - -```typescript -const items = await db.invite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a invite - -```typescript -const item = await db.invite.create({ - data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/membershipType.md b/sdk/constructive-react/src/admin/orm/skills/membershipType.md deleted file mode 100644 index 898d85107..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/membershipType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipType - - - -ORM operations for MembershipType records - -## Usage - -```typescript -db.membershipType.findMany({ select: { id: true } }).execute() -db.membershipType.findOne({ id: '', select: { id: true } }).execute() -db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() -db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.membershipType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipType records - -```typescript -const items = await db.membershipType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a membershipType - -```typescript -const item = await db.membershipType.create({ - data: { name: 'value', description: 'value', prefix: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgAdminGrant.md b/sdk/constructive-react/src/admin/orm/skills/orgAdminGrant.md deleted file mode 100644 index 675b76741..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgAdminGrant - - - -ORM operations for OrgAdminGrant records - -## Usage - -```typescript -db.orgAdminGrant.findMany({ select: { id: true } }).execute() -db.orgAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgAdminGrant records - -```typescript -const items = await db.orgAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgAdminGrant - -```typescript -const item = await db.orgAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgClaimedInvite.md b/sdk/constructive-react/src/admin/orm/skills/orgClaimedInvite.md deleted file mode 100644 index 5693e2856..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgClaimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgClaimedInvite - - - -ORM operations for OrgClaimedInvite records - -## Usage - -```typescript -db.orgClaimedInvite.findMany({ select: { id: true } }).execute() -db.orgClaimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgClaimedInvite records - -```typescript -const items = await db.orgClaimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a orgClaimedInvite - -```typescript -const item = await db.orgClaimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgGrant.md b/sdk/constructive-react/src/admin/orm/skills/orgGrant.md deleted file mode 100644 index ac4c4b896..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgGrant - - - -ORM operations for OrgGrant records - -## Usage - -```typescript -db.orgGrant.findMany({ select: { id: true } }).execute() -db.orgGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgGrant records - -```typescript -const items = await db.orgGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgGrant - -```typescript -const item = await db.orgGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgInvite.md b/sdk/constructive-react/src/admin/orm/skills/orgInvite.md deleted file mode 100644 index ea7ff346d..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgInvite - - - -ORM operations for OrgInvite records - -## Usage - -```typescript -db.orgInvite.findMany({ select: { id: true } }).execute() -db.orgInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() -db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.orgInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgInvite records - -```typescript -const items = await db.orgInvite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a orgInvite - -```typescript -const item = await db.orgInvite.create({ - data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgLimit.md b/sdk/constructive-react/src/admin/orm/skills/orgLimit.md deleted file mode 100644 index 19681fddf..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimit - - - -ORM operations for OrgLimit records - -## Usage - -```typescript -db.orgLimit.findMany({ select: { id: true } }).execute() -db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() -db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimit records - -```typescript -const items = await db.orgLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimit - -```typescript -const item = await db.orgLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgLimitDefault.md b/sdk/constructive-react/src/admin/orm/skills/orgLimitDefault.md deleted file mode 100644 index 4a4e505bd..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimitDefault - - - -ORM operations for OrgLimitDefault records - -## Usage - -```typescript -db.orgLimitDefault.findMany({ select: { id: true } }).execute() -db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitDefault records - -```typescript -const items = await db.orgLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitDefault - -```typescript -const item = await db.orgLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgMember.md b/sdk/constructive-react/src/admin/orm/skills/orgMember.md deleted file mode 100644 index 2aadbafd3..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgMember.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMember - - - -ORM operations for OrgMember records - -## Usage - -```typescript -db.orgMember.findMany({ select: { id: true } }).execute() -db.orgMember.findOne({ id: '', select: { id: true } }).execute() -db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() -db.orgMember.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMember records - -```typescript -const items = await db.orgMember.findMany({ - select: { id: true, isAdmin: true } -}).execute(); -``` - -### Create a orgMember - -```typescript -const item = await db.orgMember.create({ - data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgMembership.md b/sdk/constructive-react/src/admin/orm/skills/orgMembership.md deleted file mode 100644 index b98b850b2..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembership - - - -ORM operations for OrgMembership records - -## Usage - -```typescript -db.orgMembership.findMany({ select: { id: true } }).execute() -db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembership records - -```typescript -const items = await db.orgMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembership - -```typescript -const item = await db.orgMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgMembershipDefault.md b/sdk/constructive-react/src/admin/orm/skills/orgMembershipDefault.md deleted file mode 100644 index cd8146f14..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembershipDefault - - - -ORM operations for OrgMembershipDefault records - -## Usage - -```typescript -db.orgMembershipDefault.findMany({ select: { id: true } }).execute() -db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembershipDefault records - -```typescript -const items = await db.orgMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembershipDefault - -```typescript -const item = await db.orgMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgOwnerGrant.md b/sdk/constructive-react/src/admin/orm/skills/orgOwnerGrant.md deleted file mode 100644 index 8a490261b..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgOwnerGrant - - - -ORM operations for OrgOwnerGrant records - -## Usage - -```typescript -db.orgOwnerGrant.findMany({ select: { id: true } }).execute() -db.orgOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgOwnerGrant records - -```typescript -const items = await db.orgOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgOwnerGrant - -```typescript -const item = await db.orgOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermission.md b/sdk/constructive-react/src/admin/orm/skills/orgPermission.md deleted file mode 100644 index 1f18add5d..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermission - - - -ORM operations for OrgPermission records - -## Usage - -```typescript -db.orgPermission.findMany({ select: { id: true } }).execute() -db.orgPermission.findOne({ id: '', select: { id: true } }).execute() -db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermission records - -```typescript -const items = await db.orgPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgPermission - -```typescript -const item = await db.orgPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionDefault.md b/sdk/constructive-react/src/admin/orm/skills/orgPermissionDefault.md deleted file mode 100644 index 8d8e20afc..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermissionDefault - - - -ORM operations for OrgPermissionDefault records - -## Usage - -```typescript -db.orgPermissionDefault.findMany({ select: { id: true } }).execute() -db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefault records - -```typescript -const items = await db.orgPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgPermissionDefault - -```typescript -const item = await db.orgPermissionDefault.create({ - data: { permissions: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetByMask.md b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetByMask.md deleted file mode 100644 index 437f5c98b..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetByMask - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMask.md b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMask.md deleted file mode 100644 index c626883ad..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```typescript -db.query.orgPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMask - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMaskByNames.md deleted file mode 100644 index f67397dcc..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetPaddedMask.md deleted file mode 100644 index a67198a29..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/stepsAchieved.md b/sdk/constructive-react/src/admin/orm/skills/stepsAchieved.md deleted file mode 100644 index bce806fd4..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/stepsAchieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```typescript -db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() -``` - -## Examples - -### Run stepsAchieved - -```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/stepsRequired.md b/sdk/constructive-react/src/admin/orm/skills/stepsRequired.md deleted file mode 100644 index 8ea0ad638..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/stepsRequired.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run stepsRequired - -```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/submitInviteCode.md b/sdk/constructive-react/src/admin/orm/skills/submitInviteCode.md deleted file mode 100644 index ae946fe75..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/submitInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```typescript -db.mutation.submitInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitInviteCode - -```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/orm/skills/submitOrgInviteCode.md b/sdk/constructive-react/src/admin/orm/skills/submitOrgInviteCode.md deleted file mode 100644 index 0ceff0ee1..000000000 --- a/sdk/constructive-react/src/admin/orm/skills/submitOrgInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitOrgInviteCode - - - -Execute the submitOrgInviteCode mutation - -## Usage - -```typescript -db.mutation.submitOrgInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitOrgInviteCode - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index 5ca2fa393..305e16a35 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -22,7 +22,11 @@ import type { Invite, MembershipType, OrgAdminGrant, + OrgChartEdge, + OrgChartEdgeGrant, OrgClaimedInvite, + OrgGetManagersRecord, + OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgLimit, @@ -105,24 +109,6 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLimitDefault`. */ -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; /** Methods to use when ordering `OrgAdminGrant`. */ export type OrgAdminGrantOrderBy = | 'NATURAL' @@ -153,6 +139,24 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppLimitDefault`. */ +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +/** Methods to use when ordering `OrgLimitDefault`. */ +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; /** Methods to use when ordering `MembershipType`. */ export type MembershipTypeOrderBy = | 'NATURAL' @@ -162,6 +166,21 @@ export type MembershipTypeOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; +/** Methods to use when ordering `OrgChartEdgeGrant`. */ +export type OrgChartEdgeGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC'; /** Methods to use when ordering `AppPermission`. */ export type AppPermissionOrderBy = | 'NATURAL' @@ -311,6 +330,23 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgChartEdge`. */ +export type OrgChartEdgeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC'; /** Methods to use when ordering `OrgMembershipDefault`. */ export type OrgMembershipDefaultOrderBy = | 'NATURAL' @@ -345,19 +381,6 @@ export type AppLevelRequirementOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLevel`. */ -export type AppLevelOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `Invite`. */ export type InviteOrderBy = | 'NATURAL' @@ -379,6 +402,19 @@ export type InviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppLevel`. */ +export type AppLevelOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppMembership`. */ export type AppMembershipOrderBy = | 'NATURAL' @@ -399,7 +435,9 @@ export type AppMembershipOrderBy = | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `OrgMembership`. */ export type OrgMembershipOrderBy = | 'NATURAL' @@ -422,7 +460,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `OrgInvite`. */ export type OrgInviteOrderBy = | 'NATURAL' @@ -605,60 +645,6 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -/** - * A condition to be used against `AppLimitDefault` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface AppLimitDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `max` field. */ - max?: number; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; -} -/** - * A condition to be used against `OrgLimitDefault` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface OrgLimitDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `max` field. */ - max?: number; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; -} /** * A condition to be used against `OrgAdminGrant` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -745,6 +731,60 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } +/** + * A condition to be used against `AppLimitDefault` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppLimitDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `max` field. */ + max?: number; +} +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; +} +/** + * A condition to be used against `OrgLimitDefault` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgLimitDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `max` field. */ + max?: number; +} +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; +} /** * A condition to be used against `MembershipType` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -776,6 +816,57 @@ export interface MembershipTypeFilter { /** Negates the expression. */ not?: MembershipTypeFilter; } +/** + * A condition to be used against `OrgChartEdgeGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgChartEdgeGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `childId` field. */ + childId?: string; + /** Checks for equality with the object’s `parentId` field. */ + parentId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `positionTitle` field. */ + positionTitle?: string; + /** Checks for equality with the object’s `positionLevel` field. */ + positionLevel?: number; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeGrantFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeGrantFilter; +} /** * A condition to be used against `AppPermission` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -1206,6 +1297,53 @@ export interface OrgGrantFilter { /** Negates the expression. */ not?: OrgGrantFilter; } +/** + * A condition to be used against `OrgChartEdge` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgChartEdgeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `childId` field. */ + childId?: string; + /** Checks for equality with the object’s `parentId` field. */ + parentId?: string; + /** Checks for equality with the object’s `positionTitle` field. */ + positionTitle?: string; + /** Checks for equality with the object’s `positionLevel` field. */ + positionLevel?: number; +} +/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeFilter; +} /** * A condition to be used against `OrgMembershipDefault` object types. All fields * are tested for equality and combined with a logical ‘and.’ @@ -1304,86 +1442,8 @@ export interface AppLevelRequirementFilter { /** Negates the expression. */ not?: AppLevelRequirementFilter; } -/** - * A condition to be used against `AppLevel` object types. All fields are tested - * for equality and combined with a logical ‘and.’ - */ -export interface AppLevelCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `description` field. */ - description?: string; - /** Checks for equality with the object’s `image` field. */ - image?: ConstructiveInternalTypeImage; - /** Checks for equality with the object’s `ownerId` field. */ - ownerId?: string; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLevelFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `image` field. */ - image?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLevelFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLevelFilter[]; - /** Negates the expression. */ - not?: AppLevelFilter; -} -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A condition to be used against `Invite` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface InviteCondition { +/** A condition to be used against `Invite` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface InviteCondition { /** Checks for equality with the object’s `id` field. */ id?: string; /** Checks for equality with the object’s `email` field. */ @@ -1517,6 +1577,84 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } +/** + * A condition to be used against `AppLevel` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface AppLevelCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `image` field. */ + image?: ConstructiveInternalTypeImage; + /** Checks for equality with the object’s `ownerId` field. */ + ownerId?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; +} +/** A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLevelFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `image` field. */ + image?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLevelFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLevelFilter[]; + /** Negates the expression. */ + not?: AppLevelFilter; +} +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} /** * A condition to be used against `AppMembership` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -1552,6 +1690,8 @@ export interface AppMembershipCondition { granted?: string; /** Checks for equality with the object’s `actorId` field. */ actorId?: string; + /** Checks for equality with the object’s `profileId` field. */ + profileId?: string; } /** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ export interface AppMembershipFilter { @@ -1585,6 +1725,8 @@ export interface AppMembershipFilter { granted?: BitStringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ @@ -1627,6 +1769,8 @@ export interface OrgMembershipCondition { actorId?: string; /** Checks for equality with the object’s `entityId` field. */ entityId?: string; + /** Checks for equality with the object’s `profileId` field. */ + profileId?: string; } /** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMembershipFilter { @@ -1660,6 +1804,8 @@ export interface OrgMembershipFilter { actorId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipFilter[]; /** Checks for any expressions in this list. */ @@ -1752,8 +1898,11 @@ export interface CreateOrgMemberInput { /** An input for mutations affecting `OrgMember` */ export interface OrgMemberInput { id?: string; + /** Whether this member has admin privileges */ isAdmin?: boolean; + /** References the user who is a member */ actorId: string; + /** References the entity (org or group) this member belongs to */ entityId: string; } export interface CreateAppPermissionDefaultInput { @@ -1764,6 +1913,7 @@ export interface CreateAppPermissionDefaultInput { /** An input for mutations affecting `AppPermissionDefault` */ export interface AppPermissionDefaultInput { id?: string; + /** Default permission bitmask applied to new members */ permissions?: string; } export interface CreateOrgPermissionDefaultInput { @@ -1774,7 +1924,9 @@ export interface CreateOrgPermissionDefaultInput { /** An input for mutations affecting `OrgPermissionDefault` */ export interface OrgPermissionDefaultInput { id?: string; + /** Default permission bitmask applied to new members */ permissions?: string; + /** References the entity these default permissions apply to */ entityId: string; } export interface CreateAppAdminGrantInput { @@ -1785,7 +1937,9 @@ export interface CreateAppAdminGrantInput { /** An input for mutations affecting `AppAdminGrant` */ export interface AppAdminGrantInput { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId: string; grantorId?: string; createdAt?: string; @@ -1799,34 +1953,14 @@ export interface CreateAppOwnerGrantInput { /** An input for mutations affecting `AppOwnerGrant` */ export interface AppOwnerGrantInput { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - /** The `AppLimitDefault` to be created by this mutation. */ - appLimitDefault: AppLimitDefaultInput; -} -/** An input for mutations affecting `AppLimitDefault` */ -export interface AppLimitDefaultInput { - id?: string; - name: string; - max?: number; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - /** The `OrgLimitDefault` to be created by this mutation. */ - orgLimitDefault: OrgLimitDefaultInput; -} -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { - id?: string; - name: string; - max?: number; -} export interface CreateOrgAdminGrantInput { clientMutationId?: string; /** The `OrgAdminGrant` to be created by this mutation. */ @@ -1835,8 +1969,11 @@ export interface CreateOrgAdminGrantInput { /** An input for mutations affecting `OrgAdminGrant` */ export interface OrgAdminGrantInput { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId: string; + /** The entity (org or group) this admin grant applies to */ entityId: string; grantorId?: string; createdAt?: string; @@ -1850,13 +1987,42 @@ export interface CreateOrgOwnerGrantInput { /** An input for mutations affecting `OrgOwnerGrant` */ export interface OrgOwnerGrantInput { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId: string; + /** The entity (org or group) this ownership grant applies to */ entityId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + /** The `AppLimitDefault` to be created by this mutation. */ + appLimitDefault: AppLimitDefaultInput; +} +/** An input for mutations affecting `AppLimitDefault` */ +export interface AppLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + /** The `OrgLimitDefault` to be created by this mutation. */ + orgLimitDefault: OrgLimitDefaultInput; +} +/** An input for mutations affecting `OrgLimitDefault` */ +export interface OrgLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} export interface CreateMembershipTypeInput { clientMutationId?: string; /** The `MembershipType` to be created by this mutation. */ @@ -1864,11 +2030,40 @@ export interface CreateMembershipTypeInput { } /** An input for mutations affecting `MembershipType` */ export interface MembershipTypeInput { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; + /** Human-readable name of the membership type */ name: string; + /** Description of what this membership type represents */ description: string; + /** Short prefix used to namespace tables and functions for this membership scope */ prefix: string; } +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + /** The `OrgChartEdgeGrant` to be created by this mutation. */ + orgChartEdgeGrant: OrgChartEdgeGrantInput; +} +/** An input for mutations affecting `OrgChartEdgeGrant` */ +export interface OrgChartEdgeGrantInput { + id?: string; + /** Organization this grant applies to */ + entityId: string; + /** User ID of the subordinate being placed in the hierarchy */ + childId: string; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string; + /** User ID of the admin who performed this grant or revocation */ + grantorId: string; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean; + /** Job title or role name being assigned in this grant */ + positionTitle?: string; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} export interface CreateAppPermissionInput { clientMutationId?: string; /** The `AppPermission` to be created by this mutation. */ @@ -1877,9 +2072,13 @@ export interface CreateAppPermissionInput { /** An input for mutations affecting `AppPermission` */ export interface AppPermissionInput { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface CreateOrgPermissionInput { @@ -1890,9 +2089,13 @@ export interface CreateOrgPermissionInput { /** An input for mutations affecting `OrgPermission` */ export interface OrgPermissionInput { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface CreateAppLimitInput { @@ -1903,9 +2106,13 @@ export interface CreateAppLimitInput { /** An input for mutations affecting `AppLimit` */ export interface AppLimitInput { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; } export interface CreateAppAchievementInput { @@ -1917,7 +2124,9 @@ export interface CreateAppAchievementInput { export interface AppAchievementInput { id?: string; actorId?: string; + /** Name identifier of the level requirement being tracked */ name: string; + /** Cumulative count of completed steps toward this requirement */ count?: number; createdAt?: string; updatedAt?: string; @@ -1931,7 +2140,9 @@ export interface CreateAppStepInput { export interface AppStepInput { id?: string; actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name: string; + /** Number of units completed in this step action */ count?: number; createdAt?: string; updatedAt?: string; @@ -1944,8 +2155,11 @@ export interface CreateClaimedInviteInput { /** An input for mutations affecting `ClaimedInvite` */ export interface ClaimedInviteInput { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -1958,8 +2172,11 @@ export interface CreateAppGrantInput { /** An input for mutations affecting `AppGrant` */ export interface AppGrantInput { id?: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean; + /** The member receiving or losing the permission grant */ actorId: string; grantorId?: string; createdAt?: string; @@ -1977,7 +2194,9 @@ export interface AppMembershipDefaultInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean; } export interface CreateOrgLimitInput { @@ -1988,9 +2207,13 @@ export interface CreateOrgLimitInput { /** An input for mutations affecting `OrgLimit` */ export interface OrgLimitInput { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; entityId: string; } @@ -2002,8 +2225,11 @@ export interface CreateOrgClaimedInviteInput { /** An input for mutations affecting `OrgClaimedInvite` */ export interface OrgClaimedInviteInput { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -2017,14 +2243,39 @@ export interface CreateOrgGrantInput { /** An input for mutations affecting `OrgGrant` */ export interface OrgGrantInput { id?: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean; + /** The member receiving or losing the permission grant */ actorId: string; + /** The entity (org or group) this permission grant applies to */ entityId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + /** The `OrgChartEdge` to be created by this mutation. */ + orgChartEdge: OrgChartEdgeInput; +} +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; /** The `OrgMembershipDefault` to be created by this mutation. */ @@ -2037,9 +2288,13 @@ export interface OrgMembershipDefaultInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** References the entity these membership defaults apply to */ entityId: string; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean; } export interface CreateAppLevelRequirementInput { @@ -2050,29 +2305,19 @@ export interface CreateAppLevelRequirementInput { /** An input for mutations affecting `AppLevelRequirement` */ export interface AppLevelRequirementInput { id?: string; + /** Name identifier of the requirement (matches step names) */ name: string; + /** Name of the level this requirement belongs to */ level: string; + /** Human-readable description of what this requirement entails */ description?: string; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number; + /** Display ordering priority; lower values appear first */ priority?: number; createdAt?: string; updatedAt?: string; } -export interface CreateAppLevelInput { - clientMutationId?: string; - /** The `AppLevel` to be created by this mutation. */ - appLevel: AppLevelInput; -} -/** An input for mutations affecting `AppLevel` */ -export interface AppLevelInput { - id?: string; - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} export interface CreateInviteInput { clientMutationId?: string; /** The `Invite` to be created by this mutation. */ @@ -2081,18 +2326,46 @@ export interface CreateInviteInput { /** An input for mutations affecting `Invite` */ export interface InviteInput { id?: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; } +export interface CreateAppLevelInput { + clientMutationId?: string; + /** The `AppLevel` to be created by this mutation. */ + appLevel: AppLevelInput; +} +/** An input for mutations affecting `AppLevel` */ +export interface AppLevelInput { + id?: string; + /** Unique name of the level */ + name: string; + /** Human-readable description of what this level represents */ + description?: string; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; /** The `AppMembership` to be created by this mutation. */ @@ -2105,16 +2378,27 @@ export interface AppMembershipInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether this membership has been approved by an admin */ isApproved?: boolean; + /** Whether this member has been banned from the entity */ isBanned?: boolean; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; + /** Whether the actor is the owner of this entity */ isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string; + /** References the user who holds this membership */ actorId: string; + profileId?: string; } export interface CreateOrgMembershipInput { clientMutationId?: string; @@ -2128,16 +2412,27 @@ export interface OrgMembershipInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether this membership has been approved by an admin */ isApproved?: boolean; + /** Whether this member has been banned from the entity */ isBanned?: boolean; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; + /** Whether the actor is the owner of this entity */ isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string; + /** References the user who holds this membership */ actorId: string; + /** References the entity (org or group) this membership belongs to */ entityId: string; + profileId?: string; } export interface CreateOrgInviteInput { clientMutationId?: string; @@ -2147,15 +2442,25 @@ export interface CreateOrgInviteInput { /** An input for mutations affecting `OrgInvite` */ export interface OrgInviteInput { id?: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; @@ -2170,8 +2475,11 @@ export interface UpdateOrgMemberInput { /** Represents an update to a `OrgMember`. Fields that are set will be updated. */ export interface OrgMemberPatch { id?: string; + /** Whether this member has admin privileges */ isAdmin?: boolean; + /** References the user who is a member */ actorId?: string; + /** References the entity (org or group) this member belongs to */ entityId?: string; } export interface UpdateAppPermissionDefaultInput { @@ -2183,6 +2491,7 @@ export interface UpdateAppPermissionDefaultInput { /** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ export interface AppPermissionDefaultPatch { id?: string; + /** Default permission bitmask applied to new members */ permissions?: string; } export interface UpdateOrgPermissionDefaultInput { @@ -2194,7 +2503,9 @@ export interface UpdateOrgPermissionDefaultInput { /** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ export interface OrgPermissionDefaultPatch { id?: string; + /** Default permission bitmask applied to new members */ permissions?: string; + /** References the entity these default permissions apply to */ entityId?: string; } export interface UpdateAppAdminGrantInput { @@ -2206,7 +2517,9 @@ export interface UpdateAppAdminGrantInput { /** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ export interface AppAdminGrantPatch { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId?: string; grantorId?: string; createdAt?: string; @@ -2221,36 +2534,14 @@ export interface UpdateAppOwnerGrantInput { /** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ export interface AppOwnerGrantPatch { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ - appLimitDefaultPatch: AppLimitDefaultPatch; -} -/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ -export interface AppLimitDefaultPatch { - id?: string; - name?: string; - max?: number; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ -export interface OrgLimitDefaultPatch { - id?: string; - name?: string; - max?: number; -} export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; @@ -2260,8 +2551,11 @@ export interface UpdateOrgAdminGrantInput { /** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ export interface OrgAdminGrantPatch { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId?: string; + /** The entity (org or group) this admin grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; @@ -2276,26 +2570,88 @@ export interface UpdateOrgOwnerGrantInput { /** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ export interface OrgOwnerGrantPatch { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId?: string; + /** The entity (org or group) this ownership grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ + appLimitDefaultPatch: AppLimitDefaultPatch; +} +/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ +export interface AppLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ +export interface OrgLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} export interface UpdateMembershipTypeInput { clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; /** An object where the defined keys will be set on the `MembershipType` being updated. */ membershipTypePatch: MembershipTypePatch; } /** Represents an update to a `MembershipType`. Fields that are set will be updated. */ export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id?: number; + /** Human-readable name of the membership type */ name?: string; + /** Description of what this membership type represents */ description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string; } +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. */ + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +/** Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. */ +export interface OrgChartEdgeGrantPatch { + id?: string; + /** Organization this grant applies to */ + entityId?: string; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean; + /** Job title or role name being assigned in this grant */ + positionTitle?: string; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} export interface UpdateAppPermissionInput { clientMutationId?: string; id: string; @@ -2305,9 +2661,13 @@ export interface UpdateAppPermissionInput { /** Represents an update to a `AppPermission`. Fields that are set will be updated. */ export interface AppPermissionPatch { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface UpdateOrgPermissionInput { @@ -2319,9 +2679,13 @@ export interface UpdateOrgPermissionInput { /** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ export interface OrgPermissionPatch { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface UpdateAppLimitInput { @@ -2333,9 +2697,13 @@ export interface UpdateAppLimitInput { /** Represents an update to a `AppLimit`. Fields that are set will be updated. */ export interface AppLimitPatch { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId?: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; } export interface UpdateAppAchievementInput { @@ -2348,7 +2716,9 @@ export interface UpdateAppAchievementInput { export interface AppAchievementPatch { id?: string; actorId?: string; + /** Name identifier of the level requirement being tracked */ name?: string; + /** Cumulative count of completed steps toward this requirement */ count?: number; createdAt?: string; updatedAt?: string; @@ -2363,7 +2733,9 @@ export interface UpdateAppStepInput { export interface AppStepPatch { id?: string; actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name?: string; + /** Number of units completed in this step action */ count?: number; createdAt?: string; updatedAt?: string; @@ -2377,8 +2749,11 @@ export interface UpdateClaimedInviteInput { /** Represents an update to a `ClaimedInvite`. Fields that are set will be updated. */ export interface ClaimedInvitePatch { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -2392,8 +2767,11 @@ export interface UpdateAppGrantInput { /** Represents an update to a `AppGrant`. Fields that are set will be updated. */ export interface AppGrantPatch { id?: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean; + /** The member receiving or losing the permission grant */ actorId?: string; grantorId?: string; createdAt?: string; @@ -2412,7 +2790,9 @@ export interface AppMembershipDefaultPatch { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean; } export interface UpdateOrgLimitInput { @@ -2424,9 +2804,13 @@ export interface UpdateOrgLimitInput { /** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ export interface OrgLimitPatch { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId?: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; entityId?: string; } @@ -2439,8 +2823,11 @@ export interface UpdateOrgClaimedInviteInput { /** Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. */ export interface OrgClaimedInvitePatch { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -2455,14 +2842,40 @@ export interface UpdateOrgGrantInput { /** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ export interface OrgGrantPatch { id?: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean; + /** The member receiving or losing the permission grant */ actorId?: string; + /** The entity (org or group) this permission grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ + orgChartEdgePatch: OrgChartEdgePatch; +} +/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ +export interface OrgChartEdgePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId?: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; @@ -2476,9 +2889,13 @@ export interface OrgMembershipDefaultPatch { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** References the entity these membership defaults apply to */ entityId?: string; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean; } export interface UpdateAppLevelRequirementInput { @@ -2490,30 +2907,19 @@ export interface UpdateAppLevelRequirementInput { /** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ export interface AppLevelRequirementPatch { id?: string; + /** Name identifier of the requirement (matches step names) */ name?: string; + /** Name of the level this requirement belongs to */ level?: string; + /** Human-readable description of what this requirement entails */ description?: string; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number; + /** Display ordering priority; lower values appear first */ priority?: number; createdAt?: string; updatedAt?: string; } -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLevel` being updated. */ - appLevelPatch: AppLevelPatch; -} -/** Represents an update to a `AppLevel`. Fields that are set will be updated. */ -export interface AppLevelPatch { - id?: string; - name?: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} export interface UpdateInviteInput { clientMutationId?: string; id: string; @@ -2523,18 +2929,49 @@ export interface UpdateInviteInput { /** Represents an update to a `Invite`. Fields that are set will be updated. */ export interface InvitePatch { id?: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; } +export interface UpdateAppLevelInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLevel` being updated. */ + appLevelPatch: AppLevelPatch; +} +/** Represents an update to a `AppLevel`. Fields that are set will be updated. */ +export interface AppLevelPatch { + id?: string; + /** Unique name of the level */ + name?: string; + /** Human-readable description of what this level represents */ + description?: string; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string; + createdAt?: string; + updatedAt?: string; + /** Upload for Badge or icon image associated with this level */ + imageUpload?: File; +} export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; @@ -2548,16 +2985,27 @@ export interface AppMembershipPatch { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether this membership has been approved by an admin */ isApproved?: boolean; + /** Whether this member has been banned from the entity */ isBanned?: boolean; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; + /** Whether the actor is the owner of this entity */ isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string; + /** References the user who holds this membership */ actorId?: string; + profileId?: string; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -2572,16 +3020,27 @@ export interface OrgMembershipPatch { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether this membership has been approved by an admin */ isApproved?: boolean; + /** Whether this member has been banned from the entity */ isBanned?: boolean; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; + /** Whether the actor is the owner of this entity */ isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string; + /** References the user who holds this membership */ actorId?: string; + /** References the entity (org or group) this membership belongs to */ entityId?: string; + profileId?: string; } export interface UpdateOrgInviteInput { clientMutationId?: string; @@ -2592,15 +3051,25 @@ export interface UpdateOrgInviteInput { /** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ export interface OrgInvitePatch { id?: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; @@ -2626,26 +3095,31 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } export interface DeleteMembershipTypeInput { clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; } +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; @@ -2690,6 +3164,10 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; @@ -2698,11 +3176,11 @@ export interface DeleteAppLevelRequirementInput { clientMutationId?: string; id: string; } -export interface DeleteAppLevelInput { +export interface DeleteInviteInput { clientMutationId?: string; id: string; } -export interface DeleteInviteInput { +export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } @@ -2718,6 +3196,20 @@ export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } +/** A connection to a list of `OrgGetManagersRecord` values. */ +export interface OrgGetManagersConnection { + nodes: OrgGetManagersRecord[]; + edges: OrgGetManagersEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgGetSubordinatesRecord` values. */ +export interface OrgGetSubordinatesConnection { + nodes: OrgGetSubordinatesRecord[]; + edges: OrgGetSubordinatesEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; @@ -2774,20 +3266,6 @@ export interface AppOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitDefault` values. */ -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitDefault` values. */ -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgAdminGrant` values. */ export interface OrgAdminGrantConnection { nodes: OrgAdminGrant[]; @@ -2802,6 +3280,20 @@ export interface OrgOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLimitDefault` values. */ +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitDefault` values. */ +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `MembershipType` values. */ export interface MembershipTypeConnection { nodes: MembershipType[]; @@ -2809,6 +3301,13 @@ export interface MembershipTypeConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdgeGrant` values. */ +export interface OrgChartEdgeGrantConnection { + nodes: OrgChartEdgeGrant[]; + edges: OrgChartEdgeGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimit` values. */ export interface AppLimitConnection { nodes: AppLimit[]; @@ -2872,6 +3371,13 @@ export interface OrgGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdge` values. */ +export interface OrgChartEdgeConnection { + nodes: OrgChartEdge[]; + edges: OrgChartEdgeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgMembershipDefault` values. */ export interface OrgMembershipDefaultConnection { nodes: OrgMembershipDefault[]; @@ -2879,13 +3385,6 @@ export interface OrgMembershipDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLevel` values. */ -export interface AppLevelConnection { - nodes: AppLevel[]; - edges: AppLevelEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Invite` values. */ export interface InviteConnection { nodes: Invite[]; @@ -2893,6 +3392,13 @@ export interface InviteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLevel` values. */ +export interface AppLevelConnection { + nodes: AppLevel[]; + edges: AppLevelEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppMembership` values. */ export interface AppMembershipConnection { nodes: AppMembership[]; @@ -2956,18 +3462,6 @@ export interface CreateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface CreateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was created by this mutation. */ @@ -2980,12 +3474,30 @@ export interface CreateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ membershipType?: MembershipType | null; membershipTypeEdge?: MembershipTypeEdge | null; } +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -3052,6 +3564,12 @@ export interface CreateOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was created by this mutation. */ @@ -3064,18 +3582,18 @@ export interface CreateAppLevelRequirementPayload { appLevelRequirement?: AppLevelRequirement | null; appLevelRequirementEdge?: AppLevelRequirementEdge | null; } -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} export interface CreateInvitePayload { clientMutationId?: string | null; /** The `Invite` that was created by this mutation. */ invite?: Invite | null; inviteEdge?: InviteEdge | null; } +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ @@ -3124,18 +3642,6 @@ export interface UpdateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface UpdateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface UpdateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was updated by this mutation. */ @@ -3148,12 +3654,30 @@ export interface UpdateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} export interface UpdateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was updated by this mutation. */ membershipType?: MembershipType | null; membershipTypeEdge?: MembershipTypeEdge | null; } +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface UpdateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was updated by this mutation. */ @@ -3220,6 +3744,12 @@ export interface UpdateOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was updated by this mutation. */ @@ -3232,18 +3762,18 @@ export interface UpdateAppLevelRequirementPayload { appLevelRequirement?: AppLevelRequirement | null; appLevelRequirementEdge?: AppLevelRequirementEdge | null; } -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} export interface UpdateInvitePayload { clientMutationId?: string | null; /** The `Invite` that was updated by this mutation. */ invite?: Invite | null; inviteEdge?: InviteEdge | null; } +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} export interface UpdateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was updated by this mutation. */ @@ -3292,18 +3822,6 @@ export interface DeleteAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface DeleteAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface DeleteOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was deleted by this mutation. */ @@ -3316,12 +3834,30 @@ export interface DeleteOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} export interface DeleteMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was deleted by this mutation. */ membershipType?: MembershipType | null; membershipTypeEdge?: MembershipTypeEdge | null; } +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface DeleteAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was deleted by this mutation. */ @@ -3388,6 +3924,12 @@ export interface DeleteOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was deleted by this mutation. */ @@ -3400,18 +3942,18 @@ export interface DeleteAppLevelRequirementPayload { appLevelRequirement?: AppLevelRequirement | null; appLevelRequirementEdge?: AppLevelRequirementEdge | null; } -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} export interface DeleteInvitePayload { clientMutationId?: string | null; /** The `Invite` that was deleted by this mutation. */ invite?: Invite | null; inviteEdge?: InviteEdge | null; } +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} export interface DeleteAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was deleted by this mutation. */ @@ -3430,11 +3972,11 @@ export interface DeleteOrgInvitePayload { orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `OrgGetManagersRecord` edge in the connection. */ +export interface OrgGetManagersEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `OrgGetManagersRecord` at the end of the edge. */ + node?: OrgGetManagersRecord | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -3447,6 +3989,18 @@ export interface PageInfo { /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } +/** A `OrgGetSubordinatesRecord` edge in the connection. */ +export interface OrgGetSubordinatesEdge { + cursor?: string | null; + /** The `OrgGetSubordinatesRecord` at the end of the edge. */ + node?: OrgGetSubordinatesRecord | null; +} +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -3489,18 +4043,6 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -3513,12 +4055,30 @@ export interface OrgOwnerGrantEdge { /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; /** The `MembershipType` at the end of the edge. */ node?: MembershipType | null; } +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -3573,24 +4133,30 @@ export interface OrgGrantEdge { /** The `OrgGrant` at the end of the edge. */ node?: OrgGrant | null; } +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} /** A `OrgMembershipDefault` edge in the connection. */ export interface OrgMembershipDefaultEdge { cursor?: string | null; /** The `OrgMembershipDefault` at the end of the edge. */ node?: OrgMembershipDefault | null; } -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { - cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; -} /** A `Invite` edge in the connection. */ export interface InviteEdge { cursor?: string | null; /** The `Invite` at the end of the edge. */ node?: Invite | null; } +/** A `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index f9bd9b893..07c653c6f 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -5,6 +5,14 @@ */ export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; +export interface OrgGetManagersRecord { + userId: string | null; + depth: number | null; +} +export interface OrgGetSubordinatesRecord { + userId: string | null; + depth: number | null; +} export interface AppPermission { id: string | null; name: string | null; @@ -60,16 +68,6 @@ export interface AppOwnerGrant { createdAt: string | null; updatedAt: string | null; } -export interface AppLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} -export interface OrgLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} export interface OrgAdminGrant { id: string | null; isGrant: boolean | null; @@ -88,12 +86,33 @@ export interface OrgOwnerGrant { createdAt: string | null; updatedAt: string | null; } +export interface AppLimitDefault { + id: string | null; + name: string | null; + max: number | null; +} +export interface OrgLimitDefault { + id: string | null; + name: string | null; + max: number | null; +} export interface MembershipType { id: number | null; name: string | null; description: string | null; prefix: string | null; } +export interface OrgChartEdgeGrant { + id: string | null; + entityId: string | null; + childId: string | null; + parentId: string | null; + grantorId: string | null; + isGrant: boolean | null; + positionTitle: string | null; + positionLevel: number | null; + createdAt: string | null; +} export interface AppLimit { id: string | null; name: string | null; @@ -170,6 +189,16 @@ export interface OrgGrant { createdAt: string | null; updatedAt: string | null; } +export interface OrgChartEdge { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + entityId: string | null; + childId: string | null; + parentId: string | null; + positionTitle: string | null; + positionLevel: number | null; +} export interface OrgMembershipDefault { id: string | null; createdAt: string | null; @@ -181,15 +210,6 @@ export interface OrgMembershipDefault { deleteMemberCascadeGroups: boolean | null; createGroupsCascadeMembers: boolean | null; } -export interface AppLevel { - id: string | null; - name: string | null; - description: string | null; - image: ConstructiveInternalTypeImage | null; - ownerId: string | null; - createdAt: string | null; - updatedAt: string | null; -} export interface Invite { id: string | null; email: ConstructiveInternalTypeEmail | null; @@ -204,6 +224,15 @@ export interface Invite { createdAt: string | null; updatedAt: string | null; } +export interface AppLevel { + id: string | null; + name: string | null; + description: string | null; + image: ConstructiveInternalTypeImage | null; + ownerId: string | null; + createdAt: string | null; + updatedAt: string | null; +} export interface AppMembership { id: string | null; createdAt: string | null; @@ -220,6 +249,7 @@ export interface AppMembership { permissions: string | null; granted: string | null; actorId: string | null; + profileId: string | null; } export interface OrgMembership { id: string | null; @@ -237,6 +267,7 @@ export interface OrgMembership { granted: string | null; actorId: string | null; entityId: string | null; + profileId: string | null; } export interface OrgInvite { id: string | null; diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md index 874473cda..45931d894 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -37,31 +37,31 @@ function App() { | `useCreateRoleTypeMutation` | Mutation | Create a roleType | | `useUpdateRoleTypeMutation` | Mutation | Update a roleType | | `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | -| `useCryptoAddressesQuery` | Query | List all cryptoAddresses | -| `useCryptoAddressQuery` | Query | Get one cryptoAddress | -| `useCreateCryptoAddressMutation` | Mutation | Create a cryptoAddress | -| `useUpdateCryptoAddressMutation` | Mutation | Update a cryptoAddress | -| `useDeleteCryptoAddressMutation` | Mutation | Delete a cryptoAddress | -| `usePhoneNumbersQuery` | Query | List all phoneNumbers | -| `usePhoneNumberQuery` | Query | Get one phoneNumber | -| `useCreatePhoneNumberMutation` | Mutation | Create a phoneNumber | -| `useUpdatePhoneNumberMutation` | Mutation | Update a phoneNumber | -| `useDeletePhoneNumberMutation` | Mutation | Delete a phoneNumber | -| `useConnectedAccountsQuery` | Query | List all connectedAccounts | -| `useConnectedAccountQuery` | Query | Get one connectedAccount | -| `useCreateConnectedAccountMutation` | Mutation | Create a connectedAccount | -| `useUpdateConnectedAccountMutation` | Mutation | Update a connectedAccount | -| `useDeleteConnectedAccountMutation` | Mutation | Delete a connectedAccount | -| `useEmailsQuery` | Query | List all emails | -| `useEmailQuery` | Query | Get one email | -| `useCreateEmailMutation` | Mutation | Create a email | -| `useUpdateEmailMutation` | Mutation | Update a email | -| `useDeleteEmailMutation` | Mutation | Delete a email | -| `useAuditLogsQuery` | Query | List all auditLogs | -| `useAuditLogQuery` | Query | Get one auditLog | -| `useCreateAuditLogMutation` | Mutation | Create a auditLog | -| `useUpdateAuditLogMutation` | Mutation | Update a auditLog | -| `useDeleteAuditLogMutation` | Mutation | Delete a auditLog | +| `useCryptoAddressesQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCryptoAddressQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCreateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useUpdateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useDeleteCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `usePhoneNumberQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `useCreatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useUpdatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useConnectedAccountsQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useConnectedAccountQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useCreateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useUpdateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useDeleteConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useAuditLogsQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useAuditLogQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useCreateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useUpdateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useDeleteAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useEmailsQuery` | Query | User email addresses with verification and primary-email management | +| `useEmailQuery` | Query | User email addresses with verification and primary-email management | +| `useCreateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `useUsersQuery` | Query | List all users | | `useUserQuery` | Query | Get one user | | `useCreateUserMutation` | Mutation | Create a user | @@ -174,46 +174,46 @@ const { mutate: create } = useCreateConnectedAccountMutation({ create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); ``` -### Email +### AuditLog ```typescript -// List all emails -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +// List all auditLogs +const { data, isLoading } = useAuditLogsQuery({ + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, }); -// Get one email -const { data: item } = useEmailQuery({ +// Get one auditLog +const { data: item } = useAuditLogQuery({ id: '', - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, }); -// Create a email -const { mutate: create } = useCreateEmailMutation({ +// Create a auditLog +const { mutate: create } = useCreateAuditLogMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); +create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); ``` -### AuditLog +### Email ```typescript -// List all auditLogs -const { data, isLoading } = useAuditLogsQuery({ - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, +// List all emails +const { data, isLoading } = useEmailsQuery({ + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Get one auditLog -const { data: item } = useAuditLogQuery({ +// Get one email +const { data: item } = useEmailQuery({ id: '', - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Create a auditLog -const { mutate: create } = useCreateAuditLogMutation({ +// Create a email +const { mutate: create } = useCreateEmailMutation({ selection: { fields: { id: true } }, }); -create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); +create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); ``` ### User diff --git a/sdk/constructive-react/src/auth/hooks/index.ts b/sdk/constructive-react/src/auth/hooks/index.ts index 895139908..017d2646f 100644 --- a/sdk/constructive-react/src/auth/hooks/index.ts +++ b/sdk/constructive-react/src/auth/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: RoleType, CryptoAddress, PhoneNumber, ConnectedAccount, Email, AuditLog, User + * Tables: RoleType, CryptoAddress, PhoneNumber, ConnectedAccount, AuditLog, Email, User * * Usage: * diff --git a/sdk/constructive-react/src/auth/hooks/invalidation.ts b/sdk/constructive-react/src/auth/hooks/invalidation.ts index 355b6040a..631c7bece 100644 --- a/sdk/constructive-react/src/auth/hooks/invalidation.ts +++ b/sdk/constructive-react/src/auth/hooks/invalidation.ts @@ -19,8 +19,8 @@ import { cryptoAddressKeys, phoneNumberKeys, connectedAccountKeys, - emailKeys, auditLogKeys, + emailKeys, userKeys, } from './query-keys'; /** @@ -108,20 +108,6 @@ export const invalidate = { queryKey: connectedAccountKeys.detail(id), }), }, - /** Invalidate email queries */ email: { - /** Invalidate all email queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.all, - }), - /** Invalidate email list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), - }), - /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: emailKeys.detail(id), - }), - }, /** Invalidate auditLog queries */ auditLog: { /** Invalidate all auditLog queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -136,6 +122,20 @@ export const invalidate = { queryKey: auditLogKeys.detail(id), }), }, + /** Invalidate email queries */ email: { + /** Invalidate all email queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.all, + }), + /** Invalidate email list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }), + /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: emailKeys.detail(id), + }), + }, /** Invalidate user queries */ user: { /** Invalidate all user queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -192,14 +192,14 @@ export const remove = { queryKey: connectedAccountKeys.detail(id), }); }, - /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { + /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: emailKeys.detail(id), + queryKey: auditLogKeys.detail(id), }); }, - /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { + /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: auditLogKeys.detail(id), + queryKey: emailKeys.detail(id), }); }, /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index 2c43a7d85..6aa28d36e 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -53,14 +53,6 @@ export const connectedAccountMutationKeys = { /** Delete connectedAccount mutation key */ delete: (id: string | number) => ['mutation', 'connectedaccount', 'delete', id] as const, } as const; -export const emailMutationKeys = { - /** All email mutation keys */ all: ['mutation', 'email'] as const, - /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, - /** Update email mutation key */ update: (id: string | number) => - ['mutation', 'email', 'update', id] as const, - /** Delete email mutation key */ delete: (id: string | number) => - ['mutation', 'email', 'delete', id] as const, -} as const; export const auditLogMutationKeys = { /** All auditLog mutation keys */ all: ['mutation', 'auditlog'] as const, /** Create auditLog mutation key */ create: () => ['mutation', 'auditlog', 'create'] as const, @@ -69,6 +61,14 @@ export const auditLogMutationKeys = { /** Delete auditLog mutation key */ delete: (id: string | number) => ['mutation', 'auditlog', 'delete', id] as const, } as const; +export const emailMutationKeys = { + /** All email mutation keys */ all: ['mutation', 'email'] as const, + /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, + /** Update email mutation key */ update: (id: string | number) => + ['mutation', 'email', 'update', id] as const, + /** Delete email mutation key */ delete: (id: string | number) => + ['mutation', 'email', 'delete', id] as const, +} as const; export const userMutationKeys = { /** All user mutation keys */ all: ['mutation', 'user'] as const, /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, @@ -173,8 +173,8 @@ export const mutationKeys = { cryptoAddress: cryptoAddressMutationKeys, phoneNumber: phoneNumberMutationKeys, connectedAccount: connectedAccountMutationKeys, - email: emailMutationKeys, auditLog: auditLogMutationKeys, + email: emailMutationKeys, user: userMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/index.ts b/sdk/constructive-react/src/auth/hooks/mutations/index.ts index 9d2309644..36c87a594 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -15,12 +15,12 @@ export * from './useDeletePhoneNumberMutation'; export * from './useCreateConnectedAccountMutation'; export * from './useUpdateConnectedAccountMutation'; export * from './useDeleteConnectedAccountMutation'; -export * from './useCreateEmailMutation'; -export * from './useUpdateEmailMutation'; -export * from './useDeleteEmailMutation'; export * from './useCreateAuditLogMutation'; export * from './useUpdateAuditLogMutation'; export * from './useDeleteAuditLogMutation'; +export * from './useCreateEmailMutation'; +export * from './useUpdateEmailMutation'; +export * from './useDeleteEmailMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts index e05ac6080..fdf4c7f21 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAuditLogInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts index 0e381461b..b07049d9a 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateConnectedAccountInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts index cddfe450c..deda73055 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateCryptoAddressInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts index ff6741c90..3adbfe3b3 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Email + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts index f0a8f239b..7ccbf6084 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreatePhoneNumberInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts index 694be08d8..6abac002e 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AuditLog with typed selection + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts index 29212bade..baf933521 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ConnectedAccount with typed selection + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts index 15d7507ac..34ad5f33d 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a CryptoAddress with typed selection + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts index 55d906a64..ee9259023 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Email with typed selection + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts index a76ed1b26..7e4e74481 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a PhoneNumber with typed selection + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts index c1f3aba69..94417ca87 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts index 826dce155..3615b7022 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ConnectedAccountPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts index f1987ec6e..f154244b5 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CryptoAddressPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts index 89c8a59da..94c754ac4 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Email + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts index e78b8e139..fa058b143 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { PhoneNumberPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/queries/index.ts b/sdk/constructive-react/src/auth/hooks/queries/index.ts index 8b206fe2d..3c45a0896 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/index.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/index.ts @@ -11,10 +11,10 @@ export * from './usePhoneNumbersQuery'; export * from './usePhoneNumberQuery'; export * from './useConnectedAccountsQuery'; export * from './useConnectedAccountQuery'; -export * from './useEmailsQuery'; -export * from './useEmailQuery'; export * from './useAuditLogsQuery'; export * from './useAuditLogQuery'; +export * from './useEmailsQuery'; +export * from './useEmailQuery'; export * from './useUsersQuery'; export * from './useUserQuery'; export * from './useCurrentIpAddressQuery'; diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts index 99af2d7fe..ccfe6231a 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const auditLogQueryKey = auditLogKeys.detail; /** - * Query hook for fetching a single AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAuditLogQuery( }); } /** - * Fetch a single AuditLog without React hooks + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAuditLogQuery(params: { .unwrap(); } /** - * Prefetch a single AuditLog for SSR or cache warming + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts index 2fd0f9384..aca271c1d 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const auditLogsQueryKey = auditLogKeys.list; /** - * Query hook for fetching AuditLog list + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAuditLogsQuery( }); } /** - * Fetch AuditLog list without React hooks + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAuditLogsQuery(params: { return getClient().auditLog.findMany(args).unwrap(); } /** - * Prefetch AuditLog list for SSR or cache warming + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts index 21a88edf9..913b660d4 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../. /** Query key factory - re-exported from query-keys.ts */ export const connectedAccountQueryKey = connectedAccountKeys.detail; /** - * Query hook for fetching a single ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx @@ -70,7 +70,7 @@ export function useConnectedAccountQuery( }); } /** - * Fetch a single ConnectedAccount without React hooks + * OAuth and social login connections linking external service accounts to users * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchConnectedAccountQuery(params: { .unwrap(); } /** - * Prefetch a single ConnectedAccount for SSR or cache warming + * OAuth and social login connections linking external service accounts to users * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts index 326e1b80c..b75ee2f80 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const connectedAccountsQueryKey = connectedAccountKeys.list; /** - * Query hook for fetching ConnectedAccount list + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx @@ -90,7 +90,7 @@ export function useConnectedAccountsQuery( }); } /** - * Fetch ConnectedAccount list without React hooks + * OAuth and social login connections linking external service accounts to users * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchConnectedAccountsQuery(params: { return getClient().connectedAccount.findMany(args).unwrap(); } /** - * Prefetch ConnectedAccount list for SSR or cache warming + * OAuth and social login connections linking external service accounts to users * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts index cc9c73a90..71a5ea067 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const cryptoAddressQueryKey = cryptoAddressKeys.detail; /** - * Query hook for fetching a single CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx @@ -70,7 +70,7 @@ export function useCryptoAddressQuery( }); } /** - * Fetch a single CryptoAddress without React hooks + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchCryptoAddressQuery(params: { .unwrap(); } /** - * Prefetch a single CryptoAddress for SSR or cache warming + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts index 33cafeede..ffb35cc20 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const cryptoAddressesQueryKey = cryptoAddressKeys.list; /** - * Query hook for fetching CryptoAddress list + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx @@ -86,7 +86,7 @@ export function useCryptoAddressesQuery( }); } /** - * Fetch CryptoAddress list without React hooks + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchCryptoAddressesQuery(params: { return getClient().cryptoAddress.findMany(args).unwrap(); } /** - * Prefetch CryptoAddress list for SSR or cache warming + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts index d954e6328..c8e881673 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const emailQueryKey = emailKeys.detail; /** - * Query hook for fetching a single Email + * User email addresses with verification and primary-email management * * @example * ```tsx @@ -70,7 +70,7 @@ export function useEmailQuery( }); } /** - * Fetch a single Email without React hooks + * User email addresses with verification and primary-email management * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchEmailQuery(params: { .unwrap(); } /** - * Prefetch a single Email for SSR or cache warming + * User email addresses with verification and primary-email management * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts index 1dca30b06..44aa1f0ce 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const emailsQueryKey = emailKeys.list; /** - * Query hook for fetching Email list + * User email addresses with verification and primary-email management * * @example * ```tsx @@ -82,7 +82,7 @@ export function useEmailsQuery( }); } /** - * Fetch Email list without React hooks + * User email addresses with verification and primary-email management * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchEmailsQuery(params: { return getClient().email.findMany(args).unwrap(); } /** - * Prefetch Email list for SSR or cache warming + * User email addresses with verification and primary-email management * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts index 7c7f6a47d..80a507f4f 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/inpu /** Query key factory - re-exported from query-keys.ts */ export const phoneNumberQueryKey = phoneNumberKeys.detail; /** - * Query hook for fetching a single PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx @@ -70,7 +70,7 @@ export function usePhoneNumberQuery( }); } /** - * Fetch a single PhoneNumber without React hooks + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchPhoneNumberQuery(params: { .unwrap(); } /** - * Prefetch a single PhoneNumber for SSR or cache warming + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts index 3282244e1..1811e4e8f 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const phoneNumbersQueryKey = phoneNumberKeys.list; /** - * Query hook for fetching PhoneNumber list + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx @@ -84,7 +84,7 @@ export function usePhoneNumbersQuery( }); } /** - * Fetch PhoneNumber list without React hooks + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchPhoneNumbersQuery(params: { return getClient().phoneNumber.findMany(args).unwrap(); } /** - * Prefetch PhoneNumber list for SSR or cache warming + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/query-keys.ts b/sdk/constructive-react/src/auth/hooks/query-keys.ts index e3e2a4530..7df8f49ce 100644 --- a/sdk/constructive-react/src/auth/hooks/query-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/query-keys.ts @@ -55,15 +55,6 @@ export const connectedAccountKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...connectedAccountKeys.details(), id] as const, } as const; -export const emailKeys = { - /** All email queries */ all: ['email'] as const, - /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...emailKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...emailKeys.details(), id] as const, -} as const; export const auditLogKeys = { /** All auditLog queries */ all: ['auditlog'] as const, /** List query keys */ lists: () => [...auditLogKeys.all, 'list'] as const, @@ -73,6 +64,15 @@ export const auditLogKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...auditLogKeys.details(), id] as const, } as const; +export const emailKeys = { + /** All email queries */ all: ['email'] as const, + /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailKeys.details(), id] as const, +} as const; export const userKeys = { /** All user queries */ all: ['user'] as const, /** List query keys */ lists: () => [...userKeys.all, 'list'] as const, @@ -120,8 +120,8 @@ export const queryKeys = { cryptoAddress: cryptoAddressKeys, phoneNumber: phoneNumberKeys, connectedAccount: connectedAccountKeys, - email: emailKeys, auditLog: auditLogKeys, + email: emailKeys, user: userKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index 8b32eca79..19b4a6b78 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -25,8 +25,8 @@ const db = createClient({ | `cryptoAddress` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | ## Table Operations @@ -168,75 +168,75 @@ const updated = await db.connectedAccount.update({ where: { id: '' }, dat const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.email` +### `db.auditLog` -CRUD operations for Email records. +CRUD operations for AuditLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `event` | String | Yes | +| `actorId` | UUID | Yes | +| `origin` | ConstructiveInternalTypeOrigin | Yes | +| `userAgent` | String | Yes | +| `ipAddress` | InternetAddress | Yes | +| `success` | Boolean | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +// List all auditLog records +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.email` -CRUD operations for AuditLog records. +CRUD operations for Email records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` ### `db.user` diff --git a/sdk/constructive-react/src/auth/orm/index.ts b/sdk/constructive-react/src/auth/orm/index.ts index da3c30436..3718b175a 100644 --- a/sdk/constructive-react/src/auth/orm/index.ts +++ b/sdk/constructive-react/src/auth/orm/index.ts @@ -9,8 +9,8 @@ import { RoleTypeModel } from './models/roleType'; import { CryptoAddressModel } from './models/cryptoAddress'; import { PhoneNumberModel } from './models/phoneNumber'; import { ConnectedAccountModel } from './models/connectedAccount'; -import { EmailModel } from './models/email'; import { AuditLogModel } from './models/auditLog'; +import { EmailModel } from './models/email'; import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -51,8 +51,8 @@ export function createClient(config: OrmClientConfig) { cryptoAddress: new CryptoAddressModel(client), phoneNumber: new PhoneNumberModel(client), connectedAccount: new ConnectedAccountModel(client), - email: new EmailModel(client), auditLog: new AuditLogModel(client), + email: new EmailModel(client), user: new UserModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index eaf804378..4cc717c63 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -232,25 +232,35 @@ export interface RoleType { id: number; name?: string | null; } +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ export interface CryptoAddress { id: string; ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { id: string; ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ cc?: string | null; + /** The phone number without country code */ number?: string | null; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { id: string; ownerId?: string | null; @@ -260,29 +270,42 @@ export interface ConnectedAccount { identifier?: string | null; /** Additional profile details extracted from this login method */ details?: Record | null; + /** Whether this connected account has been verified */ isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface Email { - id: string; - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; + /** User who performed the authentication action */ actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ userAgent?: string | null; + /** IP address of the client that initiated the auth event */ ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ success?: boolean | null; + /** Timestamp when the audit event was recorded */ createdAt?: string | null; } +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; + ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface User { id: string; username?: string | null; @@ -318,12 +341,12 @@ export interface PhoneNumberRelations { export interface ConnectedAccountRelations { owner?: User | null; } -export interface EmailRelations { - owner?: User | null; -} export interface AuditLogRelations { actor?: User | null; } +export interface EmailRelations { + owner?: User | null; +} export interface UserRelations { roleType?: RoleType | null; } @@ -332,8 +355,8 @@ export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; -export type EmailWithRelations = Email & EmailRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; +export type EmailWithRelations = Email & EmailRelations; export type UserWithRelations = User & UserRelations; // ============ Entity Select Types ============ export type RoleTypeSelect = { @@ -378,18 +401,6 @@ export type ConnectedAccountSelect = { select: UserSelect; }; }; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AuditLogSelect = { id?: boolean; event?: boolean; @@ -403,6 +414,18 @@ export type AuditLogSelect = { select: UserSelect; }; }; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type UserSelect = { id?: boolean; username?: boolean; @@ -463,18 +486,6 @@ export interface ConnectedAccountFilter { or?: ConnectedAccountFilter[]; not?: ConnectedAccountFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface AuditLogFilter { id?: UUIDFilter; event?: StringFilter; @@ -488,6 +499,18 @@ export interface AuditLogFilter { or?: AuditLogFilter[]; not?: AuditLogFilter; } +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} export interface UserFilter { id?: UUIDFilter; username?: StringFilter; @@ -536,15 +559,6 @@ export interface ConnectedAccountCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface EmailCondition { - id?: string | null; - ownerId?: string | null; - email?: unknown | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface AuditLogCondition { id?: string | null; event?: string | null; @@ -555,6 +569,15 @@ export interface AuditLogCondition { success?: boolean | null; createdAt?: string | null; } +export interface EmailCondition { + id?: string | null; + ownerId?: string | null; + email?: unknown | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface UserCondition { id?: string | null; username?: string | null; @@ -633,24 +656,6 @@ export type ConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -671,6 +676,24 @@ export type AuditLogOrderBy = | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type EmailOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_PRIMARY_ASC' + | 'IS_PRIMARY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type UserOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -788,30 +811,6 @@ export interface DeleteConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateAuditLogInput { clientMutationId?: string; auditLog: { @@ -840,6 +839,30 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} export interface CreateUserInput { clientMutationId?: string; user: { @@ -1283,51 +1306,6 @@ export type DeleteConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ @@ -1373,6 +1351,51 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -1476,18 +1499,30 @@ export type ExtendTokenExpiresRecordSelect = { sessionId?: boolean; expiresAt?: boolean; }; +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -1556,18 +1591,6 @@ export type ConnectedAccountEdgeSelect = { select: ConnectedAccountSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; @@ -1580,6 +1603,18 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} +export type EmailEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSelect; + }; +}; /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/auth/orm/models/index.ts b/sdk/constructive-react/src/auth/orm/models/index.ts index f0e6c6b1f..67ded861a 100644 --- a/sdk/constructive-react/src/auth/orm/models/index.ts +++ b/sdk/constructive-react/src/auth/orm/models/index.ts @@ -7,6 +7,6 @@ export { RoleTypeModel } from './roleType'; export { CryptoAddressModel } from './cryptoAddress'; export { PhoneNumberModel } from './phoneNumber'; export { ConnectedAccountModel } from './connectedAccount'; -export { EmailModel } from './email'; export { AuditLogModel } from './auditLog'; +export { EmailModel } from './email'; export { UserModel } from './user'; diff --git a/sdk/constructive-react/src/auth/orm/skills/auditLog.md b/sdk/constructive-react/src/auth/orm/skills/auditLog.md deleted file mode 100644 index d7eed269a..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/auditLog.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-auditLog - - - -ORM operations for AuditLog records - -## Usage - -```typescript -db.auditLog.findMany({ select: { id: true } }).execute() -db.auditLog.findOne({ id: '', select: { id: true } }).execute() -db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() -db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() -db.auditLog.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all auditLog records - -```typescript -const items = await db.auditLog.findMany({ - select: { id: true, event: true } -}).execute(); -``` - -### Create a auditLog - -```typescript -const item = await db.auditLog.create({ - data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/checkPassword.md b/sdk/constructive-react/src/auth/orm/skills/checkPassword.md deleted file mode 100644 index 1c5c3d8ba..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/checkPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-checkPassword - - - -Execute the checkPassword mutation - -## Usage - -```typescript -db.mutation.checkPassword({ input: '' }).execute() -``` - -## Examples - -### Run checkPassword - -```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/confirmDeleteAccount.md b/sdk/constructive-react/src/auth/orm/skills/confirmDeleteAccount.md deleted file mode 100644 index 4d76c3194..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/confirmDeleteAccount.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-confirmDeleteAccount - - - -Execute the confirmDeleteAccount mutation - -## Usage - -```typescript -db.mutation.confirmDeleteAccount({ input: '' }).execute() -``` - -## Examples - -### Run confirmDeleteAccount - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/connectedAccount.md b/sdk/constructive-react/src/auth/orm/skills/connectedAccount.md deleted file mode 100644 index ff7e10281..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/connectedAccount.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-connectedAccount - - - -ORM operations for ConnectedAccount records - -## Usage - -```typescript -db.connectedAccount.findMany({ select: { id: true } }).execute() -db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() -db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.connectedAccount.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccount records - -```typescript -const items = await db.connectedAccount.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a connectedAccount - -```typescript -const item = await db.connectedAccount.create({ - data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/cryptoAddress.md b/sdk/constructive-react/src/auth/orm/skills/cryptoAddress.md deleted file mode 100644 index 70e896572..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/cryptoAddress.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAddress - - - -ORM operations for CryptoAddress records - -## Usage - -```typescript -db.cryptoAddress.findMany({ select: { id: true } }).execute() -db.cryptoAddress.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.cryptoAddress.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddress records - -```typescript -const items = await db.cryptoAddress.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a cryptoAddress - -```typescript -const item = await db.cryptoAddress.create({ - data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/currentIpAddress.md b/sdk/constructive-react/src/auth/orm/skills/currentIpAddress.md deleted file mode 100644 index 63d2d9969..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/currentIpAddress.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentIpAddress - - - -Execute the currentIpAddress query - -## Usage - -```typescript -db.query.currentIpAddress().execute() -``` - -## Examples - -### Run currentIpAddress - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/currentUser.md b/sdk/constructive-react/src/auth/orm/skills/currentUser.md deleted file mode 100644 index ca907fcb4..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/currentUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUser - - - -Execute the currentUser query - -## Usage - -```typescript -db.query.currentUser().execute() -``` - -## Examples - -### Run currentUser - -```typescript -const result = await db.query.currentUser().execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/currentUserAgent.md b/sdk/constructive-react/src/auth/orm/skills/currentUserAgent.md deleted file mode 100644 index e5ba1e850..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/currentUserAgent.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserAgent - - - -Execute the currentUserAgent query - -## Usage - -```typescript -db.query.currentUserAgent().execute() -``` - -## Examples - -### Run currentUserAgent - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/currentUserId.md b/sdk/constructive-react/src/auth/orm/skills/currentUserId.md deleted file mode 100644 index c27ebc8c5..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/currentUserId.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserId - - - -Execute the currentUserId query - -## Usage - -```typescript -db.query.currentUserId().execute() -``` - -## Examples - -### Run currentUserId - -```typescript -const result = await db.query.currentUserId().execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/email.md b/sdk/constructive-react/src/auth/orm/skills/email.md deleted file mode 100644 index 9bc21e74f..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-email - - - -ORM operations for Email records - -## Usage - -```typescript -db.email.findMany({ select: { id: true } }).execute() -db.email.findOne({ id: '', select: { id: true } }).execute() -db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.email.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all email records - -```typescript -const items = await db.email.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a email - -```typescript -const item = await db.email.create({ - data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/extendTokenExpires.md b/sdk/constructive-react/src/auth/orm/skills/extendTokenExpires.md deleted file mode 100644 index d587afacb..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/extendTokenExpires.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-extendTokenExpires - - - -Execute the extendTokenExpires mutation - -## Usage - -```typescript -db.mutation.extendTokenExpires({ input: '' }).execute() -``` - -## Examples - -### Run extendTokenExpires - -```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/forgotPassword.md b/sdk/constructive-react/src/auth/orm/skills/forgotPassword.md deleted file mode 100644 index 38c59f662..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/forgotPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-forgotPassword - - - -Execute the forgotPassword mutation - -## Usage - -```typescript -db.mutation.forgotPassword({ input: '' }).execute() -``` - -## Examples - -### Run forgotPassword - -```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/oneTimeToken.md b/sdk/constructive-react/src/auth/orm/skills/oneTimeToken.md deleted file mode 100644 index 2ac3f962d..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/oneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```typescript -db.mutation.oneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run oneTimeToken - -```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/phoneNumber.md b/sdk/constructive-react/src/auth/orm/skills/phoneNumber.md deleted file mode 100644 index 2a77480fa..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/phoneNumber.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-phoneNumber - - - -ORM operations for PhoneNumber records - -## Usage - -```typescript -db.phoneNumber.findMany({ select: { id: true } }).execute() -db.phoneNumber.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.phoneNumber.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumber records - -```typescript -const items = await db.phoneNumber.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a phoneNumber - -```typescript -const item = await db.phoneNumber.create({ - data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/resetPassword.md b/sdk/constructive-react/src/auth/orm/skills/resetPassword.md deleted file mode 100644 index fe676ada5..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/resetPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-resetPassword - - - -Execute the resetPassword mutation - -## Usage - -```typescript -db.mutation.resetPassword({ input: '' }).execute() -``` - -## Examples - -### Run resetPassword - -```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/roleType.md b/sdk/constructive-react/src/auth/orm/skills/roleType.md deleted file mode 100644 index 261296f03..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/roleType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-roleType - - - -ORM operations for RoleType records - -## Usage - -```typescript -db.roleType.findMany({ select: { id: true } }).execute() -db.roleType.findOne({ id: '', select: { id: true } }).execute() -db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() -db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.roleType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all roleType records - -```typescript -const items = await db.roleType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a roleType - -```typescript -const item = await db.roleType.create({ - data: { name: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/sendAccountDeletionEmail.md b/sdk/constructive-react/src/auth/orm/skills/sendAccountDeletionEmail.md deleted file mode 100644 index aaf0470b5..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/sendAccountDeletionEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendAccountDeletionEmail - - - -Execute the sendAccountDeletionEmail mutation - -## Usage - -```typescript -db.mutation.sendAccountDeletionEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendAccountDeletionEmail - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/sendVerificationEmail.md b/sdk/constructive-react/src/auth/orm/skills/sendVerificationEmail.md deleted file mode 100644 index 2f0cfea9a..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/sendVerificationEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendVerificationEmail - - - -Execute the sendVerificationEmail mutation - -## Usage - -```typescript -db.mutation.sendVerificationEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendVerificationEmail - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/setPassword.md b/sdk/constructive-react/src/auth/orm/skills/setPassword.md deleted file mode 100644 index bbf15b68d..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/setPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPassword - - - -Execute the setPassword mutation - -## Usage - -```typescript -db.mutation.setPassword({ input: '' }).execute() -``` - -## Examples - -### Run setPassword - -```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/signIn.md b/sdk/constructive-react/src/auth/orm/skills/signIn.md deleted file mode 100644 index d49334136..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/signIn.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signIn - - - -Execute the signIn mutation - -## Usage - -```typescript -db.mutation.signIn({ input: '' }).execute() -``` - -## Examples - -### Run signIn - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/signInOneTimeToken.md b/sdk/constructive-react/src/auth/orm/skills/signInOneTimeToken.md deleted file mode 100644 index 9a87fd088..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/signInOneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```typescript -db.mutation.signInOneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run signInOneTimeToken - -```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/signOut.md b/sdk/constructive-react/src/auth/orm/skills/signOut.md deleted file mode 100644 index 7ada67374..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/signOut.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signOut - - - -Execute the signOut mutation - -## Usage - -```typescript -db.mutation.signOut({ input: '' }).execute() -``` - -## Examples - -### Run signOut - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/signUp.md b/sdk/constructive-react/src/auth/orm/skills/signUp.md deleted file mode 100644 index 8c999d2b8..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/signUp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signUp - - - -Execute the signUp mutation - -## Usage - -```typescript -db.mutation.signUp({ input: '' }).execute() -``` - -## Examples - -### Run signUp - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/user.md b/sdk/constructive-react/src/auth/orm/skills/user.md deleted file mode 100644 index e80b99583..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/user.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-user - - - -ORM operations for User records - -## Usage - -```typescript -db.user.findMany({ select: { id: true } }).execute() -db.user.findOne({ id: '', select: { id: true } }).execute() -db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() -db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() -db.user.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all user records - -```typescript -const items = await db.user.findMany({ - select: { id: true, username: true } -}).execute(); -``` - -### Create a user - -```typescript -const item = await db.user.create({ - data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/verifyEmail.md b/sdk/constructive-react/src/auth/orm/skills/verifyEmail.md deleted file mode 100644 index c9a3f4ac1..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/verifyEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyEmail - - - -Execute the verifyEmail mutation - -## Usage - -```typescript -db.mutation.verifyEmail({ input: '' }).execute() -``` - -## Examples - -### Run verifyEmail - -```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/verifyPassword.md b/sdk/constructive-react/src/auth/orm/skills/verifyPassword.md deleted file mode 100644 index 10b75c518..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/verifyPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyPassword - - - -Execute the verifyPassword mutation - -## Usage - -```typescript -db.mutation.verifyPassword({ input: '' }).execute() -``` - -## Examples - -### Run verifyPassword - -```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/orm/skills/verifyTotp.md b/sdk/constructive-react/src/auth/orm/skills/verifyTotp.md deleted file mode 100644 index 5541069f3..000000000 --- a/sdk/constructive-react/src/auth/orm/skills/verifyTotp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyTotp - - - -Execute the verifyTotp mutation - -## Usage - -```typescript -db.mutation.verifyTotp({ input: '' }).execute() -``` - -## Examples - -### Run verifyTotp - -```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 71af54297..4754d1eb9 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -82,6 +82,15 @@ export type ConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AuditLog`. */ +export type AuditLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC'; /** Methods to use when ordering `Email`. */ export type EmailOrderBy = | 'NATURAL' @@ -95,15 +104,6 @@ export type EmailOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AuditLog`. */ -export type AuditLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC'; /** Methods to use when ordering `User`. */ export type UserOrderBy = | 'NATURAL' @@ -281,123 +281,6 @@ export interface ConnectedAccountFilter { /** Negates the expression. */ not?: ConnectedAccountFilter; } -/** A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface EmailCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `ownerId` field. */ - ownerId?: string; - /** Checks for equality with the object’s `email` field. */ - email?: ConstructiveInternalTypeEmail; - /** Checks for equality with the object’s `isVerified` field. */ - isVerified?: boolean; - /** Checks for equality with the object’s `isPrimary` field. */ - isPrimary?: boolean; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeEmail; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: ConstructiveInternalTypeEmail[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: ConstructiveInternalTypeEmail[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: ConstructiveInternalTypeEmail; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} /** * A condition to be used against `AuditLog` object types. All fields are tested * for equality and combined with a logical ‘and.’ @@ -522,6 +405,123 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } +/** A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface EmailCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `ownerId` field. */ + ownerId?: string; + /** Checks for equality with the object’s `email` field. */ + email?: ConstructiveInternalTypeEmail; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: boolean; + /** Checks for equality with the object’s `isPrimary` field. */ + isPrimary?: boolean; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; +} +/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isPrimary` field. */ + isPrimary?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: EmailFilter[]; + /** Checks for any expressions in this list. */ + or?: EmailFilter[]; + /** Negates the expression. */ + not?: EmailFilter; +} +/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeEmailFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeEmail; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeEmail; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeEmail; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: ConstructiveInternalTypeEmail[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: ConstructiveInternalTypeEmail[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: ConstructiveInternalTypeEmail; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; +} /** A condition to be used against `User` object types. All fields are tested for equality and combined with a logical ‘and.’ */ export interface UserCondition { /** Checks for equality with the object’s `id` field. */ @@ -720,8 +720,11 @@ export interface CreateCryptoAddressInput { export interface CryptoAddressInput { id?: string; ownerId?: string; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address: string; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean; createdAt?: string; updatedAt?: string; @@ -735,9 +738,13 @@ export interface CreatePhoneNumberInput { export interface PhoneNumberInput { id?: string; ownerId?: string; + /** Country calling code (e.g. +1, +44) */ cc: string; + /** The phone number without country code */ number: string; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean; + /** Whether this is the user's primary phone number */ isPrimary?: boolean; createdAt?: string; updatedAt?: string; @@ -757,25 +764,11 @@ export interface ConnectedAccountInput { identifier: string; /** Additional profile details extracted from this login method */ details: unknown; + /** Whether this connected account has been verified */ isVerified?: boolean; createdAt?: string; updatedAt?: string; } -export interface CreateEmailInput { - clientMutationId?: string; - /** The `Email` to be created by this mutation. */ - email: EmailInput; -} -/** An input for mutations affecting `Email` */ -export interface EmailInput { - id?: string; - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface CreateAuditLogInput { clientMutationId?: string; /** The `AuditLog` to be created by this mutation. */ @@ -784,14 +777,39 @@ export interface CreateAuditLogInput { /** An input for mutations affecting `AuditLog` */ export interface AuditLogInput { id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; + /** User who performed the authentication action */ actorId?: string; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ userAgent?: string; + /** IP address of the client that initiated the auth event */ ipAddress?: string; + /** Whether the authentication attempt succeeded */ success: boolean; + /** Timestamp when the audit event was recorded */ createdAt?: string; } +export interface CreateEmailInput { + clientMutationId?: string; + /** The `Email` to be created by this mutation. */ + email: EmailInput; +} +/** An input for mutations affecting `Email` */ +export interface EmailInput { + id?: string; + ownerId?: string; + /** The email address */ + email: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} export interface CreateUserInput { clientMutationId?: string; /** The `User` to be created by this mutation. */ @@ -829,8 +847,11 @@ export interface UpdateCryptoAddressInput { export interface CryptoAddressPatch { id?: string; ownerId?: string; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean; createdAt?: string; updatedAt?: string; @@ -845,9 +866,13 @@ export interface UpdatePhoneNumberInput { export interface PhoneNumberPatch { id?: string; ownerId?: string; + /** Country calling code (e.g. +1, +44) */ cc?: string; + /** The phone number without country code */ number?: string; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean; + /** Whether this is the user's primary phone number */ isPrimary?: boolean; createdAt?: string; updatedAt?: string; @@ -868,26 +893,11 @@ export interface ConnectedAccountPatch { identifier?: string; /** Additional profile details extracted from this login method */ details?: unknown; + /** Whether this connected account has been verified */ isVerified?: boolean; createdAt?: string; updatedAt?: string; } -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Email` being updated. */ - emailPatch: EmailPatch; -} -/** Represents an update to a `Email`. Fields that are set will be updated. */ -export interface EmailPatch { - id?: string; - ownerId?: string; - email?: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface UpdateAuditLogInput { clientMutationId?: string; id: string; @@ -897,13 +907,39 @@ export interface UpdateAuditLogInput { /** Represents an update to a `AuditLog`. Fields that are set will be updated. */ export interface AuditLogPatch { id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string; + /** User who performed the authentication action */ actorId?: string; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ userAgent?: string; + /** IP address of the client that initiated the auth event */ ipAddress?: string; + /** Whether the authentication attempt succeeded */ success?: boolean; + /** Timestamp when the audit event was recorded */ + createdAt?: string; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Email` being updated. */ + emailPatch: EmailPatch; +} +/** Represents an update to a `Email`. Fields that are set will be updated. */ +export interface EmailPatch { + id?: string; + ownerId?: string; + /** The email address */ + email?: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; createdAt?: string; + updatedAt?: string; } export interface UpdateUserInput { clientMutationId?: string; @@ -921,6 +957,8 @@ export interface UserPatch { type?: number; createdAt?: string; updatedAt?: string; + /** File upload for the `profilePicture` field. */ + profilePictureUpload?: File; } export interface DeleteRoleTypeInput { clientMutationId?: string; @@ -938,11 +976,11 @@ export interface DeleteConnectedAccountInput { clientMutationId?: string; id: string; } -export interface DeleteEmailInput { +export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } -export interface DeleteAuditLogInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } @@ -978,13 +1016,6 @@ export interface ConnectedAccountConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Email` values. */ -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AuditLog` values. */ export interface AuditLogConnection { nodes: AuditLog[]; @@ -992,6 +1023,13 @@ export interface AuditLogConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Email` values. */ +export interface EmailConnection { + nodes: Email[]; + edges: EmailEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `User` values. */ export interface UserConnection { nodes: User[]; @@ -1088,18 +1126,18 @@ export interface CreateConnectedAccountPayload { connectedAccount?: ConnectedAccount | null; connectedAccountEdge?: ConnectedAccountEdge | null; } -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ auditLog?: AuditLog | null; auditLogEdge?: AuditLogEdge | null; } +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -1130,18 +1168,18 @@ export interface UpdateConnectedAccountPayload { connectedAccount?: ConnectedAccount | null; connectedAccountEdge?: ConnectedAccountEdge | null; } -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface UpdateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was updated by this mutation. */ auditLog?: AuditLog | null; auditLogEdge?: AuditLogEdge | null; } +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} export interface UpdateUserPayload { clientMutationId?: string | null; /** The `User` that was updated by this mutation. */ @@ -1172,18 +1210,18 @@ export interface DeleteConnectedAccountPayload { connectedAccount?: ConnectedAccount | null; connectedAccountEdge?: ConnectedAccountEdge | null; } -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface DeleteAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was deleted by this mutation. */ auditLog?: AuditLog | null; auditLogEdge?: AuditLogEdge | null; } +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} export interface DeleteUserPayload { clientMutationId?: string | null; /** The `User` that was deleted by this mutation. */ @@ -1225,18 +1263,18 @@ export interface ConnectedAccountEdge { /** The `ConnectedAccount` at the end of the edge. */ node?: ConnectedAccount | null; } -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; /** The `AuditLog` at the end of the edge. */ node?: AuditLog | null; } +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; @@ -1286,18 +1324,30 @@ export interface ExtendTokenExpiresRecord { sessionId?: string | null; expiresAt?: string | null; } +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; diff --git a/sdk/constructive-react/src/auth/types.ts b/sdk/constructive-react/src/auth/types.ts index 400bc21ad..a14c9a9ba 100644 --- a/sdk/constructive-react/src/auth/types.ts +++ b/sdk/constructive-react/src/auth/types.ts @@ -39,15 +39,6 @@ export interface ConnectedAccount { createdAt: string | null; updatedAt: string | null; } -export interface Email { - id: string | null; - ownerId: string | null; - email: ConstructiveInternalTypeEmail | null; - isVerified: boolean | null; - isPrimary: boolean | null; - createdAt: string | null; - updatedAt: string | null; -} export interface AuditLog { id: string | null; event: string | null; @@ -58,6 +49,15 @@ export interface AuditLog { success: boolean | null; createdAt: string | null; } +export interface Email { + id: string | null; + ownerId: string | null; + email: ConstructiveInternalTypeEmail | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} export interface User { id: string | null; username: string | null; diff --git a/sdk/constructive-react/src/objects/orm/skills/commit.md b/sdk/constructive-react/src/objects/orm/skills/commit.md deleted file mode 100644 index 85ded9d62..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -db.commit.findMany({ select: { id: true } }).execute() -db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() -db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() -db.commit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all commit records - -```typescript -const items = await db.commit.findMany({ - select: { id: true, message: true } -}).execute(); -``` - -### Create a commit - -```typescript -const item = await db.commit.create({ - data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/freezeObjects.md b/sdk/constructive-react/src/objects/orm/skills/freezeObjects.md deleted file mode 100644 index b3f195547..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/freezeObjects.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```typescript -db.mutation.freezeObjects({ input: '' }).execute() -``` - -## Examples - -### Run freezeObjects - -```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/getAllObjectsFromRoot.md b/sdk/constructive-react/src/objects/orm/skills/getAllObjectsFromRoot.md deleted file mode 100644 index 71c5db4db..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/getAllObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getAllObjectsFromRoot - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/getAllRecord.md b/sdk/constructive-react/src/objects/orm/skills/getAllRecord.md deleted file mode 100644 index 9c61daad2..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/getAllRecord.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-getAllRecord - - - -ORM operations for GetAllRecord records - -## Usage - -```typescript -db.getAllRecord.findMany({ select: { id: true } }).execute() -db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() -db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() -db.getAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all getAllRecord records - -```typescript -const items = await db.getAllRecord.findMany({ - select: { id: true, path: true } -}).execute(); -``` - -### Create a getAllRecord - -```typescript -const item = await db.getAllRecord.create({ - data: { path: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/getObjectAtPath.md b/sdk/constructive-react/src/objects/orm/skills/getObjectAtPath.md deleted file mode 100644 index 820b6d5fc..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/getObjectAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() -``` - -## Examples - -### Run getObjectAtPath - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/getPathObjectsFromRoot.md b/sdk/constructive-react/src/objects/orm/skills/getPathObjectsFromRoot.md deleted file mode 100644 index 954943d90..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/getPathObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getPathObjectsFromRoot - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/initEmptyRepo.md b/sdk/constructive-react/src/objects/orm/skills/initEmptyRepo.md deleted file mode 100644 index 43a46841f..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/initEmptyRepo.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-initEmptyRepo - - - -Execute the initEmptyRepo mutation - -## Usage - -```typescript -db.mutation.initEmptyRepo({ input: '' }).execute() -``` - -## Examples - -### Run initEmptyRepo - -```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/insertNodeAtPath.md b/sdk/constructive-react/src/objects/orm/skills/insertNodeAtPath.md deleted file mode 100644 index 2e9db15a0..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/insertNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-insertNodeAtPath - - - -Execute the insertNodeAtPath mutation - -## Usage - -```typescript -db.mutation.insertNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run insertNodeAtPath - -```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/object.md b/sdk/constructive-react/src/objects/orm/skills/object.md deleted file mode 100644 index e006a0b5a..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-object - - - -ORM operations for Object records - -## Usage - -```typescript -db.object.findMany({ select: { id: true } }).execute() -db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() -db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() -db.object.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all object records - -```typescript -const items = await db.object.findMany({ - select: { id: true, hashUuid: true } -}).execute(); -``` - -### Create a object - -```typescript -const item = await db.object.create({ - data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/ref.md b/sdk/constructive-react/src/objects/orm/skills/ref.md deleted file mode 100644 index 3165ec41e..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -db.ref.findMany({ select: { id: true } }).execute() -db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() -db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.ref.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all ref records - -```typescript -const items = await db.ref.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a ref - -```typescript -const item = await db.ref.create({ - data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/removeNodeAtPath.md b/sdk/constructive-react/src/objects/orm/skills/removeNodeAtPath.md deleted file mode 100644 index 116c41c0a..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/removeNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```typescript -db.mutation.removeNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run removeNodeAtPath - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/revParse.md b/sdk/constructive-react/src/objects/orm/skills/revParse.md deleted file mode 100644 index 0a1830ff8..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/revParse.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-revParse - - - -Execute the revParse query - -## Usage - -```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() -``` - -## Examples - -### Run revParse - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/setAndCommit.md b/sdk/constructive-react/src/objects/orm/skills/setAndCommit.md deleted file mode 100644 index a5fa6e0d9..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/setAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setAndCommit - - - -Execute the setAndCommit mutation - -## Usage - -```typescript -db.mutation.setAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setAndCommit - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/setDataAtPath.md b/sdk/constructive-react/src/objects/orm/skills/setDataAtPath.md deleted file mode 100644 index 7f09dab97..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/setDataAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setDataAtPath - - - -Execute the setDataAtPath mutation - -## Usage - -```typescript -db.mutation.setDataAtPath({ input: '' }).execute() -``` - -## Examples - -### Run setDataAtPath - -```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/setPropsAndCommit.md b/sdk/constructive-react/src/objects/orm/skills/setPropsAndCommit.md deleted file mode 100644 index 7248c0e1c..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/setPropsAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```typescript -db.mutation.setPropsAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setPropsAndCommit - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/store.md b/sdk/constructive-react/src/objects/orm/skills/store.md deleted file mode 100644 index 1a9bfc8a5..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -db.store.findMany({ select: { id: true } }).execute() -db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() -db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.store.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all store records - -```typescript -const items = await db.store.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a store - -```typescript -const item = await db.store.create({ - data: { name: 'value', databaseId: 'value', hash: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/objects/orm/skills/updateNodeAtPath.md b/sdk/constructive-react/src/objects/orm/skills/updateNodeAtPath.md deleted file mode 100644 index d1a7bbf95..000000000 --- a/sdk/constructive-react/src/objects/orm/skills/updateNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```typescript -db.mutation.updateNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run updateNodeAtPath - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/README.md b/sdk/constructive-react/src/public/README.md index 27db180e0..eb26399c2 100644 --- a/sdk/constructive-react/src/public/README.md +++ b/sdk/constructive-react/src/public/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 99 -- **Custom queries:** 18 +- **Tables:** 104 +- **Custom queries:** 19 - **Custom mutations:** 31 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index 596e44489..73194c5a3 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -32,28 +32,32 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useOrgGetManagersQuery` | Query | List all orgGetManagers | +| `useCreateOrgGetManagersRecordMutation` | Mutation | Create a orgGetManagersRecord | +| `useOrgGetSubordinatesQuery` | Query | List all orgGetSubordinates | +| `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | | `useGetAllQuery` | Query | List all getAll | | `useCreateGetAllRecordMutation` | Mutation | Create a getAllRecord | -| `useAppPermissionsQuery` | Query | List all appPermissions | -| `useAppPermissionQuery` | Query | Get one appPermission | -| `useCreateAppPermissionMutation` | Mutation | Create a appPermission | -| `useUpdateAppPermissionMutation` | Mutation | Update a appPermission | -| `useDeleteAppPermissionMutation` | Mutation | Delete a appPermission | -| `useOrgPermissionsQuery` | Query | List all orgPermissions | -| `useOrgPermissionQuery` | Query | Get one orgPermission | -| `useCreateOrgPermissionMutation` | Mutation | Create a orgPermission | -| `useUpdateOrgPermissionMutation` | Mutation | Update a orgPermission | -| `useDeleteOrgPermissionMutation` | Mutation | Delete a orgPermission | +| `useAppPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useAppPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useCreateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useUpdateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useDeleteAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useOrgPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useOrgPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useCreateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useUpdateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useDeleteOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useObjectsQuery` | Query | List all objects | | `useObjectQuery` | Query | Get one object | | `useCreateObjectMutation` | Mutation | Create a object | | `useUpdateObjectMutation` | Mutation | Update a object | | `useDeleteObjectMutation` | Mutation | Delete a object | -| `useAppLevelRequirementsQuery` | Query | Requirements to achieve a level | -| `useAppLevelRequirementQuery` | Query | Requirements to achieve a level | -| `useCreateAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useUpdateAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | -| `useDeleteAppLevelRequirementMutation` | Mutation | Requirements to achieve a level | +| `useAppLevelRequirementsQuery` | Query | Defines the specific requirements that must be met to achieve a level | +| `useAppLevelRequirementQuery` | Query | Defines the specific requirements that must be met to achieve a level | +| `useCreateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `useUpdateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | +| `useDeleteAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | | `useDatabasesQuery` | Query | List all databases | | `useDatabaseQuery` | Query | Get one database | | `useCreateDatabaseMutation` | Mutation | Create a database | @@ -94,11 +98,6 @@ function App() { | `useCreateIndexMutation` | Mutation | Create a index | | `useUpdateIndexMutation` | Mutation | Update a index | | `useDeleteIndexMutation` | Mutation | Delete a index | -| `useLimitFunctionsQuery` | Query | List all limitFunctions | -| `useLimitFunctionQuery` | Query | Get one limitFunction | -| `useCreateLimitFunctionMutation` | Mutation | Create a limitFunction | -| `useUpdateLimitFunctionMutation` | Mutation | Update a limitFunction | -| `useDeleteLimitFunctionMutation` | Mutation | Delete a limitFunction | | `usePoliciesQuery` | Query | List all policies | | `usePolicyQuery` | Query | Get one policy | | `useCreatePolicyMutation` | Mutation | Create a policy | @@ -154,66 +153,111 @@ function App() { | `useCreateTableTemplateModuleMutation` | Mutation | Create a tableTemplateModule | | `useUpdateTableTemplateModuleMutation` | Mutation | Update a tableTemplateModule | | `useDeleteTableTemplateModuleMutation` | Mutation | Delete a tableTemplateModule | +| `useSecureTableProvisionsQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useSecureTableProvisionQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useCreateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useUpdateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useDeleteSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useRelationProvisionsQuery` | Query | Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. | +| `useRelationProvisionQuery` | Query | Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. | +| `useCreateRelationProvisionMutation` | Mutation | Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. | +| `useUpdateRelationProvisionMutation` | Mutation | Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. | +| `useDeleteRelationProvisionMutation` | Mutation | Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. | | `useSchemaGrantsQuery` | Query | List all schemaGrants | | `useSchemaGrantQuery` | Query | Get one schemaGrant | | `useCreateSchemaGrantMutation` | Mutation | Create a schemaGrant | | `useUpdateSchemaGrantMutation` | Mutation | Update a schemaGrant | | `useDeleteSchemaGrantMutation` | Mutation | Delete a schemaGrant | -| `useApiSchemasQuery` | Query | List all apiSchemas | -| `useApiSchemaQuery` | Query | Get one apiSchema | -| `useCreateApiSchemaMutation` | Mutation | Create a apiSchema | -| `useUpdateApiSchemaMutation` | Mutation | Update a apiSchema | -| `useDeleteApiSchemaMutation` | Mutation | Delete a apiSchema | -| `useApiModulesQuery` | Query | List all apiModules | -| `useApiModuleQuery` | Query | Get one apiModule | -| `useCreateApiModuleMutation` | Mutation | Create a apiModule | -| `useUpdateApiModuleMutation` | Mutation | Update a apiModule | -| `useDeleteApiModuleMutation` | Mutation | Delete a apiModule | -| `useDomainsQuery` | Query | List all domains | -| `useDomainQuery` | Query | Get one domain | -| `useCreateDomainMutation` | Mutation | Create a domain | -| `useUpdateDomainMutation` | Mutation | Update a domain | -| `useDeleteDomainMutation` | Mutation | Delete a domain | -| `useSiteMetadataQuery` | Query | List all siteMetadata | -| `useSiteMetadatumQuery` | Query | Get one siteMetadatum | -| `useCreateSiteMetadatumMutation` | Mutation | Create a siteMetadatum | -| `useUpdateSiteMetadatumMutation` | Mutation | Update a siteMetadatum | -| `useDeleteSiteMetadatumMutation` | Mutation | Delete a siteMetadatum | -| `useSiteModulesQuery` | Query | List all siteModules | -| `useSiteModuleQuery` | Query | Get one siteModule | -| `useCreateSiteModuleMutation` | Mutation | Create a siteModule | -| `useUpdateSiteModuleMutation` | Mutation | Update a siteModule | -| `useDeleteSiteModuleMutation` | Mutation | Delete a siteModule | -| `useSiteThemesQuery` | Query | List all siteThemes | -| `useSiteThemeQuery` | Query | Get one siteTheme | -| `useCreateSiteThemeMutation` | Mutation | Create a siteTheme | -| `useUpdateSiteThemeMutation` | Mutation | Update a siteTheme | -| `useDeleteSiteThemeMutation` | Mutation | Delete a siteTheme | -| `useProceduresQuery` | Query | List all procedures | -| `useProcedureQuery` | Query | Get one procedure | -| `useCreateProcedureMutation` | Mutation | Create a procedure | -| `useUpdateProcedureMutation` | Mutation | Update a procedure | -| `useDeleteProcedureMutation` | Mutation | Delete a procedure | +| `useDefaultPrivilegesQuery` | Query | List all defaultPrivileges | +| `useDefaultPrivilegeQuery` | Query | Get one defaultPrivilege | +| `useCreateDefaultPrivilegeMutation` | Mutation | Create a defaultPrivilege | +| `useUpdateDefaultPrivilegeMutation` | Mutation | Update a defaultPrivilege | +| `useDeleteDefaultPrivilegeMutation` | Mutation | Delete a defaultPrivilege | +| `useApiSchemasQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useApiSchemaQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useCreateApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useUpdateApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useDeleteApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useApiModulesQuery` | Query | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useApiModuleQuery` | Query | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useCreateApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useUpdateApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useDeleteApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useDomainsQuery` | Query | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useDomainQuery` | Query | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useCreateDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useUpdateDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useDeleteDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useSiteMetadataQuery` | Query | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useSiteMetadatumQuery` | Query | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useCreateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useUpdateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useDeleteSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useSiteModulesQuery` | Query | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useSiteModuleQuery` | Query | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useCreateSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useUpdateSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useDeleteSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useSiteThemesQuery` | Query | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useSiteThemeQuery` | Query | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useCreateSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useUpdateSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useDeleteSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | | `useTriggerFunctionsQuery` | Query | List all triggerFunctions | | `useTriggerFunctionQuery` | Query | Get one triggerFunction | | `useCreateTriggerFunctionMutation` | Mutation | Create a triggerFunction | | `useUpdateTriggerFunctionMutation` | Mutation | Update a triggerFunction | | `useDeleteTriggerFunctionMutation` | Mutation | Delete a triggerFunction | -| `useApisQuery` | Query | List all apis | -| `useApiQuery` | Query | Get one api | -| `useCreateApiMutation` | Mutation | Create a api | -| `useUpdateApiMutation` | Mutation | Update a api | -| `useDeleteApiMutation` | Mutation | Delete a api | -| `useSitesQuery` | Query | List all sites | -| `useSiteQuery` | Query | Get one site | -| `useCreateSiteMutation` | Mutation | Create a site | -| `useUpdateSiteMutation` | Mutation | Update a site | -| `useDeleteSiteMutation` | Mutation | Delete a site | -| `useAppsQuery` | Query | List all apps | -| `useAppQuery` | Query | Get one app | -| `useCreateAppMutation` | Mutation | Create a app | -| `useUpdateAppMutation` | Mutation | Update a app | -| `useDeleteAppMutation` | Mutation | Delete a app | +| `useApisQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useApiQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useCreateApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useUpdateApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useDeleteApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useSitesQuery` | Query | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useSiteQuery` | Query | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useCreateSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useUpdateSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useDeleteSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useAppsQuery` | Query | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useAppQuery` | Query | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useCreateAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useUpdateAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useDeleteAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | | `useConnectedAccountsModulesQuery` | Query | List all connectedAccountsModules | | `useConnectedAccountsModuleQuery` | Query | Get one connectedAccountsModule | | `useCreateConnectedAccountsModuleMutation` | Mutation | Create a connectedAccountsModule | @@ -329,91 +373,96 @@ function App() { | `useCreateDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | | `useUpdateDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | | `useDeleteDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | -| `useAppAdminGrantsQuery` | Query | List all appAdminGrants | -| `useAppAdminGrantQuery` | Query | Get one appAdminGrant | -| `useCreateAppAdminGrantMutation` | Mutation | Create a appAdminGrant | -| `useUpdateAppAdminGrantMutation` | Mutation | Update a appAdminGrant | -| `useDeleteAppAdminGrantMutation` | Mutation | Delete a appAdminGrant | -| `useAppOwnerGrantsQuery` | Query | List all appOwnerGrants | -| `useAppOwnerGrantQuery` | Query | Get one appOwnerGrant | -| `useCreateAppOwnerGrantMutation` | Mutation | Create a appOwnerGrant | -| `useUpdateAppOwnerGrantMutation` | Mutation | Update a appOwnerGrant | -| `useDeleteAppOwnerGrantMutation` | Mutation | Delete a appOwnerGrant | -| `useAppGrantsQuery` | Query | List all appGrants | -| `useAppGrantQuery` | Query | Get one appGrant | -| `useCreateAppGrantMutation` | Mutation | Create a appGrant | -| `useUpdateAppGrantMutation` | Mutation | Update a appGrant | -| `useDeleteAppGrantMutation` | Mutation | Delete a appGrant | -| `useOrgMembershipsQuery` | Query | List all orgMemberships | -| `useOrgMembershipQuery` | Query | Get one orgMembership | -| `useCreateOrgMembershipMutation` | Mutation | Create a orgMembership | -| `useUpdateOrgMembershipMutation` | Mutation | Update a orgMembership | -| `useDeleteOrgMembershipMutation` | Mutation | Delete a orgMembership | -| `useOrgMembersQuery` | Query | List all orgMembers | -| `useOrgMemberQuery` | Query | Get one orgMember | -| `useCreateOrgMemberMutation` | Mutation | Create a orgMember | -| `useUpdateOrgMemberMutation` | Mutation | Update a orgMember | -| `useDeleteOrgMemberMutation` | Mutation | Delete a orgMember | -| `useOrgAdminGrantsQuery` | Query | List all orgAdminGrants | -| `useOrgAdminGrantQuery` | Query | Get one orgAdminGrant | -| `useCreateOrgAdminGrantMutation` | Mutation | Create a orgAdminGrant | -| `useUpdateOrgAdminGrantMutation` | Mutation | Update a orgAdminGrant | -| `useDeleteOrgAdminGrantMutation` | Mutation | Delete a orgAdminGrant | -| `useOrgOwnerGrantsQuery` | Query | List all orgOwnerGrants | -| `useOrgOwnerGrantQuery` | Query | Get one orgOwnerGrant | -| `useCreateOrgOwnerGrantMutation` | Mutation | Create a orgOwnerGrant | -| `useUpdateOrgOwnerGrantMutation` | Mutation | Update a orgOwnerGrant | -| `useDeleteOrgOwnerGrantMutation` | Mutation | Delete a orgOwnerGrant | -| `useOrgGrantsQuery` | Query | List all orgGrants | -| `useOrgGrantQuery` | Query | Get one orgGrant | -| `useCreateOrgGrantMutation` | Mutation | Create a orgGrant | -| `useUpdateOrgGrantMutation` | Mutation | Update a orgGrant | -| `useDeleteOrgGrantMutation` | Mutation | Delete a orgGrant | -| `useAppLimitsQuery` | Query | List all appLimits | -| `useAppLimitQuery` | Query | Get one appLimit | -| `useCreateAppLimitMutation` | Mutation | Create a appLimit | -| `useUpdateAppLimitMutation` | Mutation | Update a appLimit | -| `useDeleteAppLimitMutation` | Mutation | Delete a appLimit | -| `useOrgLimitsQuery` | Query | List all orgLimits | -| `useOrgLimitQuery` | Query | Get one orgLimit | -| `useCreateOrgLimitMutation` | Mutation | Create a orgLimit | -| `useUpdateOrgLimitMutation` | Mutation | Update a orgLimit | -| `useDeleteOrgLimitMutation` | Mutation | Delete a orgLimit | -| `useAppStepsQuery` | Query | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useAppStepQuery` | Query | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useCreateAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useUpdateAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useDeleteAppStepMutation` | Mutation | The user achieving a requirement for a level. Log table that has every single step ever taken. | -| `useAppAchievementsQuery` | Query | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useAppAchievementQuery` | Query | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useCreateAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useUpdateAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useDeleteAppAchievementMutation` | Mutation | This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. | -| `useInvitesQuery` | Query | List all invites | -| `useInviteQuery` | Query | Get one invite | -| `useCreateInviteMutation` | Mutation | Create a invite | -| `useUpdateInviteMutation` | Mutation | Update a invite | -| `useDeleteInviteMutation` | Mutation | Delete a invite | -| `useClaimedInvitesQuery` | Query | List all claimedInvites | -| `useClaimedInviteQuery` | Query | Get one claimedInvite | -| `useCreateClaimedInviteMutation` | Mutation | Create a claimedInvite | -| `useUpdateClaimedInviteMutation` | Mutation | Update a claimedInvite | -| `useDeleteClaimedInviteMutation` | Mutation | Delete a claimedInvite | -| `useOrgInvitesQuery` | Query | List all orgInvites | -| `useOrgInviteQuery` | Query | Get one orgInvite | -| `useCreateOrgInviteMutation` | Mutation | Create a orgInvite | -| `useUpdateOrgInviteMutation` | Mutation | Update a orgInvite | -| `useDeleteOrgInviteMutation` | Mutation | Delete a orgInvite | -| `useOrgClaimedInvitesQuery` | Query | List all orgClaimedInvites | -| `useOrgClaimedInviteQuery` | Query | Get one orgClaimedInvite | -| `useCreateOrgClaimedInviteMutation` | Mutation | Create a orgClaimedInvite | -| `useUpdateOrgClaimedInviteMutation` | Mutation | Update a orgClaimedInvite | -| `useDeleteOrgClaimedInviteMutation` | Mutation | Delete a orgClaimedInvite | -| `useAppPermissionDefaultsQuery` | Query | List all appPermissionDefaults | -| `useAppPermissionDefaultQuery` | Query | Get one appPermissionDefault | -| `useCreateAppPermissionDefaultMutation` | Mutation | Create a appPermissionDefault | -| `useUpdateAppPermissionDefaultMutation` | Mutation | Update a appPermissionDefault | -| `useDeleteAppPermissionDefaultMutation` | Mutation | Delete a appPermissionDefault | +| `useAppAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | +| `useAppAdminGrantQuery` | Query | Records of admin role grants and revocations between members | +| `useCreateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useUpdateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useAppOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useAppOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useAppGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useAppGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useCreateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useUpdateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useDeleteAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useOrgMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useOrgMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useCreateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useUpdateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useDeleteOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useOrgMembersQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useOrgMemberQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useCreateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useUpdateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useDeleteOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | +| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | +| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | +| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useOrgGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useOrgGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | +| `useCreateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useUpdateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useDeleteOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useUpdateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useDeleteOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useAppStepsQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useAppStepQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useCreateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useUpdateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useDeleteAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | +| `useAppAchievementsQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useAppAchievementQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useCreateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useUpdateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useDeleteAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useCreateClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useUpdateClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useDeleteClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useOrgInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useOrgInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useOrgClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useOrgClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useCreateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useRefsQuery` | Query | A ref is a data structure for pointing to a commit. | | `useRefQuery` | Query | A ref is a data structure for pointing to a commit. | | `useCreateRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | @@ -424,81 +473,86 @@ function App() { | `useCreateStoreMutation` | Mutation | A store represents an isolated object repository within a database. | | `useUpdateStoreMutation` | Mutation | A store represents an isolated object repository within a database. | | `useDeleteStoreMutation` | Mutation | A store represents an isolated object repository within a database. | +| `useAppPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useAppPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useRoleTypesQuery` | Query | List all roleTypes | | `useRoleTypeQuery` | Query | Get one roleType | | `useCreateRoleTypeMutation` | Mutation | Create a roleType | | `useUpdateRoleTypeMutation` | Mutation | Update a roleType | | `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | -| `useOrgPermissionDefaultsQuery` | Query | List all orgPermissionDefaults | -| `useOrgPermissionDefaultQuery` | Query | Get one orgPermissionDefault | -| `useCreateOrgPermissionDefaultMutation` | Mutation | Create a orgPermissionDefault | -| `useUpdateOrgPermissionDefaultMutation` | Mutation | Update a orgPermissionDefault | -| `useDeleteOrgPermissionDefaultMutation` | Mutation | Delete a orgPermissionDefault | -| `useAppLimitDefaultsQuery` | Query | List all appLimitDefaults | -| `useAppLimitDefaultQuery` | Query | Get one appLimitDefault | -| `useCreateAppLimitDefaultMutation` | Mutation | Create a appLimitDefault | -| `useUpdateAppLimitDefaultMutation` | Mutation | Update a appLimitDefault | -| `useDeleteAppLimitDefaultMutation` | Mutation | Delete a appLimitDefault | -| `useOrgLimitDefaultsQuery` | Query | List all orgLimitDefaults | -| `useOrgLimitDefaultQuery` | Query | Get one orgLimitDefault | -| `useCreateOrgLimitDefaultMutation` | Mutation | Create a orgLimitDefault | -| `useUpdateOrgLimitDefaultMutation` | Mutation | Update a orgLimitDefault | -| `useDeleteOrgLimitDefaultMutation` | Mutation | Delete a orgLimitDefault | -| `useCryptoAddressesQuery` | Query | List all cryptoAddresses | -| `useCryptoAddressQuery` | Query | Get one cryptoAddress | -| `useCreateCryptoAddressMutation` | Mutation | Create a cryptoAddress | -| `useUpdateCryptoAddressMutation` | Mutation | Update a cryptoAddress | -| `useDeleteCryptoAddressMutation` | Mutation | Delete a cryptoAddress | -| `useMembershipTypesQuery` | Query | List all membershipTypes | -| `useMembershipTypeQuery` | Query | Get one membershipType | -| `useCreateMembershipTypeMutation` | Mutation | Create a membershipType | -| `useUpdateMembershipTypeMutation` | Mutation | Update a membershipType | -| `useDeleteMembershipTypeMutation` | Mutation | Delete a membershipType | -| `useConnectedAccountsQuery` | Query | List all connectedAccounts | -| `useConnectedAccountQuery` | Query | Get one connectedAccount | -| `useCreateConnectedAccountMutation` | Mutation | Create a connectedAccount | -| `useUpdateConnectedAccountMutation` | Mutation | Update a connectedAccount | -| `useDeleteConnectedAccountMutation` | Mutation | Delete a connectedAccount | -| `usePhoneNumbersQuery` | Query | List all phoneNumbers | -| `usePhoneNumberQuery` | Query | Get one phoneNumber | -| `useCreatePhoneNumberMutation` | Mutation | Create a phoneNumber | -| `useUpdatePhoneNumberMutation` | Mutation | Update a phoneNumber | -| `useDeletePhoneNumberMutation` | Mutation | Delete a phoneNumber | -| `useAppMembershipDefaultsQuery` | Query | List all appMembershipDefaults | -| `useAppMembershipDefaultQuery` | Query | Get one appMembershipDefault | -| `useCreateAppMembershipDefaultMutation` | Mutation | Create a appMembershipDefault | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Update a appMembershipDefault | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Delete a appMembershipDefault | +| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useCryptoAddressesQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCryptoAddressQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCreateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useUpdateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useDeleteCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useConnectedAccountsQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useConnectedAccountQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useCreateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useUpdateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useDeleteConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `usePhoneNumberQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `useCreatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useUpdatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useNodeTypeRegistriesQuery` | Query | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useNodeTypeRegistryQuery` | Query | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useCreateNodeTypeRegistryMutation` | Mutation | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useUpdateNodeTypeRegistryMutation` | Mutation | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useDeleteNodeTypeRegistryMutation` | Mutation | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useCommitsQuery` | Query | A commit records changes to the repository. | | `useCommitQuery` | Query | A commit records changes to the repository. | | `useCreateCommitMutation` | Mutation | A commit records changes to the repository. | | `useUpdateCommitMutation` | Mutation | A commit records changes to the repository. | | `useDeleteCommitMutation` | Mutation | A commit records changes to the repository. | -| `useOrgMembershipDefaultsQuery` | Query | List all orgMembershipDefaults | -| `useOrgMembershipDefaultQuery` | Query | Get one orgMembershipDefault | -| `useCreateOrgMembershipDefaultMutation` | Mutation | Create a orgMembershipDefault | -| `useUpdateOrgMembershipDefaultMutation` | Mutation | Update a orgMembershipDefault | -| `useDeleteOrgMembershipDefaultMutation` | Mutation | Delete a orgMembershipDefault | -| `useEmailsQuery` | Query | List all emails | -| `useEmailQuery` | Query | Get one email | -| `useCreateEmailMutation` | Mutation | Create a email | -| `useUpdateEmailMutation` | Mutation | Update a email | -| `useDeleteEmailMutation` | Mutation | Delete a email | -| `useAuditLogsQuery` | Query | List all auditLogs | -| `useAuditLogQuery` | Query | Get one auditLog | -| `useCreateAuditLogMutation` | Mutation | Create a auditLog | -| `useUpdateAuditLogMutation` | Mutation | Update a auditLog | -| `useDeleteAuditLogMutation` | Mutation | Delete a auditLog | -| `useAppLevelsQuery` | Query | Levels for achievement | -| `useAppLevelQuery` | Query | Levels for achievement | -| `useCreateAppLevelMutation` | Mutation | Levels for achievement | -| `useUpdateAppLevelMutation` | Mutation | Levels for achievement | -| `useDeleteAppLevelMutation` | Mutation | Levels for achievement | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAuditLogsQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useAuditLogQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useCreateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useUpdateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useDeleteAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useAppLevelsQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useAppLevelQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useCreateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useUpdateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useDeleteAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useEmailsQuery` | Query | User email addresses with verification and primary-email management | +| `useEmailQuery` | Query | User email addresses with verification and primary-email management | +| `useCreateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `useSqlMigrationsQuery` | Query | List all sqlMigrations | | `useSqlMigrationQuery` | Query | Get one sqlMigration | | `useCreateSqlMigrationMutation` | Mutation | Create a sqlMigration | @@ -509,16 +563,16 @@ function App() { | `useCreateAstMigrationMutation` | Mutation | Create a astMigration | | `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | | `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | -| `useAppMembershipsQuery` | Query | List all appMemberships | -| `useAppMembershipQuery` | Query | Get one appMembership | -| `useCreateAppMembershipMutation` | Mutation | Create a appMembership | -| `useUpdateAppMembershipMutation` | Mutation | Update a appMembership | -| `useDeleteAppMembershipMutation` | Mutation | Delete a appMembership | | `useUsersQuery` | Query | List all users | | `useUserQuery` | Query | Get one user | | `useCreateUserMutation` | Mutation | Create a user | | `useUpdateUserMutation` | Mutation | Update a user | | `useDeleteUserMutation` | Mutation | Delete a user | +| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useHierarchyModulesQuery` | Query | List all hierarchyModules | | `useHierarchyModuleQuery` | Query | Get one hierarchyModule | | `useCreateHierarchyModuleMutation` | Mutation | Create a hierarchyModule | @@ -531,6 +585,7 @@ function App() { | `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | | `useStepsAchievedQuery` | Query | stepsAchieved | | `useRevParseQuery` | Query | revParse | +| `useOrgIsManagerOfQuery` | Query | orgIsManagerOf | | `useAppPermissionsGetMaskQuery` | Query | appPermissionsGetMask | | `useOrgPermissionsGetMaskQuery` | Query | orgPermissionsGetMask | | `useAppPermissionsGetMaskByNamesQuery` | Query | appPermissionsGetMaskByNames | @@ -592,6 +647,36 @@ Example usage: ## Table Hooks +### OrgGetManagersRecord + +```typescript +// List all orgGetManagers +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { userId: true, depth: true } }, +}); + +// Create a orgGetManagersRecord +const { mutate: create } = useCreateOrgGetManagersRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ userId: '', depth: '' }); +``` + +### OrgGetSubordinatesRecord + +```typescript +// List all orgGetSubordinates +const { data, isLoading } = useOrgGetSubordinatesQuery({ + selection: { fields: { userId: true, depth: true } }, +}); + +// Create a orgGetSubordinatesRecord +const { mutate: create } = useCreateOrgGetSubordinatesRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ userId: '', depth: '' }); +``` + ### GetAllRecord ```typescript @@ -859,46 +944,25 @@ const { mutate: create } = useCreateIndexMutation({ create({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` -### LimitFunction - -```typescript -// List all limitFunctions -const { data, isLoading } = useLimitFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }, -}); - -// Get one limitFunction -const { data: item } = useLimitFunctionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }, -}); - -// Create a limitFunction -const { mutate: create } = useCreateLimitFunctionMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }); -``` - ### Policy ```typescript // List all policies const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, roleName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one policy const { data: item } = usePolicyQuery({ id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, roleName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a policy const { mutate: create } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` ### PrimaryKeyConstraint @@ -927,20 +991,20 @@ create({ databaseId: '', tableId: '', name: '', type: '', - selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, }); // Create a tableGrant const { mutate: create } = useCreateTableGrantMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }); +create({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }); ``` ### Trigger @@ -1032,20 +1096,20 @@ create({ viewId: '', tableId: '', joinOrder: '' }); ```typescript // List all viewGrants const { data, isLoading } = useViewGrantsQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, }); // Get one viewGrant const { data: item } = useViewGrantQuery({ id: '', - selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, }); // Create a viewGrant const { mutate: create } = useCreateViewGrantMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }); +create({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }); ``` ### ViewRule @@ -1074,20 +1138,20 @@ create({ databaseId: '', viewId: '', name: '', event: '', - selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }, }); // Create a tableModule const { mutate: create } = useCreateTableModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }); ``` ### TableTemplateModule @@ -1111,6 +1175,48 @@ const { mutate: create } = useCreateTableTemplateModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }); ``` +### SecureTableProvision + +```typescript +// List all secureTableProvisions +const { data, isLoading } = useSecureTableProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }, +}); + +// Get one secureTableProvision +const { data: item } = useSecureTableProvisionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }, +}); + +// Create a secureTableProvision +const { mutate: create } = useCreateSecureTableProvisionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }); +``` + +### RelationProvision + +```typescript +// List all relationProvisions +const { data, isLoading } = useRelationProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, +}); + +// Get one relationProvision +const { data: item } = useRelationProvisionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, +}); + +// Create a relationProvision +const { mutate: create } = useCreateRelationProvisionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); +``` + ### SchemaGrant ```typescript @@ -1132,6 +1238,27 @@ const { mutate: create } = useCreateSchemaGrantMutation({ create({ databaseId: '', schemaId: '', granteeName: '' }); ``` +### DefaultPrivilege + +```typescript +// List all defaultPrivileges +const { data, isLoading } = useDefaultPrivilegesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, +}); + +// Get one defaultPrivilege +const { data: item } = useDefaultPrivilegeQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, +}); + +// Create a defaultPrivilege +const { mutate: create } = useCreateDefaultPrivilegeMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }); +``` + ### ApiSchema ```typescript @@ -1258,27 +1385,6 @@ const { mutate: create } = useCreateSiteThemeMutation({ create({ databaseId: '', siteId: '', theme: '' }); ``` -### Procedure - -```typescript -// List all procedures -const { data, isLoading } = useProceduresQuery({ - selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Get one procedure -const { data: item } = useProcedureQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Create a procedure -const { mutate: create } = useCreateProcedureMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` - ### TriggerFunction ```typescript @@ -1683,20 +1789,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all profilesModules const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); // Get one profilesModule const { data: item } = useProfilesModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); // Create a profilesModule const { mutate: create } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); ``` ### RlsModule @@ -1914,20 +2020,20 @@ create({ permissions: '', isGrant: '', actorId: '', grantor ```typescript // List all orgMemberships const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); // Get one orgMembership const { data: item } = useOrgMembershipQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); // Create a orgMembership const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); ``` ### OrgMember @@ -2014,6 +2120,48 @@ const { mutate: create } = useCreateOrgGrantMutation({ create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` +### OrgChartEdge + +```typescript +// List all orgChartEdges +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); + +// Get one orgChartEdge +const { data: item } = useOrgChartEdgeQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); + +// Create a orgChartEdge +const { mutate: create } = useCreateOrgChartEdgeMutation({ + selection: { fields: { id: true } }, +}); +create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); +``` + +### OrgChartEdgeGrant + +```typescript +// List all orgChartEdgeGrants +const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); + +// Get one orgChartEdgeGrant +const { data: item } = useOrgChartEdgeGrantQuery({ + id: '', + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); + +// Create a orgChartEdgeGrant +const { mutate: create } = useCreateOrgChartEdgeGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); +``` + ### AppLimit ```typescript @@ -2182,27 +2330,6 @@ const { mutate: create } = useCreateOrgClaimedInviteMutation({ create({ data: '', senderId: '', receiverId: '', entityId: '' }); ``` -### AppPermissionDefault - -```typescript -// List all appPermissionDefaults -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, -}); - -// Get one appPermissionDefault -const { data: item } = useAppPermissionDefaultQuery({ - id: '', - selection: { fields: { id: true, permissions: true } }, -}); - -// Create a appPermissionDefault -const { mutate: create } = useCreateAppPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ permissions: '' }); -``` - ### Ref ```typescript @@ -2245,6 +2372,27 @@ const { mutate: create } = useCreateStoreMutation({ create({ name: '', databaseId: '', hash: '' }); ``` +### AppPermissionDefault + +```typescript +// List all appPermissionDefaults +const { data, isLoading } = useAppPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true } }, +}); + +// Get one appPermissionDefault +const { data: item } = useAppPermissionDefaultQuery({ + id: '', + selection: { fields: { id: true, permissions: true } }, +}); + +// Create a appPermissionDefault +const { mutate: create } = useCreateAppPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '' }); +``` + ### RoleType ```typescript @@ -2287,6 +2435,27 @@ const { mutate: create } = useCreateOrgPermissionDefaultMutation({ create({ permissions: '', entityId: '' }); ``` +### CryptoAddress + +```typescript +// List all cryptoAddresses +const { data, isLoading } = useCryptoAddressesQuery({ + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Get one cryptoAddress +const { data: item } = useCryptoAddressQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Create a cryptoAddress +const { mutate: create } = useCreateCryptoAddressMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); +``` + ### AppLimitDefault ```typescript @@ -2329,48 +2498,6 @@ const { mutate: create } = useCreateOrgLimitDefaultMutation({ create({ name: '', max: '' }); ``` -### CryptoAddress - -```typescript -// List all cryptoAddresses -const { data, isLoading } = useCryptoAddressesQuery({ - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Get one cryptoAddress -const { data: item } = useCryptoAddressQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Create a cryptoAddress -const { mutate: create } = useCreateCryptoAddressMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); -``` - -### MembershipType - -```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true } }, -}); - -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true } }, -}); - -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', description: '', prefix: '' }); -``` - ### ConnectedAccount ```typescript @@ -2413,25 +2540,25 @@ const { mutate: create } = useCreatePhoneNumberMutation({ create({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); ``` -### AppMembershipDefault +### MembershipType ```typescript -// List all appMembershipDefaults -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +// List all membershipTypes +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true } }, }); -// Get one appMembershipDefault -const { data: item } = useAppMembershipDefaultQuery({ +// Get one membershipType +const { data: item } = useMembershipTypeQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, + selection: { fields: { id: true, name: true, description: true, prefix: true } }, }); -// Create a appMembershipDefault -const { mutate: create } = useCreateAppMembershipDefaultMutation({ +// Create a membershipType +const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +create({ name: '', description: '', prefix: '' }); ``` ### NodeTypeRegistry @@ -2455,6 +2582,27 @@ const { mutate: create } = useCreateNodeTypeRegistryMutation({ create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); ``` +### AppMembershipDefault + +```typescript +// List all appMembershipDefaults +const { data, isLoading } = useAppMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +}); + +// Get one appMembershipDefault +const { data: item } = useAppMembershipDefaultQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +}); + +// Create a appMembershipDefault +const { mutate: create } = useCreateAppMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +``` + ### Commit ```typescript @@ -2497,27 +2645,6 @@ const { mutate: create } = useCreateOrgMembershipDefaultMutation({ create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); ``` -### Email - -```typescript -// List all emails -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Get one email -const { data: item } = useEmailQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Create a email -const { mutate: create } = useCreateEmailMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); -``` - ### AuditLog ```typescript @@ -2560,6 +2687,27 @@ const { mutate: create } = useCreateAppLevelMutation({ create({ name: '', description: '', image: '', ownerId: '' }); ``` +### Email + +```typescript +// List all emails +const { data, isLoading } = useEmailsQuery({ + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Get one email +const { data: item } = useEmailQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Create a email +const { mutate: create } = useCreateEmailMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); +``` + ### SqlMigration ```typescript @@ -2602,46 +2750,46 @@ const { mutate: create } = useCreateAstMigrationMutation({ create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` -### AppMembership +### User ```typescript -// List all appMemberships -const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, +// List all users +const { data, isLoading } = useUsersQuery({ + selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, }); -// Get one appMembership -const { data: item } = useAppMembershipQuery({ +// Get one user +const { data: item } = useUserQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, + selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, }); -// Create a appMembership -const { mutate: create } = useCreateAppMembershipMutation({ +// Create a user +const { mutate: create } = useCreateUserMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); +create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); ``` -### User +### AppMembership ```typescript -// List all users -const { data, isLoading } = useUsersQuery({ - selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, +// List all appMemberships +const { data, isLoading } = useAppMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); -// Get one user -const { data: item } = useUserQuery({ +// Get one appMembership +const { data: item } = useAppMembershipQuery({ id: '', - selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); -// Create a user -const { mutate: create } = useCreateUserMutation({ +// Create a appMembership +const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### HierarchyModule @@ -2735,6 +2883,20 @@ revParse | `storeId` | UUID | | `refname` | String | +### `useOrgIsManagerOfQuery` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + ### `useAppPermissionsGetMaskQuery` appPermissionsGetMask diff --git a/sdk/constructive-react/src/public/hooks/index.ts b/sdk/constructive-react/src/public/hooks/index.ts index 448dfaf6d..549fc38e2 100644 --- a/sdk/constructive-react/src/public/hooks/index.ts +++ b/sdk/constructive-react/src/public/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, ForeignKeyConstraint, FullTextSearch, Index, LimitFunction, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, TableModule, TableTemplateModule, SchemaGrant, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, Procedure, TriggerFunction, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, FieldModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, RlsModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, UuidModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgGrant, AppLimit, OrgLimit, AppStep, AppAchievement, Invite, ClaimedInvite, OrgInvite, OrgClaimedInvite, AppPermissionDefault, Ref, Store, RoleType, OrgPermissionDefault, AppLimitDefault, OrgLimitDefault, CryptoAddress, MembershipType, ConnectedAccount, PhoneNumber, AppMembershipDefault, NodeTypeRegistry, Commit, OrgMembershipDefault, Email, AuditLog, AppLevel, SqlMigration, AstMigration, AppMembership, User, HierarchyModule + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, TableModule, TableTemplateModule, SecureTableProvision, RelationProvision, SchemaGrant, DefaultPrivilege, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, TriggerFunction, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, FieldModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, RlsModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, UuidModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, AppLimit, OrgLimit, AppStep, AppAchievement, Invite, ClaimedInvite, OrgInvite, OrgClaimedInvite, Ref, Store, AppPermissionDefault, RoleType, OrgPermissionDefault, CryptoAddress, AppLimitDefault, OrgLimitDefault, ConnectedAccount, PhoneNumber, MembershipType, NodeTypeRegistry, AppMembershipDefault, Commit, OrgMembershipDefault, AuditLog, AppLevel, Email, SqlMigration, AstMigration, User, AppMembership, HierarchyModule * * Usage: * diff --git a/sdk/constructive-react/src/public/hooks/invalidation.ts b/sdk/constructive-react/src/public/hooks/invalidation.ts index 28d9e7c0e..c94f78832 100644 --- a/sdk/constructive-react/src/public/hooks/invalidation.ts +++ b/sdk/constructive-react/src/public/hooks/invalidation.ts @@ -15,6 +15,8 @@ import type { QueryClient } from '@tanstack/react-query'; import { + orgGetManagersRecordKeys, + orgGetSubordinatesRecordKeys, getAllRecordKeys, appPermissionKeys, orgPermissionKeys, @@ -28,7 +30,6 @@ import { foreignKeyConstraintKeys, fullTextSearchKeys, indexKeys, - limitFunctionKeys, policyKeys, primaryKeyConstraintKeys, tableGrantKeys, @@ -40,14 +41,16 @@ import { viewRuleKeys, tableModuleKeys, tableTemplateModuleKeys, + secureTableProvisionKeys, + relationProvisionKeys, schemaGrantKeys, + defaultPrivilegeKeys, apiSchemaKeys, apiModuleKeys, domainKeys, siteMetadatumKeys, siteModuleKeys, siteThemeKeys, - procedureKeys, triggerFunctionKeys, apiKeys, siteKeys, @@ -83,6 +86,8 @@ import { orgAdminGrantKeys, orgOwnerGrantKeys, orgGrantKeys, + orgChartEdgeKeys, + orgChartEdgeGrantKeys, appLimitKeys, orgLimitKeys, appStepKeys, @@ -91,28 +96,28 @@ import { claimedInviteKeys, orgInviteKeys, orgClaimedInviteKeys, - appPermissionDefaultKeys, refKeys, storeKeys, + appPermissionDefaultKeys, roleTypeKeys, orgPermissionDefaultKeys, + cryptoAddressKeys, appLimitDefaultKeys, orgLimitDefaultKeys, - cryptoAddressKeys, - membershipTypeKeys, connectedAccountKeys, phoneNumberKeys, - appMembershipDefaultKeys, + membershipTypeKeys, nodeTypeRegistryKeys, + appMembershipDefaultKeys, commitKeys, orgMembershipDefaultKeys, - emailKeys, auditLogKeys, appLevelKeys, + emailKeys, sqlMigrationKeys, astMigrationKeys, - appMembershipKeys, userKeys, + appMembershipKeys, hierarchyModuleKeys, } from './query-keys'; /** @@ -135,6 +140,40 @@ import { * ``` */ export const invalidate = { + /** Invalidate orgGetManagersRecord queries */ orgGetManagersRecord: { + /** Invalidate all orgGetManagersRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.all, + }), + /** Invalidate orgGetManagersRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.lists(), + }), + /** Invalidate a specific orgGetManagersRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.detail(id), + }), + }, + /** Invalidate orgGetSubordinatesRecord queries */ orgGetSubordinatesRecord: { + /** Invalidate all orgGetSubordinatesRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.all, + }), + /** Invalidate orgGetSubordinatesRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.lists(), + }), + /** Invalidate a specific orgGetSubordinatesRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.detail(id), + }), + }, /** Invalidate getAllRecord queries */ getAllRecord: { /** Invalidate all getAllRecord queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -338,23 +377,6 @@ export const invalidate = { queryKey: indexKeys.detail(id), }), }, - /** Invalidate limitFunction queries */ limitFunction: { - /** Invalidate all limitFunction queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.all, - }), - /** Invalidate limitFunction list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }), - /** Invalidate a specific limitFunction */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.detail(id), - }), - }, /** Invalidate policy queries */ policy: { /** Invalidate all policy queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -530,6 +552,40 @@ export const invalidate = { queryKey: tableTemplateModuleKeys.detail(id), }), }, + /** Invalidate secureTableProvision queries */ secureTableProvision: { + /** Invalidate all secureTableProvision queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.all, + }), + /** Invalidate secureTableProvision list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.lists(), + }), + /** Invalidate a specific secureTableProvision */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.detail(id), + }), + }, + /** Invalidate relationProvision queries */ relationProvision: { + /** Invalidate all relationProvision queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.all, + }), + /** Invalidate relationProvision list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.lists(), + }), + /** Invalidate a specific relationProvision */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.detail(id), + }), + }, /** Invalidate schemaGrant queries */ schemaGrant: { /** Invalidate all schemaGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -547,6 +603,23 @@ export const invalidate = { queryKey: schemaGrantKeys.detail(id), }), }, + /** Invalidate defaultPrivilege queries */ defaultPrivilege: { + /** Invalidate all defaultPrivilege queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.all, + }), + /** Invalidate defaultPrivilege list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.lists(), + }), + /** Invalidate a specific defaultPrivilege */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.detail(id), + }), + }, /** Invalidate apiSchema queries */ apiSchema: { /** Invalidate all apiSchema queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -646,23 +719,6 @@ export const invalidate = { queryKey: siteThemeKeys.detail(id), }), }, - /** Invalidate procedure queries */ procedure: { - /** Invalidate all procedure queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: procedureKeys.all, - }), - /** Invalidate procedure list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }), - /** Invalidate a specific procedure */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: procedureKeys.detail(id), - }), - }, /** Invalidate triggerFunction queries */ triggerFunction: { /** Invalidate all triggerFunction queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1243,6 +1299,40 @@ export const invalidate = { queryKey: orgGrantKeys.detail(id), }), }, + /** Invalidate orgChartEdge queries */ orgChartEdge: { + /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.all, + }), + /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }), + /** Invalidate a specific orgChartEdge */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.detail(id), + }), + }, + /** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: { + /** Invalidate all orgChartEdgeGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.all, + }), + /** Invalidate orgChartEdgeGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }), + /** Invalidate a specific orgChartEdgeGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.detail(id), + }), + }, /** Invalidate appLimit queries */ appLimit: { /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1367,23 +1457,6 @@ export const invalidate = { queryKey: orgClaimedInviteKeys.detail(id), }), }, - /** Invalidate appPermissionDefault queries */ appPermissionDefault: { - /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.all, - }), - /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), - }), - /** Invalidate a specific appPermissionDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.detail(id), - }), - }, /** Invalidate ref queries */ ref: { /** Invalidate all ref queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1412,6 +1485,23 @@ export const invalidate = { queryKey: storeKeys.detail(id), }), }, + /** Invalidate appPermissionDefault queries */ appPermissionDefault: { + /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.all, + }), + /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.lists(), + }), + /** Invalidate a specific appPermissionDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.detail(id), + }), + }, /** Invalidate roleType queries */ roleType: { /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1443,6 +1533,23 @@ export const invalidate = { queryKey: orgPermissionDefaultKeys.detail(id), }), }, + /** Invalidate cryptoAddress queries */ cryptoAddress: { + /** Invalidate all cryptoAddress queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.all, + }), + /** Invalidate cryptoAddress list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }), + /** Invalidate a specific cryptoAddress */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.detail(id), + }), + }, /** Invalidate appLimitDefault queries */ appLimitDefault: { /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1477,40 +1584,6 @@ export const invalidate = { queryKey: orgLimitDefaultKeys.detail(id), }), }, - /** Invalidate cryptoAddress queries */ cryptoAddress: { - /** Invalidate all cryptoAddress queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.all, - }), - /** Invalidate cryptoAddress list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.lists(), - }), - /** Invalidate a specific cryptoAddress */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.detail(id), - }), - }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, - }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), - }), - /** Invalidate a specific membershipType */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), - }), - }, /** Invalidate connectedAccount queries */ connectedAccount: { /** Invalidate all connectedAccount queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1545,21 +1618,21 @@ export const invalidate = { queryKey: phoneNumberKeys.detail(id), }), }, - /** Invalidate appMembershipDefault queries */ appMembershipDefault: { - /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate membershipType queries */ membershipType: { + /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.all, + queryKey: membershipTypeKeys.all, }), - /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), + queryKey: membershipTypeKeys.lists(), }), - /** Invalidate a specific appMembershipDefault */ detail: ( + /** Invalidate a specific membershipType */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }), }, /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { @@ -1579,6 +1652,23 @@ export const invalidate = { queryKey: nodeTypeRegistryKeys.detail(id), }), }, + /** Invalidate appMembershipDefault queries */ appMembershipDefault: { + /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.all, + }), + /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.lists(), + }), + /** Invalidate a specific appMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.detail(id), + }), + }, /** Invalidate commit queries */ commit: { /** Invalidate all commit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1610,20 +1700,6 @@ export const invalidate = { queryKey: orgMembershipDefaultKeys.detail(id), }), }, - /** Invalidate email queries */ email: { - /** Invalidate all email queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.all, - }), - /** Invalidate email list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), - }), - /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: emailKeys.detail(id), - }), - }, /** Invalidate auditLog queries */ auditLog: { /** Invalidate all auditLog queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1652,6 +1728,20 @@ export const invalidate = { queryKey: appLevelKeys.detail(id), }), }, + /** Invalidate email queries */ email: { + /** Invalidate all email queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.all, + }), + /** Invalidate email list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }), + /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: emailKeys.detail(id), + }), + }, /** Invalidate sqlMigration queries */ sqlMigration: { /** Invalidate all sqlMigration queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1686,6 +1776,20 @@ export const invalidate = { queryKey: astMigrationKeys.detail(id), }), }, + /** Invalidate user queries */ user: { + /** Invalidate all user queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userKeys.all, + }), + /** Invalidate user list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userKeys.lists(), + }), + /** Invalidate a specific user */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: userKeys.detail(id), + }), + }, /** Invalidate appMembership queries */ appMembership: { /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1703,20 +1807,6 @@ export const invalidate = { queryKey: appMembershipKeys.detail(id), }), }, - /** Invalidate user queries */ user: { - /** Invalidate all user queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userKeys.all, - }), - /** Invalidate user list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userKeys.lists(), - }), - /** Invalidate a specific user */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: userKeys.detail(id), - }), - }, /** Invalidate hierarchyModule queries */ hierarchyModule: { /** Invalidate all hierarchyModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1747,6 +1837,22 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { + /** Remove orgGetManagersRecord from cache */ orgGetManagersRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgGetManagersRecordKeys.detail(id), + }); + }, + /** Remove orgGetSubordinatesRecord from cache */ orgGetSubordinatesRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgGetSubordinatesRecordKeys.detail(id), + }); + }, /** Remove getAllRecord from cache */ getAllRecord: ( queryClient: QueryClient, id: string | number @@ -1833,14 +1939,6 @@ export const remove = { queryKey: indexKeys.detail(id), }); }, - /** Remove limitFunction from cache */ limitFunction: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: limitFunctionKeys.detail(id), - }); - }, /** Remove policy from cache */ policy: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: policyKeys.detail(id), @@ -1911,6 +2009,22 @@ export const remove = { queryKey: tableTemplateModuleKeys.detail(id), }); }, + /** Remove secureTableProvision from cache */ secureTableProvision: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: secureTableProvisionKeys.detail(id), + }); + }, + /** Remove relationProvision from cache */ relationProvision: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: relationProvisionKeys.detail(id), + }); + }, /** Remove schemaGrant from cache */ schemaGrant: ( queryClient: QueryClient, id: string | number @@ -1919,6 +2033,14 @@ export const remove = { queryKey: schemaGrantKeys.detail(id), }); }, + /** Remove defaultPrivilege from cache */ defaultPrivilege: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: defaultPrivilegeKeys.detail(id), + }); + }, /** Remove apiSchema from cache */ apiSchema: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: apiSchemaKeys.detail(id), @@ -1955,11 +2077,6 @@ export const remove = { queryKey: siteThemeKeys.detail(id), }); }, - /** Remove procedure from cache */ procedure: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: procedureKeys.detail(id), - }); - }, /** Remove triggerFunction from cache */ triggerFunction: ( queryClient: QueryClient, id: string | number @@ -2219,6 +2336,22 @@ export const remove = { queryKey: orgGrantKeys.detail(id), }); }, + /** Remove orgChartEdge from cache */ orgChartEdge: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeKeys.detail(id), + }); + }, + /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeGrantKeys.detail(id), + }); + }, /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: appLimitKeys.detail(id), @@ -2268,14 +2401,6 @@ export const remove = { queryKey: orgClaimedInviteKeys.detail(id), }); }, - /** Remove appPermissionDefault from cache */ appPermissionDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appPermissionDefaultKeys.detail(id), - }); - }, /** Remove ref from cache */ ref: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: refKeys.detail(id), @@ -2286,6 +2411,14 @@ export const remove = { queryKey: storeKeys.detail(id), }); }, + /** Remove appPermissionDefault from cache */ appPermissionDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appPermissionDefaultKeys.detail(id), + }); + }, /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: roleTypeKeys.detail(id), @@ -2299,36 +2432,28 @@ export const remove = { queryKey: orgPermissionDefaultKeys.detail(id), }); }, - /** Remove appLimitDefault from cache */ appLimitDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitDefaultKeys.detail(id), - }); - }, - /** Remove orgLimitDefault from cache */ orgLimitDefault: ( + /** Remove cryptoAddress from cache */ cryptoAddress: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitDefaultKeys.detail(id), + queryKey: cryptoAddressKeys.detail(id), }); }, - /** Remove cryptoAddress from cache */ cryptoAddress: ( + /** Remove appLimitDefault from cache */ appLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: cryptoAddressKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }); }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove orgLimitDefault from cache */ orgLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgLimitDefaultKeys.detail(id), }); }, /** Remove connectedAccount from cache */ connectedAccount: ( @@ -2347,12 +2472,12 @@ export const remove = { queryKey: phoneNumberKeys.detail(id), }); }, - /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }); }, /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( @@ -2363,6 +2488,14 @@ export const remove = { queryKey: nodeTypeRegistryKeys.detail(id), }); }, + /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appMembershipDefaultKeys.detail(id), + }); + }, /** Remove commit from cache */ commit: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: commitKeys.detail(id), @@ -2376,11 +2509,6 @@ export const remove = { queryKey: orgMembershipDefaultKeys.detail(id), }); }, - /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: emailKeys.detail(id), - }); - }, /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: auditLogKeys.detail(id), @@ -2391,6 +2519,11 @@ export const remove = { queryKey: appLevelKeys.detail(id), }); }, + /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: emailKeys.detail(id), + }); + }, /** Remove sqlMigration from cache */ sqlMigration: ( queryClient: QueryClient, id: string | number @@ -2407,6 +2540,11 @@ export const remove = { queryKey: astMigrationKeys.detail(id), }); }, + /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: userKeys.detail(id), + }); + }, /** Remove appMembership from cache */ appMembership: ( queryClient: QueryClient, id: string | number @@ -2415,11 +2553,6 @@ export const remove = { queryKey: appMembershipKeys.detail(id), }); }, - /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: userKeys.detail(id), - }); - }, /** Remove hierarchyModule from cache */ hierarchyModule: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts index 1ec5b0f6d..bf3852aee 100644 --- a/sdk/constructive-react/src/public/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/public/hooks/mutation-keys.ts @@ -18,6 +18,27 @@ // Entity Mutation Keys // ============================================================================ +export const orgGetManagersRecordMutationKeys = { + /** All orgGetManagersRecord mutation keys */ all: ['mutation', 'orggetmanagersrecord'] as const, + /** Create orgGetManagersRecord mutation key */ create: () => + ['mutation', 'orggetmanagersrecord', 'create'] as const, + /** Update orgGetManagersRecord mutation key */ update: (id: string | number) => + ['mutation', 'orggetmanagersrecord', 'update', id] as const, + /** Delete orgGetManagersRecord mutation key */ delete: (id: string | number) => + ['mutation', 'orggetmanagersrecord', 'delete', id] as const, +} as const; +export const orgGetSubordinatesRecordMutationKeys = { + /** All orgGetSubordinatesRecord mutation keys */ all: [ + 'mutation', + 'orggetsubordinatesrecord', + ] as const, + /** Create orgGetSubordinatesRecord mutation key */ create: () => + ['mutation', 'orggetsubordinatesrecord', 'create'] as const, + /** Update orgGetSubordinatesRecord mutation key */ update: (id: string | number) => + ['mutation', 'orggetsubordinatesrecord', 'update', id] as const, + /** Delete orgGetSubordinatesRecord mutation key */ delete: (id: string | number) => + ['mutation', 'orggetsubordinatesrecord', 'delete', id] as const, +} as const; export const getAllRecordMutationKeys = { /** All getAllRecord mutation keys */ all: ['mutation', 'getallrecord'] as const, /** Create getAllRecord mutation key */ create: () => @@ -129,15 +150,6 @@ export const indexMutationKeys = { /** Delete index mutation key */ delete: (id: string | number) => ['mutation', 'index', 'delete', id] as const, } as const; -export const limitFunctionMutationKeys = { - /** All limitFunction mutation keys */ all: ['mutation', 'limitfunction'] as const, - /** Create limitFunction mutation key */ create: () => - ['mutation', 'limitfunction', 'create'] as const, - /** Update limitFunction mutation key */ update: (id: string | number) => - ['mutation', 'limitfunction', 'update', id] as const, - /** Delete limitFunction mutation key */ delete: (id: string | number) => - ['mutation', 'limitfunction', 'delete', id] as const, -} as const; export const policyMutationKeys = { /** All policy mutation keys */ all: ['mutation', 'policy'] as const, /** Create policy mutation key */ create: () => ['mutation', 'policy', 'create'] as const, @@ -230,6 +242,24 @@ export const tableTemplateModuleMutationKeys = { /** Delete tableTemplateModule mutation key */ delete: (id: string | number) => ['mutation', 'tabletemplatemodule', 'delete', id] as const, } as const; +export const secureTableProvisionMutationKeys = { + /** All secureTableProvision mutation keys */ all: ['mutation', 'securetableprovision'] as const, + /** Create secureTableProvision mutation key */ create: () => + ['mutation', 'securetableprovision', 'create'] as const, + /** Update secureTableProvision mutation key */ update: (id: string | number) => + ['mutation', 'securetableprovision', 'update', id] as const, + /** Delete secureTableProvision mutation key */ delete: (id: string | number) => + ['mutation', 'securetableprovision', 'delete', id] as const, +} as const; +export const relationProvisionMutationKeys = { + /** All relationProvision mutation keys */ all: ['mutation', 'relationprovision'] as const, + /** Create relationProvision mutation key */ create: () => + ['mutation', 'relationprovision', 'create'] as const, + /** Update relationProvision mutation key */ update: (id: string | number) => + ['mutation', 'relationprovision', 'update', id] as const, + /** Delete relationProvision mutation key */ delete: (id: string | number) => + ['mutation', 'relationprovision', 'delete', id] as const, +} as const; export const schemaGrantMutationKeys = { /** All schemaGrant mutation keys */ all: ['mutation', 'schemagrant'] as const, /** Create schemaGrant mutation key */ create: () => @@ -239,6 +269,15 @@ export const schemaGrantMutationKeys = { /** Delete schemaGrant mutation key */ delete: (id: string | number) => ['mutation', 'schemagrant', 'delete', id] as const, } as const; +export const defaultPrivilegeMutationKeys = { + /** All defaultPrivilege mutation keys */ all: ['mutation', 'defaultprivilege'] as const, + /** Create defaultPrivilege mutation key */ create: () => + ['mutation', 'defaultprivilege', 'create'] as const, + /** Update defaultPrivilege mutation key */ update: (id: string | number) => + ['mutation', 'defaultprivilege', 'update', id] as const, + /** Delete defaultPrivilege mutation key */ delete: (id: string | number) => + ['mutation', 'defaultprivilege', 'delete', id] as const, +} as const; export const apiSchemaMutationKeys = { /** All apiSchema mutation keys */ all: ['mutation', 'apischema'] as const, /** Create apiSchema mutation key */ create: () => ['mutation', 'apischema', 'create'] as const, @@ -288,14 +327,6 @@ export const siteThemeMutationKeys = { /** Delete siteTheme mutation key */ delete: (id: string | number) => ['mutation', 'sitetheme', 'delete', id] as const, } as const; -export const procedureMutationKeys = { - /** All procedure mutation keys */ all: ['mutation', 'procedure'] as const, - /** Create procedure mutation key */ create: () => ['mutation', 'procedure', 'create'] as const, - /** Update procedure mutation key */ update: (id: string | number) => - ['mutation', 'procedure', 'update', id] as const, - /** Delete procedure mutation key */ delete: (id: string | number) => - ['mutation', 'procedure', 'delete', id] as const, -} as const; export const triggerFunctionMutationKeys = { /** All triggerFunction mutation keys */ all: ['mutation', 'triggerfunction'] as const, /** Create triggerFunction mutation key */ create: () => @@ -621,6 +652,24 @@ export const orgGrantMutationKeys = { /** Delete orgGrant mutation key */ delete: (id: string | number) => ['mutation', 'orggrant', 'delete', id] as const, } as const; +export const orgChartEdgeMutationKeys = { + /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, + /** Create orgChartEdge mutation key */ create: () => + ['mutation', 'orgchartedge', 'create'] as const, + /** Update orgChartEdge mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedge', 'update', id] as const, + /** Delete orgChartEdge mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedge', 'delete', id] as const, +} as const; +export const orgChartEdgeGrantMutationKeys = { + /** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'] as const, + /** Create orgChartEdgeGrant mutation key */ create: () => + ['mutation', 'orgchartedgegrant', 'create'] as const, + /** Update orgChartEdgeGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedgegrant', 'update', id] as const, + /** Delete orgChartEdgeGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedgegrant', 'delete', id] as const, +} as const; export const appLimitMutationKeys = { /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, @@ -688,15 +737,6 @@ export const orgClaimedInviteMutationKeys = { /** Delete orgClaimedInvite mutation key */ delete: (id: string | number) => ['mutation', 'orgclaimedinvite', 'delete', id] as const, } as const; -export const appPermissionDefaultMutationKeys = { - /** All appPermissionDefault mutation keys */ all: ['mutation', 'apppermissiondefault'] as const, - /** Create appPermissionDefault mutation key */ create: () => - ['mutation', 'apppermissiondefault', 'create'] as const, - /** Update appPermissionDefault mutation key */ update: (id: string | number) => - ['mutation', 'apppermissiondefault', 'update', id] as const, - /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => - ['mutation', 'apppermissiondefault', 'delete', id] as const, -} as const; export const refMutationKeys = { /** All ref mutation keys */ all: ['mutation', 'ref'] as const, /** Create ref mutation key */ create: () => ['mutation', 'ref', 'create'] as const, @@ -713,6 +753,15 @@ export const storeMutationKeys = { /** Delete store mutation key */ delete: (id: string | number) => ['mutation', 'store', 'delete', id] as const, } as const; +export const appPermissionDefaultMutationKeys = { + /** All appPermissionDefault mutation keys */ all: ['mutation', 'apppermissiondefault'] as const, + /** Create appPermissionDefault mutation key */ create: () => + ['mutation', 'apppermissiondefault', 'create'] as const, + /** Update appPermissionDefault mutation key */ update: (id: string | number) => + ['mutation', 'apppermissiondefault', 'update', id] as const, + /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => + ['mutation', 'apppermissiondefault', 'delete', id] as const, +} as const; export const roleTypeMutationKeys = { /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, @@ -730,6 +779,15 @@ export const orgPermissionDefaultMutationKeys = { /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgpermissiondefault', 'delete', id] as const, } as const; +export const cryptoAddressMutationKeys = { + /** All cryptoAddress mutation keys */ all: ['mutation', 'cryptoaddress'] as const, + /** Create cryptoAddress mutation key */ create: () => + ['mutation', 'cryptoaddress', 'create'] as const, + /** Update cryptoAddress mutation key */ update: (id: string | number) => + ['mutation', 'cryptoaddress', 'update', id] as const, + /** Delete cryptoAddress mutation key */ delete: (id: string | number) => + ['mutation', 'cryptoaddress', 'delete', id] as const, +} as const; export const appLimitDefaultMutationKeys = { /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, /** Create appLimitDefault mutation key */ create: () => @@ -748,24 +806,6 @@ export const orgLimitDefaultMutationKeys = { /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => ['mutation', 'orglimitdefault', 'delete', id] as const, } as const; -export const cryptoAddressMutationKeys = { - /** All cryptoAddress mutation keys */ all: ['mutation', 'cryptoaddress'] as const, - /** Create cryptoAddress mutation key */ create: () => - ['mutation', 'cryptoaddress', 'create'] as const, - /** Update cryptoAddress mutation key */ update: (id: string | number) => - ['mutation', 'cryptoaddress', 'update', id] as const, - /** Delete cryptoAddress mutation key */ delete: (id: string | number) => - ['mutation', 'cryptoaddress', 'delete', id] as const, -} as const; -export const membershipTypeMutationKeys = { - /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, - /** Create membershipType mutation key */ create: () => - ['mutation', 'membershiptype', 'create'] as const, - /** Update membershipType mutation key */ update: (id: string | number) => - ['mutation', 'membershiptype', 'update', id] as const, - /** Delete membershipType mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptype', 'delete', id] as const, -} as const; export const connectedAccountMutationKeys = { /** All connectedAccount mutation keys */ all: ['mutation', 'connectedaccount'] as const, /** Create connectedAccount mutation key */ create: () => @@ -784,14 +824,14 @@ export const phoneNumberMutationKeys = { /** Delete phoneNumber mutation key */ delete: (id: string | number) => ['mutation', 'phonenumber', 'delete', id] as const, } as const; -export const appMembershipDefaultMutationKeys = { - /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, - /** Create appMembershipDefault mutation key */ create: () => - ['mutation', 'appmembershipdefault', 'create'] as const, - /** Update appMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'appmembershipdefault', 'update', id] as const, - /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'appmembershipdefault', 'delete', id] as const, +export const membershipTypeMutationKeys = { + /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, + /** Create membershipType mutation key */ create: () => + ['mutation', 'membershiptype', 'create'] as const, + /** Update membershipType mutation key */ update: (id: string | number) => + ['mutation', 'membershiptype', 'update', id] as const, + /** Delete membershipType mutation key */ delete: (id: string | number) => + ['mutation', 'membershiptype', 'delete', id] as const, } as const; export const nodeTypeRegistryMutationKeys = { /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, @@ -802,6 +842,15 @@ export const nodeTypeRegistryMutationKeys = { /** Delete nodeTypeRegistry mutation key */ delete: (id: string | number) => ['mutation', 'nodetyperegistry', 'delete', id] as const, } as const; +export const appMembershipDefaultMutationKeys = { + /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, + /** Create appMembershipDefault mutation key */ create: () => + ['mutation', 'appmembershipdefault', 'create'] as const, + /** Update appMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'appmembershipdefault', 'update', id] as const, + /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'appmembershipdefault', 'delete', id] as const, +} as const; export const commitMutationKeys = { /** All commit mutation keys */ all: ['mutation', 'commit'] as const, /** Create commit mutation key */ create: () => ['mutation', 'commit', 'create'] as const, @@ -819,14 +868,6 @@ export const orgMembershipDefaultMutationKeys = { /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgmembershipdefault', 'delete', id] as const, } as const; -export const emailMutationKeys = { - /** All email mutation keys */ all: ['mutation', 'email'] as const, - /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, - /** Update email mutation key */ update: (id: string | number) => - ['mutation', 'email', 'update', id] as const, - /** Delete email mutation key */ delete: (id: string | number) => - ['mutation', 'email', 'delete', id] as const, -} as const; export const auditLogMutationKeys = { /** All auditLog mutation keys */ all: ['mutation', 'auditlog'] as const, /** Create auditLog mutation key */ create: () => ['mutation', 'auditlog', 'create'] as const, @@ -843,6 +884,14 @@ export const appLevelMutationKeys = { /** Delete appLevel mutation key */ delete: (id: string | number) => ['mutation', 'applevel', 'delete', id] as const, } as const; +export const emailMutationKeys = { + /** All email mutation keys */ all: ['mutation', 'email'] as const, + /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, + /** Update email mutation key */ update: (id: string | number) => + ['mutation', 'email', 'update', id] as const, + /** Delete email mutation key */ delete: (id: string | number) => + ['mutation', 'email', 'delete', id] as const, +} as const; export const sqlMigrationMutationKeys = { /** All sqlMigration mutation keys */ all: ['mutation', 'sqlmigration'] as const, /** Create sqlMigration mutation key */ create: () => @@ -861,6 +910,14 @@ export const astMigrationMutationKeys = { /** Delete astMigration mutation key */ delete: (id: string | number) => ['mutation', 'astmigration', 'delete', id] as const, } as const; +export const userMutationKeys = { + /** All user mutation keys */ all: ['mutation', 'user'] as const, + /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, + /** Update user mutation key */ update: (id: string | number) => + ['mutation', 'user', 'update', id] as const, + /** Delete user mutation key */ delete: (id: string | number) => + ['mutation', 'user', 'delete', id] as const, +} as const; export const appMembershipMutationKeys = { /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, /** Create appMembership mutation key */ create: () => @@ -870,14 +927,6 @@ export const appMembershipMutationKeys = { /** Delete appMembership mutation key */ delete: (id: string | number) => ['mutation', 'appmembership', 'delete', id] as const, } as const; -export const userMutationKeys = { - /** All user mutation keys */ all: ['mutation', 'user'] as const, - /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, - /** Update user mutation key */ update: (id: string | number) => - ['mutation', 'user', 'update', id] as const, - /** Delete user mutation key */ delete: (id: string | number) => - ['mutation', 'user', 'delete', id] as const, -} as const; export const hierarchyModuleMutationKeys = { /** All hierarchyModule mutation keys */ all: ['mutation', 'hierarchymodule'] as const, /** Create hierarchyModule mutation key */ create: () => @@ -1041,6 +1090,8 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + orgGetManagersRecord: orgGetManagersRecordMutationKeys, + orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, getAllRecord: getAllRecordMutationKeys, appPermission: appPermissionMutationKeys, orgPermission: orgPermissionMutationKeys, @@ -1054,7 +1105,6 @@ export const mutationKeys = { foreignKeyConstraint: foreignKeyConstraintMutationKeys, fullTextSearch: fullTextSearchMutationKeys, index: indexMutationKeys, - limitFunction: limitFunctionMutationKeys, policy: policyMutationKeys, primaryKeyConstraint: primaryKeyConstraintMutationKeys, tableGrant: tableGrantMutationKeys, @@ -1066,14 +1116,16 @@ export const mutationKeys = { viewRule: viewRuleMutationKeys, tableModule: tableModuleMutationKeys, tableTemplateModule: tableTemplateModuleMutationKeys, + secureTableProvision: secureTableProvisionMutationKeys, + relationProvision: relationProvisionMutationKeys, schemaGrant: schemaGrantMutationKeys, + defaultPrivilege: defaultPrivilegeMutationKeys, apiSchema: apiSchemaMutationKeys, apiModule: apiModuleMutationKeys, domain: domainMutationKeys, siteMetadatum: siteMetadatumMutationKeys, siteModule: siteModuleMutationKeys, siteTheme: siteThemeMutationKeys, - procedure: procedureMutationKeys, triggerFunction: triggerFunctionMutationKeys, api: apiMutationKeys, site: siteMutationKeys, @@ -1109,6 +1161,8 @@ export const mutationKeys = { orgAdminGrant: orgAdminGrantMutationKeys, orgOwnerGrant: orgOwnerGrantMutationKeys, orgGrant: orgGrantMutationKeys, + orgChartEdge: orgChartEdgeMutationKeys, + orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, appLimit: appLimitMutationKeys, orgLimit: orgLimitMutationKeys, appStep: appStepMutationKeys, @@ -1117,28 +1171,28 @@ export const mutationKeys = { claimedInvite: claimedInviteMutationKeys, orgInvite: orgInviteMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, - appPermissionDefault: appPermissionDefaultMutationKeys, ref: refMutationKeys, store: storeMutationKeys, + appPermissionDefault: appPermissionDefaultMutationKeys, roleType: roleTypeMutationKeys, orgPermissionDefault: orgPermissionDefaultMutationKeys, + cryptoAddress: cryptoAddressMutationKeys, appLimitDefault: appLimitDefaultMutationKeys, orgLimitDefault: orgLimitDefaultMutationKeys, - cryptoAddress: cryptoAddressMutationKeys, - membershipType: membershipTypeMutationKeys, connectedAccount: connectedAccountMutationKeys, phoneNumber: phoneNumberMutationKeys, - appMembershipDefault: appMembershipDefaultMutationKeys, + membershipType: membershipTypeMutationKeys, nodeTypeRegistry: nodeTypeRegistryMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, commit: commitMutationKeys, orgMembershipDefault: orgMembershipDefaultMutationKeys, - email: emailMutationKeys, auditLog: auditLogMutationKeys, appLevel: appLevelMutationKeys, + email: emailMutationKeys, sqlMigration: sqlMigrationMutationKeys, astMigration: astMigrationMutationKeys, - appMembership: appMembershipMutationKeys, user: userMutationKeys, + appMembership: appMembershipMutationKeys, hierarchyModule: hierarchyModuleMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/public/hooks/mutations/index.ts b/sdk/constructive-react/src/public/hooks/mutations/index.ts index b5541e514..b49d917f3 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateOrgGetManagersRecordMutation'; +export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateGetAllRecordMutation'; export * from './useCreateAppPermissionMutation'; export * from './useUpdateAppPermissionMutation'; @@ -40,9 +42,6 @@ export * from './useDeleteFullTextSearchMutation'; export * from './useCreateIndexMutation'; export * from './useUpdateIndexMutation'; export * from './useDeleteIndexMutation'; -export * from './useCreateLimitFunctionMutation'; -export * from './useUpdateLimitFunctionMutation'; -export * from './useDeleteLimitFunctionMutation'; export * from './useCreatePolicyMutation'; export * from './useUpdatePolicyMutation'; export * from './useDeletePolicyMutation'; @@ -76,9 +75,18 @@ export * from './useDeleteTableModuleMutation'; export * from './useCreateTableTemplateModuleMutation'; export * from './useUpdateTableTemplateModuleMutation'; export * from './useDeleteTableTemplateModuleMutation'; +export * from './useCreateSecureTableProvisionMutation'; +export * from './useUpdateSecureTableProvisionMutation'; +export * from './useDeleteSecureTableProvisionMutation'; +export * from './useCreateRelationProvisionMutation'; +export * from './useUpdateRelationProvisionMutation'; +export * from './useDeleteRelationProvisionMutation'; export * from './useCreateSchemaGrantMutation'; export * from './useUpdateSchemaGrantMutation'; export * from './useDeleteSchemaGrantMutation'; +export * from './useCreateDefaultPrivilegeMutation'; +export * from './useUpdateDefaultPrivilegeMutation'; +export * from './useDeleteDefaultPrivilegeMutation'; export * from './useCreateApiSchemaMutation'; export * from './useUpdateApiSchemaMutation'; export * from './useDeleteApiSchemaMutation'; @@ -97,9 +105,6 @@ export * from './useDeleteSiteModuleMutation'; export * from './useCreateSiteThemeMutation'; export * from './useUpdateSiteThemeMutation'; export * from './useDeleteSiteThemeMutation'; -export * from './useCreateProcedureMutation'; -export * from './useUpdateProcedureMutation'; -export * from './useDeleteProcedureMutation'; export * from './useCreateTriggerFunctionMutation'; export * from './useUpdateTriggerFunctionMutation'; export * from './useDeleteTriggerFunctionMutation'; @@ -205,6 +210,12 @@ export * from './useDeleteOrgOwnerGrantMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; +export * from './useCreateOrgChartEdgeMutation'; +export * from './useUpdateOrgChartEdgeMutation'; +export * from './useDeleteOrgChartEdgeMutation'; +export * from './useCreateOrgChartEdgeGrantMutation'; +export * from './useUpdateOrgChartEdgeGrantMutation'; +export * from './useDeleteOrgChartEdgeGrantMutation'; export * from './useCreateAppLimitMutation'; export * from './useUpdateAppLimitMutation'; export * from './useDeleteAppLimitMutation'; @@ -229,68 +240,68 @@ export * from './useDeleteOrgInviteMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; -export * from './useCreateAppPermissionDefaultMutation'; -export * from './useUpdateAppPermissionDefaultMutation'; -export * from './useDeleteAppPermissionDefaultMutation'; export * from './useCreateRefMutation'; export * from './useUpdateRefMutation'; export * from './useDeleteRefMutation'; export * from './useCreateStoreMutation'; export * from './useUpdateStoreMutation'; export * from './useDeleteStoreMutation'; +export * from './useCreateAppPermissionDefaultMutation'; +export * from './useUpdateAppPermissionDefaultMutation'; +export * from './useDeleteAppPermissionDefaultMutation'; export * from './useCreateRoleTypeMutation'; export * from './useUpdateRoleTypeMutation'; export * from './useDeleteRoleTypeMutation'; export * from './useCreateOrgPermissionDefaultMutation'; export * from './useUpdateOrgPermissionDefaultMutation'; export * from './useDeleteOrgPermissionDefaultMutation'; +export * from './useCreateCryptoAddressMutation'; +export * from './useUpdateCryptoAddressMutation'; +export * from './useDeleteCryptoAddressMutation'; export * from './useCreateAppLimitDefaultMutation'; export * from './useUpdateAppLimitDefaultMutation'; export * from './useDeleteAppLimitDefaultMutation'; export * from './useCreateOrgLimitDefaultMutation'; export * from './useUpdateOrgLimitDefaultMutation'; export * from './useDeleteOrgLimitDefaultMutation'; -export * from './useCreateCryptoAddressMutation'; -export * from './useUpdateCryptoAddressMutation'; -export * from './useDeleteCryptoAddressMutation'; -export * from './useCreateMembershipTypeMutation'; -export * from './useUpdateMembershipTypeMutation'; -export * from './useDeleteMembershipTypeMutation'; export * from './useCreateConnectedAccountMutation'; export * from './useUpdateConnectedAccountMutation'; export * from './useDeleteConnectedAccountMutation'; export * from './useCreatePhoneNumberMutation'; export * from './useUpdatePhoneNumberMutation'; export * from './useDeletePhoneNumberMutation'; -export * from './useCreateAppMembershipDefaultMutation'; -export * from './useUpdateAppMembershipDefaultMutation'; -export * from './useDeleteAppMembershipDefaultMutation'; +export * from './useCreateMembershipTypeMutation'; +export * from './useUpdateMembershipTypeMutation'; +export * from './useDeleteMembershipTypeMutation'; export * from './useCreateNodeTypeRegistryMutation'; export * from './useUpdateNodeTypeRegistryMutation'; export * from './useDeleteNodeTypeRegistryMutation'; +export * from './useCreateAppMembershipDefaultMutation'; +export * from './useUpdateAppMembershipDefaultMutation'; +export * from './useDeleteAppMembershipDefaultMutation'; export * from './useCreateCommitMutation'; export * from './useUpdateCommitMutation'; export * from './useDeleteCommitMutation'; export * from './useCreateOrgMembershipDefaultMutation'; export * from './useUpdateOrgMembershipDefaultMutation'; export * from './useDeleteOrgMembershipDefaultMutation'; -export * from './useCreateEmailMutation'; -export * from './useUpdateEmailMutation'; -export * from './useDeleteEmailMutation'; export * from './useCreateAuditLogMutation'; export * from './useUpdateAuditLogMutation'; export * from './useDeleteAuditLogMutation'; export * from './useCreateAppLevelMutation'; export * from './useUpdateAppLevelMutation'; export * from './useDeleteAppLevelMutation'; +export * from './useCreateEmailMutation'; +export * from './useUpdateEmailMutation'; +export * from './useDeleteEmailMutation'; export * from './useCreateSqlMigrationMutation'; export * from './useCreateAstMigrationMutation'; -export * from './useCreateAppMembershipMutation'; -export * from './useUpdateAppMembershipMutation'; -export * from './useDeleteAppMembershipMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; +export * from './useCreateAppMembershipMutation'; +export * from './useUpdateAppMembershipMutation'; +export * from './useDeleteAppMembershipMutation'; export * from './useCreateHierarchyModuleMutation'; export * from './useUpdateHierarchyModuleMutation'; export * from './useDeleteHierarchyModuleMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts index a57c9d102..2a1161da1 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateApiModuleInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts index 2e5809137..73b599764 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiSelect, ApiWithRelations, CreateApiInput } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiSelect, ApiWithRelations, CreateApiInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts index 59aaaa033..da401cf44 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateApiSchemaInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts index 769f9a739..3e32e7437 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAchievementInput, } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts index 7dd44401e..3c9af35db 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAdminGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts index 0e2e4c286..c3ae518e1 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts index ba7c1fd68..fe81072d0 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelInput, } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts index 08cd438f8..792b9fc9f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelRequirementInput, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts index 40b24b14d..5e39d5c93 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLimitDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts index b7f7072be..4831101f2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLimitInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts index 0a4ecf4bc..cc66d20ab 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppMembershipDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts index fa08b65df..e991ed8fd 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppMembershipInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts index a43fe0b18..1da252feb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppSelect, AppWithRelations, CreateAppInput } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppSelect, AppWithRelations, CreateAppInput } from '../../orm/input-types'; /** - * Mutation hook for creating a App + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts index 81f12be36..3f5a3413d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppOwnerGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts index 1f2314266..1246a1892 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppPermissionDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts index 73d4eceec..c76e9081a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppPermissionInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts index 1e521eeaf..98022f147 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppStepInput, } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts index e05ac6080..fdf4c7f21 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAuditLogInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts index a84eca95c..1d73744e6 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateClaimedInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts index 0e381461b..b07049d9a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateConnectedAccountInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts index cddfe450c..deda73055 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateCryptoAddressInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultPrivilegeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultPrivilegeMutation.ts new file mode 100644 index 000000000..93680bfb2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultPrivilegeMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for DefaultPrivilege + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { defaultPrivilegeKeys } from '../query-keys'; +import { defaultPrivilegeMutationKeys } from '../mutation-keys'; +import type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + CreateDefaultPrivilegeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + CreateDefaultPrivilegeInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DefaultPrivilege + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDefaultPrivilegeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDefaultPrivilegeMutation( + params: { + selection: { + fields: S & DefaultPrivilegeSelect; + } & HookStrictSelect, DefaultPrivilegeSelect>; + } & Omit< + UseMutationOptions< + { + createDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + CreateDefaultPrivilegeInput['defaultPrivilege'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + CreateDefaultPrivilegeInput['defaultPrivilege'] +>; +export function useCreateDefaultPrivilegeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: defaultPrivilegeMutationKeys.create(), + mutationFn: (data: CreateDefaultPrivilegeInput['defaultPrivilege']) => + getClient() + .defaultPrivilege.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts index 75ee25a3c..ef30135a7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { DomainSelect, DomainWithRelations, CreateDomainInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { DomainSelect, DomainWithRelations, CreateDomainInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts index ff6741c90..3adbfe3b3 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Email + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts index 928d4f0cd..9ee97b57b 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts deleted file mode 100644 index fe19f6107..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import { limitFunctionMutationKeys } from '../mutation-keys'; -import type { - LimitFunctionSelect, - LimitFunctionWithRelations, - CreateLimitFunctionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - LimitFunctionSelect, - LimitFunctionWithRelations, - CreateLimitFunctionInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a LimitFunction - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateLimitFunctionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateLimitFunctionMutation( - params: { - selection: { - fields: S & LimitFunctionSelect; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseMutationOptions< - { - createLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - CreateLimitFunctionInput['limitFunction'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - CreateLimitFunctionInput['limitFunction'] ->; -export function useCreateLimitFunctionMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: limitFunctionMutationKeys.create(), - mutationFn: (data: CreateLimitFunctionInput['limitFunction']) => - getClient() - .limitFunction.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts index d8219655f..91c696e68 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateMembershipTypeInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts index 00687d7da..1f160dd1d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgAdminGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..2b4124103 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts @@ -0,0 +1,91 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + CreateOrgChartEdgeGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + CreateOrgChartEdgeGrantInput, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] +>; +export function useCreateOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.create(), + mutationFn: (data: CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']) => + getClient() + .orgChartEdgeGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts new file mode 100644 index 000000000..e5562dc1f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts @@ -0,0 +1,88 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + CreateOrgChartEdgeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + CreateOrgChartEdgeInput, +} from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgChartEdgeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeInput['orgChartEdge'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + CreateOrgChartEdgeInput['orgChartEdge'] +>; +export function useCreateOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.create(), + mutationFn: (data: CreateOrgChartEdgeInput['orgChartEdge']) => + getClient() + .orgChartEdge.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts index 4ee4b71c3..f08114d37 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgClaimedInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts new file mode 100644 index 000000000..949ce4104 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgGetManagersRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgGetManagersRecordKeys } from '../query-keys'; +import { orgGetManagersRecordMutationKeys } from '../mutation-keys'; +import type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + CreateOrgGetManagersRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + CreateOrgGetManagersRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGetManagersRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGetManagersRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGetManagersRecordMutation( + params: { + selection: { + fields: S & OrgGetManagersRecordSelect; + } & HookStrictSelect, OrgGetManagersRecordSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetManagersRecordInput['orgGetManagersRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetManagersRecordInput['orgGetManagersRecord'] +>; +export function useCreateOrgGetManagersRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGetManagersRecordMutationKeys.create(), + mutationFn: (data: CreateOrgGetManagersRecordInput['orgGetManagersRecord']) => + getClient() + .orgGetManagersRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGetManagersRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts new file mode 100644 index 000000000..237f47a7e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgGetSubordinatesRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgGetSubordinatesRecordKeys } from '../query-keys'; +import { orgGetSubordinatesRecordMutationKeys } from '../mutation-keys'; +import type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + CreateOrgGetSubordinatesRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + CreateOrgGetSubordinatesRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGetSubordinatesRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGetSubordinatesRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGetSubordinatesRecordMutation( + params: { + selection: { + fields: S & OrgGetSubordinatesRecordSelect; + } & HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }, + Error, + CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] +>; +export function useCreateOrgGetSubordinatesRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGetSubordinatesRecordMutationKeys.create(), + mutationFn: (data: CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']) => + getClient() + .orgGetSubordinatesRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGetSubordinatesRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts index 391138997..7dc4d3025 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts index 6d65fa995..a81a94a9d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgInviteInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts index af559e6a2..42e50f62d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgLimitDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts index 33ed2f69e..d284edca9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgLimitInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts index 73bbfce52..14c7550f5 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMemberInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts index 9c1290cfb..b043e29d7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMembershipDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts index e2b7c7e9b..84633ad1d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMembershipInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts index 9cec71f7f..974ac3430 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgOwnerGrantInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts index da1688a0f..187051476 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgPermissionDefaultInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts index b1fd9fd3b..8c597cb08 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgPermissionInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts index f0a8f239b..7ccbf6084 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreatePhoneNumberInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts deleted file mode 100644 index a681e7cff..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import { procedureMutationKeys } from '../mutation-keys'; -import type { - ProcedureSelect, - ProcedureWithRelations, - CreateProcedureInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ProcedureSelect, - ProcedureWithRelations, - CreateProcedureInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a Procedure - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateProcedureMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateProcedureMutation( - params: { - selection: { - fields: S & ProcedureSelect; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseMutationOptions< - { - createProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - CreateProcedureInput['procedure'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - CreateProcedureInput['procedure'] ->; -export function useCreateProcedureMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: procedureMutationKeys.create(), - mutationFn: (data: CreateProcedureInput['procedure']) => - getClient() - .procedure.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRelationProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateRelationProvisionMutation.ts new file mode 100644 index 000000000..aa5d1e92b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateRelationProvisionMutation.ts @@ -0,0 +1,105 @@ +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { relationProvisionKeys } from '../query-keys'; +import { relationProvisionMutationKeys } from '../mutation-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, + CreateRelationProvisionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, + CreateRelationProvisionInput, +} from '../../orm/input-types'; +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRelationProvisionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRelationProvisionMutation( + params: { + selection: { + fields: S & RelationProvisionSelect; + } & HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseMutationOptions< + { + createRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + CreateRelationProvisionInput['relationProvision'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + CreateRelationProvisionInput['relationProvision'] +>; +export function useCreateRelationProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: relationProvisionMutationKeys.create(), + mutationFn: (data: CreateRelationProvisionInput['relationProvision']) => + getClient() + .relationProvision.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSecureTableProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSecureTableProvisionMutation.ts new file mode 100644 index 000000000..f5d7ae8ed --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSecureTableProvisionMutation.ts @@ -0,0 +1,91 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { secureTableProvisionKeys } from '../query-keys'; +import { secureTableProvisionMutationKeys } from '../mutation-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + CreateSecureTableProvisionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + CreateSecureTableProvisionInput, +} from '../../orm/input-types'; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSecureTableProvisionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSecureTableProvisionMutation( + params: { + selection: { + fields: S & SecureTableProvisionSelect; + } & HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseMutationOptions< + { + createSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + CreateSecureTableProvisionInput['secureTableProvision'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + CreateSecureTableProvisionInput['secureTableProvision'] +>; +export function useCreateSecureTableProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: secureTableProvisionMutationKeys.create(), + mutationFn: (data: CreateSecureTableProvisionInput['secureTableProvision']) => + getClient() + .secureTableProvision.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts index 08190bb1f..546be59b1 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateSiteMetadatumInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts index 89a52201a..91ea855f7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateSiteModuleInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts index 771cd48a9..e85a007f4 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteSelect, SiteWithRelations, CreateSiteInput } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteSelect, SiteWithRelations, CreateSiteInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Site + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts index a95aacd27..f8f3d7bfa 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateSiteThemeInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts index 0ba69d251..7fd53a43b 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ApiModule with typed selection + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts index 96bf7f0e0..c708f9a46 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Api with typed selection + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts index 85bf06041..465e2c480 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ApiSchema with typed selection + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts index cbcdae607..0e5f05546 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppAchievementSelect, AppAchievementWithRelations } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts index 83efe201c..1962f80e9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppAdminGrant with typed selection + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts index 2dcc61484..16814431f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppGrant with typed selection + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts index ae1a69ddd..cbef84ab8 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts index 624b78188..6784e56dc 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppLevelRequirementWithRelations, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts index 3d8cec160..d248f2be2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppLimitDefault with typed selection + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts index 9b3ebc52e..42ca8b532 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppLimit with typed selection + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts index bd2d8e77b..c01ff2054 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppMembershipDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppMembershipDefault with typed selection + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts index 270821ab2..03a601e74 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppMembership with typed selection + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts index 9ba2f036a..5bd1d4b12 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppSelect, AppWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppSelect, AppWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a App with typed selection + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts index 037ca9d28..836d241e1 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppOwnerGrant with typed selection + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts index 1c350f3fb..a9b23c747 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppPermissionDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppPermissionDefault with typed selection + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts index 327b4a107..b50268261 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AppPermission with typed selection + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts index 9144c5c0a..7e2de1198 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types' import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts index 694be08d8..6abac002e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a AuditLog with typed selection + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts index 2c3709bd0..0a19b3fc7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ClaimedInvite with typed selection + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts index 29212bade..baf933521 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ConnectedAccount with typed selection + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts index 15d7507ac..34ad5f33d 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a CryptoAddress with typed selection + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts new file mode 100644 index 000000000..c9fe5cf73 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for DefaultPrivilege + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { defaultPrivilegeKeys } from '../query-keys'; +import { defaultPrivilegeMutationKeys } from '../mutation-keys'; +import type { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a DefaultPrivilege with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDefaultPrivilegeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDefaultPrivilegeMutation( + params: { + selection: { + fields: S & DefaultPrivilegeSelect; + } & HookStrictSelect, DefaultPrivilegeSelect>; + } & Omit< + UseMutationOptions< + { + deleteDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDefaultPrivilegeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: defaultPrivilegeMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .defaultPrivilege.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: defaultPrivilegeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts index 34649edce..d402835b7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { DomainSelect, DomainWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { DomainSelect, DomainWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Domain with typed selection + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts index 55d906a64..ee9259023 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Email with typed selection + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts index bf9850ba6..7d0bc59be 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Invite with typed selection + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts deleted file mode 100644 index 05debf225..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Delete mutation hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import { limitFunctionMutationKeys } from '../mutation-keys'; -import type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -/** - * Mutation hook for deleting a LimitFunction with typed selection - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteLimitFunctionMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteLimitFunctionMutation( - params: { - selection: { - fields: S & LimitFunctionSelect; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseMutationOptions< - { - deleteLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteLimitFunctionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: limitFunctionMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .limitFunction.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: limitFunctionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts index dbec0d9e9..71e81ffa9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a MembershipType with typed selection + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts index b2b62e271..dfd89d90e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgAdminGrant with typed selection + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..42b7b9e25 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts @@ -0,0 +1,104 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgChartEdgeGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts new file mode 100644 index 000000000..3aad832ca --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts @@ -0,0 +1,98 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgChartEdgeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgChartEdge.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgChartEdgeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts index 267b1abfe..ecc7fc630 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgClaimedInvite with typed selection + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts index 94b80fa12..3a1d1d967 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgGrant with typed selection + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts index 2960aeac6..34ba21236 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgInvite with typed selection + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts index a8e7bf162..b7614b66f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgLimitDefault with typed selection + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts index 818a3b294..340ecce1f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgLimit with typed selection + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts index 9c7697147..ed6a25761 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMember with typed selection + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts index e5c398c57..50fd07636 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { OrgMembershipDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMembershipDefault with typed selection + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts index 5108e73b9..62654c7ee 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgMembership with typed selection + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts index 4700e63cd..834c27ca6 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgOwnerGrant with typed selection + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts index 841805104..a811eca53 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { OrgPermissionDefaultWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgPermissionDefault with typed selection + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts index 0792b5be9..1c02a813a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a OrgPermission with typed selection + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts index a76ed1b26..7e4e74481 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a PhoneNumber with typed selection + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts deleted file mode 100644 index 080000ba9..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Delete mutation hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import { procedureMutationKeys } from '../mutation-keys'; -import type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -/** - * Mutation hook for deleting a Procedure with typed selection - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteProcedureMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteProcedureMutation( - params: { - selection: { - fields: S & ProcedureSelect; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseMutationOptions< - { - deleteProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteProcedureMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: procedureMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .procedure.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: procedureKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRelationProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRelationProvisionMutation.ts new file mode 100644 index 000000000..d13cdb5e3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRelationProvisionMutation.ts @@ -0,0 +1,118 @@ +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { relationProvisionKeys } from '../query-keys'; +import { relationProvisionMutationKeys } from '../mutation-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, +} from '../../orm/input-types'; +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRelationProvisionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRelationProvisionMutation( + params: { + selection: { + fields: S & RelationProvisionSelect; + } & HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseMutationOptions< + { + deleteRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRelationProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: relationProvisionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .relationProvision.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: relationProvisionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecureTableProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecureTableProvisionMutation.ts new file mode 100644 index 000000000..30c1959a5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecureTableProvisionMutation.ts @@ -0,0 +1,104 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { secureTableProvisionKeys } from '../query-keys'; +import { secureTableProvisionMutationKeys } from '../mutation-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, +} from '../../orm/input-types'; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSecureTableProvisionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSecureTableProvisionMutation( + params: { + selection: { + fields: S & SecureTableProvisionSelect; + } & HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseMutationOptions< + { + deleteSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSecureTableProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: secureTableProvisionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .secureTableProvision.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: secureTableProvisionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts index 0801a13e4..1ba0e29fb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteMetadatumSelect, SiteMetadatumWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteMetadatumSelect, SiteMetadatumWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a SiteMetadatum with typed selection + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts index da2029857..7ba7290f8 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteModuleSelect, SiteModuleWithRelations } from '../../orm/input- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteModuleSelect, SiteModuleWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a SiteModule with typed selection + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts index 619c413b6..3355805bf 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteSelect, SiteWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteSelect, SiteWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Site with typed selection + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts index e09679eae..9eb7af1d6 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteThemeSelect, SiteThemeWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteThemeSelect, SiteThemeWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a SiteTheme with typed selection + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts index 0cbf3cb8e..ad12de953 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ApiModulePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts index 27a304c25..273c129a0 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts index 47185a7c0..90b950598 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ApiSchemaPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts index 837badc1b..ad055ea07 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAchievementPatch, } from '../../orm/input-types'; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts index 9f97a4a26..a41e1b8b9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAdminGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts index fe323065c..d0cb6ba8f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts index fbb3cc7b5..726bcffe8 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts index 07c816a74..01e6132c3 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppLevelRequirementPatch, } from '../../orm/input-types'; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts index e4bf58682..d5402ef93 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppLimitDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts index 673e80850..5f606dc73 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts index c2d03af41..72d872f42 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppMembershipDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts index 21a8572d7..7ead9bdc2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppMembershipPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts index 63d62de1f..36554896e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppSelect, AppWithRelations, AppPatch } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppSelect, AppWithRelations, AppPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a App + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts index ec1d11eb5..7db485406 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppOwnerGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts index 9413e7ad3..9933bb8eb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppPermissionDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts index 73effb82a..0b42bacb2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppPermissionPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts index a34404554..ed0cf895e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../orm/input-types'; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts index c1f3aba69..94417ca87 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts index 45ccdc49a..b1d1cecf9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ClaimedInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts index 826dce155..3615b7022 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ConnectedAccountPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts index f1987ec6e..f154244b5 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CryptoAddressPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts new file mode 100644 index 000000000..240dacb20 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for DefaultPrivilege + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { defaultPrivilegeKeys } from '../query-keys'; +import { defaultPrivilegeMutationKeys } from '../mutation-keys'; +import type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + DefaultPrivilegePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + DefaultPrivilegePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a DefaultPrivilege + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDefaultPrivilegeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', defaultPrivilegePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDefaultPrivilegeMutation( + params: { + selection: { + fields: S & DefaultPrivilegeSelect; + } & HookStrictSelect, DefaultPrivilegeSelect>; + } & Omit< + UseMutationOptions< + { + updateDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + { + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }, + Error, + { + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; + } +>; +export function useUpdateDefaultPrivilegeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: defaultPrivilegeMutationKeys.all, + mutationFn: ({ + id, + defaultPrivilegePatch, + }: { + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; + }) => + getClient() + .defaultPrivilege.update({ + where: { + id, + }, + data: defaultPrivilegePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts index d2cc9d031..bc4bfab4c 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { DomainSelect, DomainWithRelations, DomainPatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { DomainSelect, DomainWithRelations, DomainPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts index 89c8a59da..94c754ac4 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Email + * User email addresses with verification and primary-email management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts index 819636de6..3c499b09e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts deleted file mode 100644 index ca0f69bbb..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Update mutation hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import { limitFunctionMutationKeys } from '../mutation-keys'; -import type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionPatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a LimitFunction - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateLimitFunctionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', limitFunctionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateLimitFunctionMutation( - params: { - selection: { - fields: S & LimitFunctionSelect; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseMutationOptions< - { - updateLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - limitFunctionPatch: LimitFunctionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - limitFunctionPatch: LimitFunctionPatch; - } ->; -export function useUpdateLimitFunctionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - limitFunctionPatch: LimitFunctionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: limitFunctionMutationKeys.all, - mutationFn: ({ - id, - limitFunctionPatch, - }: { - id: string; - limitFunctionPatch: LimitFunctionPatch; - }) => - getClient() - .limitFunction.update({ - where: { - id, - }, - data: limitFunctionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts index caee90ff0..36101d2c0 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { MembershipTypePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts index 41f8e6380..a33b9997e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgAdminGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts new file mode 100644 index 000000000..151d9fa11 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantPatch, +} from '../../orm/input-types'; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgChartEdgeGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgChartEdgeGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgChartEdgeGrantMutation( + params: { + selection: { + fields: S & OrgChartEdgeGrantSelect; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } +>; +export function useUpdateOrgChartEdgeGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeGrantMutationKeys.all, + mutationFn: ({ + id, + orgChartEdgeGrantPatch, + }: { + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; + }) => + getClient() + .orgChartEdgeGrant.update({ + where: { + id, + }, + data: orgChartEdgeGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts new file mode 100644 index 000000000..e169ad09a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts @@ -0,0 +1,110 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import { orgChartEdgeMutationKeys } from '../mutation-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgePatch, +} from '../../orm/input-types'; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgChartEdgeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgChartEdgePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgChartEdgeMutation( + params: { + selection: { + fields: S & OrgChartEdgeSelect; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } +>; +export function useUpdateOrgChartEdgeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgChartEdgePatch: OrgChartEdgePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgChartEdgeMutationKeys.all, + mutationFn: ({ id, orgChartEdgePatch }: { id: string; orgChartEdgePatch: OrgChartEdgePatch }) => + getClient() + .orgChartEdge.update({ + where: { + id, + }, + data: orgChartEdgePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgChartEdgeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts index 8b2a21d55..536c3ba76 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgClaimedInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts index fc612cf93..50e725580 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts index 5093adbfc..deae91a03 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgInvitePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts index 9226eadb8..c80fc084e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgLimitDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts index cd8f3baed..b911eef59 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts index 42f54bfc7..9afc577fb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMemberPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts index 06b97181c..4536a0d0f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMembershipDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts index 5a8998fb2..af8939d5e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMembershipPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts index f1704e8be..3bd0c3ac2 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgOwnerGrantPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts index b512499d2..b53a85a67 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgPermissionDefaultPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts index 69be765f0..2704a2545 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgPermissionPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts index e78b8e139..fa058b143 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { PhoneNumberPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts deleted file mode 100644 index 7a4654e0e..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Update mutation hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import { procedureMutationKeys } from '../mutation-keys'; -import type { - ProcedureSelect, - ProcedureWithRelations, - ProcedurePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ProcedureSelect, - ProcedureWithRelations, - ProcedurePatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a Procedure - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateProcedureMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', procedurePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateProcedureMutation( - params: { - selection: { - fields: S & ProcedureSelect; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseMutationOptions< - { - updateProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - procedurePatch: ProcedurePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - procedurePatch: ProcedurePatch; - } ->; -export function useUpdateProcedureMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - procedurePatch: ProcedurePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: procedureMutationKeys.all, - mutationFn: ({ id, procedurePatch }: { id: string; procedurePatch: ProcedurePatch }) => - getClient() - .procedure.update({ - where: { - id, - }, - data: procedurePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: procedureKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRelationProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRelationProvisionMutation.ts new file mode 100644 index 000000000..d74fa64df --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRelationProvisionMutation.ts @@ -0,0 +1,130 @@ +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { relationProvisionKeys } from '../query-keys'; +import { relationProvisionMutationKeys } from '../mutation-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, + RelationProvisionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, + RelationProvisionPatch, +} from '../../orm/input-types'; +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRelationProvisionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', relationProvisionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRelationProvisionMutation( + params: { + selection: { + fields: S & RelationProvisionSelect; + } & HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseMutationOptions< + { + updateRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + relationProvisionPatch: RelationProvisionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRelationProvision: { + relationProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + relationProvisionPatch: RelationProvisionPatch; + } +>; +export function useUpdateRelationProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + relationProvisionPatch: RelationProvisionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: relationProvisionMutationKeys.all, + mutationFn: ({ + id, + relationProvisionPatch, + }: { + id: string; + relationProvisionPatch: RelationProvisionPatch; + }) => + getClient() + .relationProvision.update({ + where: { + id, + }, + data: relationProvisionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecureTableProvisionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecureTableProvisionMutation.ts new file mode 100644 index 000000000..d6b41f846 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecureTableProvisionMutation.ts @@ -0,0 +1,116 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { secureTableProvisionKeys } from '../query-keys'; +import { secureTableProvisionMutationKeys } from '../mutation-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + SecureTableProvisionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + SecureTableProvisionPatch, +} from '../../orm/input-types'; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSecureTableProvisionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', secureTableProvisionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSecureTableProvisionMutation( + params: { + selection: { + fields: S & SecureTableProvisionSelect; + } & HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseMutationOptions< + { + updateSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }, + Error, + { + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; + } +>; +export function useUpdateSecureTableProvisionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: secureTableProvisionMutationKeys.all, + mutationFn: ({ + id, + secureTableProvisionPatch, + }: { + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; + }) => + getClient() + .secureTableProvision.update({ + where: { + id, + }, + data: secureTableProvisionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts index ff095193b..b43af78cb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { SiteMetadatumPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts index bad5e2c14..d03870a5a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { SiteModulePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts index e0f36e311..6b95d2010 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { SiteSelect, SiteWithRelations, SitePatch } from '../../orm/input-t import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { SiteSelect, SiteWithRelations, SitePatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Site + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts index 9f98fc641..48a015f09 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { SiteThemePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/queries/index.ts b/sdk/constructive-react/src/public/hooks/queries/index.ts index dc028e7a2..031a33a34 100644 --- a/sdk/constructive-react/src/public/hooks/queries/index.ts +++ b/sdk/constructive-react/src/public/hooks/queries/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useOrgGetManagersQuery'; +export * from './useOrgGetSubordinatesQuery'; export * from './useGetAllQuery'; export * from './useAppPermissionsQuery'; export * from './useAppPermissionQuery'; @@ -28,8 +30,6 @@ export * from './useFullTextSearchesQuery'; export * from './useFullTextSearchQuery'; export * from './useIndicesQuery'; export * from './useIndexQuery'; -export * from './useLimitFunctionsQuery'; -export * from './useLimitFunctionQuery'; export * from './usePoliciesQuery'; export * from './usePolicyQuery'; export * from './usePrimaryKeyConstraintsQuery'; @@ -52,8 +52,14 @@ export * from './useTableModulesQuery'; export * from './useTableModuleQuery'; export * from './useTableTemplateModulesQuery'; export * from './useTableTemplateModuleQuery'; +export * from './useSecureTableProvisionsQuery'; +export * from './useSecureTableProvisionQuery'; +export * from './useRelationProvisionsQuery'; +export * from './useRelationProvisionQuery'; export * from './useSchemaGrantsQuery'; export * from './useSchemaGrantQuery'; +export * from './useDefaultPrivilegesQuery'; +export * from './useDefaultPrivilegeQuery'; export * from './useApiSchemasQuery'; export * from './useApiSchemaQuery'; export * from './useApiModulesQuery'; @@ -66,8 +72,6 @@ export * from './useSiteModulesQuery'; export * from './useSiteModuleQuery'; export * from './useSiteThemesQuery'; export * from './useSiteThemeQuery'; -export * from './useProceduresQuery'; -export * from './useProcedureQuery'; export * from './useTriggerFunctionsQuery'; export * from './useTriggerFunctionQuery'; export * from './useApisQuery'; @@ -138,6 +142,10 @@ export * from './useOrgOwnerGrantsQuery'; export * from './useOrgOwnerGrantQuery'; export * from './useOrgGrantsQuery'; export * from './useOrgGrantQuery'; +export * from './useOrgChartEdgesQuery'; +export * from './useOrgChartEdgeQuery'; +export * from './useOrgChartEdgeGrantsQuery'; +export * from './useOrgChartEdgeGrantQuery'; export * from './useAppLimitsQuery'; export * from './useAppLimitQuery'; export * from './useOrgLimitsQuery'; @@ -154,50 +162,50 @@ export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; -export * from './useAppPermissionDefaultsQuery'; -export * from './useAppPermissionDefaultQuery'; export * from './useRefsQuery'; export * from './useRefQuery'; export * from './useStoresQuery'; export * from './useStoreQuery'; +export * from './useAppPermissionDefaultsQuery'; +export * from './useAppPermissionDefaultQuery'; export * from './useRoleTypesQuery'; export * from './useRoleTypeQuery'; export * from './useOrgPermissionDefaultsQuery'; export * from './useOrgPermissionDefaultQuery'; +export * from './useCryptoAddressesQuery'; +export * from './useCryptoAddressQuery'; export * from './useAppLimitDefaultsQuery'; export * from './useAppLimitDefaultQuery'; export * from './useOrgLimitDefaultsQuery'; export * from './useOrgLimitDefaultQuery'; -export * from './useCryptoAddressesQuery'; -export * from './useCryptoAddressQuery'; -export * from './useMembershipTypesQuery'; -export * from './useMembershipTypeQuery'; export * from './useConnectedAccountsQuery'; export * from './useConnectedAccountQuery'; export * from './usePhoneNumbersQuery'; export * from './usePhoneNumberQuery'; -export * from './useAppMembershipDefaultsQuery'; -export * from './useAppMembershipDefaultQuery'; +export * from './useMembershipTypesQuery'; +export * from './useMembershipTypeQuery'; export * from './useNodeTypeRegistriesQuery'; export * from './useNodeTypeRegistryQuery'; +export * from './useAppMembershipDefaultsQuery'; +export * from './useAppMembershipDefaultQuery'; export * from './useCommitsQuery'; export * from './useCommitQuery'; export * from './useOrgMembershipDefaultsQuery'; export * from './useOrgMembershipDefaultQuery'; -export * from './useEmailsQuery'; -export * from './useEmailQuery'; export * from './useAuditLogsQuery'; export * from './useAuditLogQuery'; export * from './useAppLevelsQuery'; export * from './useAppLevelQuery'; +export * from './useEmailsQuery'; +export * from './useEmailQuery'; export * from './useSqlMigrationsQuery'; export * from './useSqlMigrationQuery'; export * from './useAstMigrationsQuery'; export * from './useAstMigrationQuery'; -export * from './useAppMembershipsQuery'; -export * from './useAppMembershipQuery'; export * from './useUsersQuery'; export * from './useUserQuery'; +export * from './useAppMembershipsQuery'; +export * from './useAppMembershipQuery'; export * from './useHierarchyModulesQuery'; export * from './useHierarchyModuleQuery'; export * from './useCurrentUserIdQuery'; @@ -207,6 +215,7 @@ export * from './useAppPermissionsGetPaddedMaskQuery'; export * from './useOrgPermissionsGetPaddedMaskQuery'; export * from './useStepsAchievedQuery'; export * from './useRevParseQuery'; +export * from './useOrgIsManagerOfQuery'; export * from './useAppPermissionsGetMaskQuery'; export * from './useOrgPermissionsGetMaskQuery'; export * from './useAppPermissionsGetMaskByNamesQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts index feea7a029..d8ac6f281 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const apiModuleQueryKey = apiModuleKeys.detail; /** - * Query hook for fetching a single ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx @@ -70,7 +70,7 @@ export function useApiModuleQuery( }); } /** - * Fetch a single ApiModule without React hooks + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchApiModuleQuery(params: { .unwrap(); } /** - * Prefetch a single ApiModule for SSR or cache warming + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts index 29071cbfb..778a01ef9 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ApiModule + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const apiModulesQueryKey = apiModuleKeys.list; /** - * Query hook for fetching ApiModule list + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```tsx @@ -84,7 +84,7 @@ export function useApiModulesQuery( }); } /** - * Fetch ApiModule list without React hooks + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchApiModulesQuery(params: { return getClient().apiModule.findMany(args).unwrap(); } /** - * Prefetch ApiModule list for SSR or cache warming + * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts index 090b98750..1ccc623da 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const apiQueryKey = apiKeys.detail; /** - * Query hook for fetching a single Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx @@ -70,7 +70,7 @@ export function useApiQuery( }); } /** - * Fetch a single Api without React hooks + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```ts @@ -98,7 +98,7 @@ export async function fetchApiQuery(params: { id: string; selection: SelectionCo .unwrap(); } /** - * Prefetch a single Api for SSR or cache warming + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts index 451fb0299..e0144dad2 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const apiSchemaQueryKey = apiSchemaKeys.detail; /** - * Query hook for fetching a single ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx @@ -70,7 +70,7 @@ export function useApiSchemaQuery( }); } /** - * Fetch a single ApiSchema without React hooks + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchApiSchemaQuery(params: { .unwrap(); } /** - * Prefetch a single ApiSchema for SSR or cache warming + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts index 56efdb59a..c707c34cf 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ApiSchema + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const apiSchemasQueryKey = apiSchemaKeys.list; /** - * Query hook for fetching ApiSchema list + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```tsx @@ -84,7 +84,7 @@ export function useApiSchemasQuery( }); } /** - * Fetch ApiSchema list without React hooks + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchApiSchemasQuery(params: { return getClient().apiSchema.findMany(args).unwrap(); } /** - * Prefetch ApiSchema list for SSR or cache warming + * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts index b3fa3b5bd..cd2130e61 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Api + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { ApiSelect, ApiWithRelations, ApiFilter, ApiOrderBy } from '../../o /** Query key factory - re-exported from query-keys.ts */ export const apisQueryKey = apiKeys.list; /** - * Query hook for fetching Api list + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```tsx @@ -72,7 +72,7 @@ export function useApisQuery( }); } /** - * Fetch Api list without React hooks + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```ts @@ -99,7 +99,7 @@ export async function fetchApisQuery(params: { return getClient().api.findMany(args).unwrap(); } /** - * Prefetch Api list for SSR or cache warming + * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts index df345dff7..c7750c259 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppAchievementSelect, AppAchievementWithRelations } from '../../or /** Query key factory - re-exported from query-keys.ts */ export const appAchievementQueryKey = appAchievementKeys.detail; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAchievementQuery( }); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAchievementQuery(params: { .unwrap(); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts index da6cdc397..d2b39ab84 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts @@ -1,5 +1,5 @@ /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appAchievementsQueryKey = appAchievementKeys.list; /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppAchievementsQuery( }); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchAppAchievementsQuery(params: { return getClient().appAchievement.findMany(args).unwrap(); } /** - * This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. + * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts index d010f7876..dab440873 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appAdminGrantQueryKey = appAdminGrantKeys.detail; /** - * Query hook for fetching a single AppAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAdminGrantQuery( }); } /** - * Fetch a single AppAdminGrant without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAdminGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppAdminGrant for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts index eb47436de..c41e3bfcf 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appAdminGrantsQueryKey = appAdminGrantKeys.list; /** - * Query hook for fetching AppAdminGrant list + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppAdminGrantsQuery( }); } /** - * Fetch AppAdminGrant list without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppAdminGrantsQuery(params: { return getClient().appAdminGrant.findMany(args).unwrap(); } /** - * Prefetch AppAdminGrant list for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts index a730510c7..41777becd 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appGrantQueryKey = appGrantKeys.detail; /** - * Query hook for fetching a single AppGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppGrantQuery( }); } /** - * Fetch a single AppGrant without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppGrant for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts index cf20fe3c6..de0684b89 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appGrantsQueryKey = appGrantKeys.list; /** - * Query hook for fetching AppGrant list + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppGrantsQuery( }); } /** - * Fetch AppGrant list without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppGrantsQuery(params: { return getClient().appGrant.findMany(args).unwrap(); } /** - * Prefetch AppGrant list for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts index 6d494bc93..2d947f33f 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appLevelQueryKey = appLevelKeys.detail; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLevelQuery( }); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLevelQuery(params: { .unwrap(); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts index 1735a08d4..c446092be 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelRequirementQueryKey = appLevelRequirementKeys.detail; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppLevelRequirementQuery( }); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppLevelRequirementQuery(params: { .unwrap(); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts index 502b029db..7dd162330 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts @@ -1,5 +1,5 @@ /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelRequirementsQueryKey = appLevelRequirementKeys.list; /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```tsx @@ -95,7 +95,7 @@ export function useAppLevelRequirementsQuery( }); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts @@ -133,7 +133,7 @@ export async function fetchAppLevelRequirementsQuery(params: { return getClient().appLevelRequirement.findMany(args).unwrap(); } /** - * Requirements to achieve a level + * Defines the specific requirements that must be met to achieve a level * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts index b576855c9..4e237d953 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts @@ -1,5 +1,5 @@ /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLevelsQueryKey = appLevelKeys.list; /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLevelsQuery( }); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLevelsQuery(params: { return getClient().appLevel.findMany(args).unwrap(); } /** - * Levels for achievement + * Defines available levels that users can achieve by completing requirements * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts index c68c8c7ca..3f9e92b4c 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../ /** Query key factory - re-exported from query-keys.ts */ export const appLimitDefaultQueryKey = appLimitDefaultKeys.detail; /** - * Query hook for fetching a single AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLimitDefaultQuery( }); } /** - * Fetch a single AppLimitDefault without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLimitDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppLimitDefault for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts index 8f702ecb1..25eb72182 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitDefaultsQueryKey = appLimitDefaultKeys.list; /** - * Query hook for fetching AppLimitDefault list + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppLimitDefaultsQuery( }); } /** - * Fetch AppLimitDefault list without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchAppLimitDefaultsQuery(params: { return getClient().appLimitDefault.findMany(args).unwrap(); } /** - * Prefetch AppLimitDefault list for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts index eb7beb27f..92f7ca2ab 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appLimitQueryKey = appLimitKeys.detail; /** - * Query hook for fetching a single AppLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLimitQuery( }); } /** - * Fetch a single AppLimit without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLimitQuery(params: { .unwrap(); } /** - * Prefetch a single AppLimit for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts index 280fd25e8..fc868ff90 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitsQueryKey = appLimitKeys.list; /** - * Query hook for fetching AppLimit list + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLimitsQuery( }); } /** - * Fetch AppLimit list without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLimitsQuery(params: { return getClient().appLimit.findMany(args).unwrap(); } /** - * Prefetch AppLimit list for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts index b34f50fc2..7cf34e91a 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipDefaultQueryKey = appMembershipDefaultKeys.detail; /** - * Query hook for fetching a single AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppMembershipDefaultQuery( }); } /** - * Fetch a single AppMembershipDefault without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppMembershipDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppMembershipDefault for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts index bda74e8ba..a3722e798 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipDefaultsQueryKey = appMembershipDefaultKeys.list; /** - * Query hook for fetching AppMembershipDefault list + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -97,7 +97,7 @@ export function useAppMembershipDefaultsQuery( }); } /** - * Fetch AppMembershipDefault list without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchAppMembershipDefaultsQuery(params: { return getClient().appMembershipDefault.findMany(args).unwrap(); } /** - * Prefetch AppMembershipDefault list for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts index 5cd832890..47a401be2 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appMembershipQueryKey = appMembershipKeys.detail; /** - * Query hook for fetching a single AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppMembershipQuery( }); } /** - * Fetch a single AppMembership without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppMembershipQuery(params: { .unwrap(); } /** - * Prefetch a single AppMembership for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts index 714e4372b..4a7406a96 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipsQueryKey = appMembershipKeys.list; /** - * Query hook for fetching AppMembership list + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppMembershipsQuery( }); } /** - * Fetch AppMembership list without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppMembershipsQuery(params: { return getClient().appMembership.findMany(args).unwrap(); } /** - * Prefetch AppMembership list for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts index 49fcb6506..98a75b276 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appOwnerGrantQueryKey = appOwnerGrantKeys.detail; /** - * Query hook for fetching a single AppOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppOwnerGrantQuery( }); } /** - * Fetch a single AppOwnerGrant without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppOwnerGrantQuery(params: { .unwrap(); } /** - * Prefetch a single AppOwnerGrant for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts index 25a312bcc..3cd73b539 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appOwnerGrantsQueryKey = appOwnerGrantKeys.list; /** - * Query hook for fetching AppOwnerGrant list + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppOwnerGrantsQuery( }); } /** - * Fetch AppOwnerGrant list without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppOwnerGrantsQuery(params: { return getClient().appOwnerGrant.findMany(args).unwrap(); } /** - * Prefetch AppOwnerGrant list for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts index 47eb66e64..27e973c84 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionDefaultQueryKey = appPermissionDefaultKeys.detail; /** - * Query hook for fetching a single AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppPermissionDefaultQuery( }); } /** - * Fetch a single AppPermissionDefault without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppPermissionDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single AppPermissionDefault for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts index 21414a9fb..44cdda731 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionDefaultsQueryKey = appPermissionDefaultKeys.list; /** - * Query hook for fetching AppPermissionDefault list + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -97,7 +97,7 @@ export function useAppPermissionDefaultsQuery( }); } /** - * Fetch AppPermissionDefault list without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchAppPermissionDefaultsQuery(params: { return getClient().appPermissionDefault.findMany(args).unwrap(); } /** - * Prefetch AppPermissionDefault list for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts index 37a00c5e9..a71c93422 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appPermissionQueryKey = appPermissionKeys.detail; /** - * Query hook for fetching a single AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppPermissionQuery( }); } /** - * Fetch a single AppPermission without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppPermissionQuery(params: { .unwrap(); } /** - * Prefetch a single AppPermission for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts index f44f4e105..67d25dcdc 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AppPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appPermissionsQueryKey = appPermissionKeys.list; /** - * Query hook for fetching AppPermission list + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppPermissionsQuery( }); } /** - * Fetch AppPermission list without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppPermissionsQuery(params: { return getClient().appPermission.findMany(args).unwrap(); } /** - * Prefetch AppPermission list for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts index 517440db4..b01e48183 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppSelect, AppWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const appQueryKey = appKeys.detail; /** - * Query hook for fetching a single App + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppQuery( }); } /** - * Fetch a single App without React hooks + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```ts @@ -98,7 +98,7 @@ export async function fetchAppQuery(params: { id: string; selection: SelectionCo .unwrap(); } /** - * Prefetch a single App for SSR or cache warming + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts index d6d579aef..5d3ebbbd0 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types' /** Query key factory - re-exported from query-keys.ts */ export const appStepQueryKey = appStepKeys.detail; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppStepQuery( }); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppStepQuery(params: { .unwrap(); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts index 9a4ec77c5..a20c454ec 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts @@ -1,5 +1,5 @@ /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appStepsQueryKey = appStepKeys.list; /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppStepsQuery( }); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppStepsQuery(params: { return getClient().appStep.findMany(args).unwrap(); } /** - * The user achieving a requirement for a level. Log table that has every single step ever taken. + * Log of individual user actions toward level requirements; every single step ever taken is recorded here * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts index 34c802258..da1d6a02d 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for App + * Mobile and native app configuration linked to a site, including store links and identifiers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppSelect, AppWithRelations, AppFilter, AppOrderBy } from '../../o /** Query key factory - re-exported from query-keys.ts */ export const appsQueryKey = appKeys.list; /** - * Query hook for fetching App list + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```tsx @@ -72,7 +72,7 @@ export function useAppsQuery( }); } /** - * Fetch App list without React hooks + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```ts @@ -99,7 +99,7 @@ export async function fetchAppsQuery(params: { return getClient().app.findMany(args).unwrap(); } /** - * Prefetch App list for SSR or cache warming + * Mobile and native app configuration linked to a site, including store links and identifiers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts index 99af2d7fe..ccfe6231a 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const auditLogQueryKey = auditLogKeys.detail; /** - * Query hook for fetching a single AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAuditLogQuery( }); } /** - * Fetch a single AuditLog without React hooks + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAuditLogQuery(params: { .unwrap(); } /** - * Prefetch a single AuditLog for SSR or cache warming + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts index 2fd0f9384..aca271c1d 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for AuditLog + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const auditLogsQueryKey = auditLogKeys.list; /** - * Query hook for fetching AuditLog list + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAuditLogsQuery( }); } /** - * Fetch AuditLog list without React hooks + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAuditLogsQuery(params: { return getClient().auditLog.findMany(args).unwrap(); } /** - * Prefetch AuditLog list for SSR or cache warming + * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts index e74f389c7..e028debb3 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const claimedInviteQueryKey = claimedInviteKeys.detail; /** - * Query hook for fetching a single ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useClaimedInviteQuery( }); } /** - * Fetch a single ClaimedInvite without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchClaimedInviteQuery(params: { .unwrap(); } /** - * Prefetch a single ClaimedInvite for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts index 9373984d9..55ef8c00b 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const claimedInvitesQueryKey = claimedInviteKeys.list; /** - * Query hook for fetching ClaimedInvite list + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -86,7 +86,7 @@ export function useClaimedInvitesQuery( }); } /** - * Fetch ClaimedInvite list without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchClaimedInvitesQuery(params: { return getClient().claimedInvite.findMany(args).unwrap(); } /** - * Prefetch ClaimedInvite list for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts index 21a88edf9..913b660d4 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../. /** Query key factory - re-exported from query-keys.ts */ export const connectedAccountQueryKey = connectedAccountKeys.detail; /** - * Query hook for fetching a single ConnectedAccount + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx @@ -70,7 +70,7 @@ export function useConnectedAccountQuery( }); } /** - * Fetch a single ConnectedAccount without React hooks + * OAuth and social login connections linking external service accounts to users * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchConnectedAccountQuery(params: { .unwrap(); } /** - * Prefetch a single ConnectedAccount for SSR or cache warming + * OAuth and social login connections linking external service accounts to users * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts index 326e1b80c..b75ee2f80 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ConnectedAccount + * OAuth and social login connections linking external service accounts to users * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const connectedAccountsQueryKey = connectedAccountKeys.list; /** - * Query hook for fetching ConnectedAccount list + * OAuth and social login connections linking external service accounts to users * * @example * ```tsx @@ -90,7 +90,7 @@ export function useConnectedAccountsQuery( }); } /** - * Fetch ConnectedAccount list without React hooks + * OAuth and social login connections linking external service accounts to users * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchConnectedAccountsQuery(params: { return getClient().connectedAccount.findMany(args).unwrap(); } /** - * Prefetch ConnectedAccount list for SSR or cache warming + * OAuth and social login connections linking external service accounts to users * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts index cc9c73a90..71a5ea067 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const cryptoAddressQueryKey = cryptoAddressKeys.detail; /** - * Query hook for fetching a single CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx @@ -70,7 +70,7 @@ export function useCryptoAddressQuery( }); } /** - * Fetch a single CryptoAddress without React hooks + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchCryptoAddressQuery(params: { .unwrap(); } /** - * Prefetch a single CryptoAddress for SSR or cache warming + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts index 33cafeede..ffb35cc20 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for CryptoAddress + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const cryptoAddressesQueryKey = cryptoAddressKeys.list; /** - * Query hook for fetching CryptoAddress list + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```tsx @@ -86,7 +86,7 @@ export function useCryptoAddressesQuery( }); } /** - * Fetch CryptoAddress list without React hooks + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchCryptoAddressesQuery(params: { return getClient().cryptoAddress.findMany(args).unwrap(); } /** - * Prefetch CryptoAddress list for SSR or cache warming + * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegeQuery.ts new file mode 100644 index 000000000..ab0b868fe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegeQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for DefaultPrivilege + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { defaultPrivilegeKeys } from '../query-keys'; +import type { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const defaultPrivilegeQueryKey = defaultPrivilegeKeys.detail; +/** + * Query hook for fetching a single DefaultPrivilege + * + * @example + * ```tsx + * const { data, isLoading } = useDefaultPrivilegeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDefaultPrivilegeQuery< + S extends DefaultPrivilegeSelect, + TData = { + defaultPrivilege: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DefaultPrivilegeSelect>; + } & Omit< + UseQueryOptions< + { + defaultPrivilege: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDefaultPrivilegeQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: defaultPrivilegeKeys.detail(params.id), + queryFn: () => + getClient() + .defaultPrivilege.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single DefaultPrivilege without React hooks + * + * @example + * ```ts + * const data = await fetchDefaultPrivilegeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDefaultPrivilegeQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DefaultPrivilegeSelect>; +}): Promise<{ + defaultPrivilege: InferSelectResult | null; +}>; +export async function fetchDefaultPrivilegeQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .defaultPrivilege.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single DefaultPrivilege for SSR or cache warming + * + * @example + * ```ts + * await prefetchDefaultPrivilegeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDefaultPrivilegeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DefaultPrivilegeSelect>; + } +): Promise; +export async function prefetchDefaultPrivilegeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: defaultPrivilegeKeys.detail(params.id), + queryFn: () => + getClient() + .defaultPrivilege.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegesQuery.ts new file mode 100644 index 000000000..c3bdf6637 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for DefaultPrivilege + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { defaultPrivilegeKeys } from '../query-keys'; +import type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DefaultPrivilegeSelect, + DefaultPrivilegeWithRelations, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const defaultPrivilegesQueryKey = defaultPrivilegeKeys.list; +/** + * Query hook for fetching DefaultPrivilege list + * + * @example + * ```tsx + * const { data, isLoading } = useDefaultPrivilegesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDefaultPrivilegesQuery< + S extends DefaultPrivilegeSelect, + TData = { + defaultPrivileges: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DefaultPrivilegeSelect>; + } & Omit< + UseQueryOptions< + { + defaultPrivileges: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDefaultPrivilegesQuery( + params: { + selection: ListSelectionConfig< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: defaultPrivilegeKeys.list(args), + queryFn: () => getClient().defaultPrivilege.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DefaultPrivilege list without React hooks + * + * @example + * ```ts + * const data = await fetchDefaultPrivilegesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDefaultPrivilegesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DefaultPrivilegeSelect>; +}): Promise<{ + defaultPrivileges: ConnectionResult>; +}>; +export async function fetchDefaultPrivilegesQuery(params: { + selection: ListSelectionConfig< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >; +}) { + const args = buildListSelectionArgs< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >(params.selection); + return getClient().defaultPrivilege.findMany(args).unwrap(); +} +/** + * Prefetch DefaultPrivilege list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDefaultPrivilegesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDefaultPrivilegesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DefaultPrivilegeSelect>; + } +): Promise; +export async function prefetchDefaultPrivilegesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: defaultPrivilegeKeys.list(args), + queryFn: () => getClient().defaultPrivilege.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts index ca7e69348..036e59edd 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { DomainSelect, DomainWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const domainQueryKey = domainKeys.detail; /** - * Query hook for fetching a single Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx @@ -70,7 +70,7 @@ export function useDomainQuery( }); } /** - * Fetch a single Domain without React hooks + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchDomainQuery(params: { .unwrap(); } /** - * Prefetch a single Domain for SSR or cache warming + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts index 02804c8fb..6c2aa7574 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Domain + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const domainsQueryKey = domainKeys.list; /** - * Query hook for fetching Domain list + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```tsx @@ -82,7 +82,7 @@ export function useDomainsQuery( }); } /** - * Fetch Domain list without React hooks + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchDomainsQuery(params: { return getClient().domain.findMany(args).unwrap(); } /** - * Prefetch Domain list for SSR or cache warming + * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts index d954e6328..c8e881673 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const emailQueryKey = emailKeys.detail; /** - * Query hook for fetching a single Email + * User email addresses with verification and primary-email management * * @example * ```tsx @@ -70,7 +70,7 @@ export function useEmailQuery( }); } /** - * Fetch a single Email without React hooks + * User email addresses with verification and primary-email management * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchEmailQuery(params: { .unwrap(); } /** - * Prefetch a single Email for SSR or cache warming + * User email addresses with verification and primary-email management * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts index 1dca30b06..44aa1f0ce 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Email + * User email addresses with verification and primary-email management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const emailsQueryKey = emailKeys.list; /** - * Query hook for fetching Email list + * User email addresses with verification and primary-email management * * @example * ```tsx @@ -82,7 +82,7 @@ export function useEmailsQuery( }); } /** - * Fetch Email list without React hooks + * User email addresses with verification and primary-email management * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchEmailsQuery(params: { return getClient().email.findMany(args).unwrap(); } /** - * Prefetch Email list for SSR or cache warming + * User email addresses with verification and primary-email management * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts index 51db01afb..7dc699235 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const inviteQueryKey = inviteKeys.detail; /** - * Query hook for fetching a single Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -70,7 +70,7 @@ export function useInviteQuery( }); } /** - * Fetch a single Invite without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchInviteQuery(params: { .unwrap(); } /** - * Prefetch a single Invite for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts index 19a1fd3b1..873e55aa5 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Invite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const invitesQueryKey = inviteKeys.list; /** - * Query hook for fetching Invite list + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -82,7 +82,7 @@ export function useInvitesQuery( }); } /** - * Fetch Invite list without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchInvitesQuery(params: { return getClient().invite.findMany(args).unwrap(); } /** - * Prefetch Invite list for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts deleted file mode 100644 index 6d7bed87d..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const limitFunctionQueryKey = limitFunctionKeys.detail; -/** - * Query hook for fetching a single LimitFunction - * - * @example - * ```tsx - * const { data, isLoading } = useLimitFunctionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useLimitFunctionQuery< - S extends LimitFunctionSelect, - TData = { - limitFunction: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseQueryOptions< - { - limitFunction: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useLimitFunctionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: limitFunctionKeys.detail(params.id), - queryFn: () => - getClient() - .limitFunction.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single LimitFunction without React hooks - * - * @example - * ```ts - * const data = await fetchLimitFunctionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchLimitFunctionQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LimitFunctionSelect>; -}): Promise<{ - limitFunction: InferSelectResult | null; -}>; -export async function fetchLimitFunctionQuery(params: { - id: string; - selection: SelectionConfig; -}) { - const args = buildSelectionArgs(params.selection); - return getClient() - .limitFunction.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single LimitFunction for SSR or cache warming - * - * @example - * ```ts - * await prefetchLimitFunctionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchLimitFunctionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LimitFunctionSelect>; - } -): Promise; -export async function prefetchLimitFunctionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: limitFunctionKeys.detail(params.id), - queryFn: () => - getClient() - .limitFunction.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionsQuery.ts deleted file mode 100644 index a6b16f109..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * List query hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionFilter, - LimitFunctionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionFilter, - LimitFunctionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const limitFunctionsQueryKey = limitFunctionKeys.list; -/** - * Query hook for fetching LimitFunction list - * - * @example - * ```tsx - * const { data, isLoading } = useLimitFunctionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useLimitFunctionsQuery< - S extends LimitFunctionSelect, - TData = { - limitFunctions: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseQueryOptions< - { - limitFunctions: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useLimitFunctionsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: limitFunctionKeys.list(args), - queryFn: () => getClient().limitFunction.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch LimitFunction list without React hooks - * - * @example - * ```ts - * const data = await fetchLimitFunctionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchLimitFunctionsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LimitFunctionSelect>; -}): Promise<{ - limitFunctions: ConnectionResult>; -}>; -export async function fetchLimitFunctionsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy - >(params.selection); - return getClient().limitFunction.findMany(args).unwrap(); -} -/** - * Prefetch LimitFunction list for SSR or cache warming - * - * @example - * ```ts - * await prefetchLimitFunctionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchLimitFunctionsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LimitFunctionSelect>; - } -): Promise; -export async function prefetchLimitFunctionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: limitFunctionKeys.list(args), - queryFn: () => getClient().limitFunction.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts index c8d749048..71fdd8b77 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../or /** Query key factory - re-exported from query-keys.ts */ export const membershipTypeQueryKey = membershipTypeKeys.detail; /** - * Query hook for fetching a single MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useMembershipTypeQuery( }); } /** - * Fetch a single MembershipType without React hooks + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchMembershipTypeQuery(params: { .unwrap(); } /** - * Prefetch a single MembershipType for SSR or cache warming + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts index c0f5b68c9..c148bab02 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for MembershipType + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const membershipTypesQueryKey = membershipTypeKeys.list; /** - * Query hook for fetching MembershipType list + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```tsx @@ -90,7 +90,7 @@ export function useMembershipTypesQuery( }); } /** - * Fetch MembershipType list without React hooks + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchMembershipTypesQuery(params: { return getClient().membershipType.findMany(args).unwrap(); } /** - * Prefetch MembershipType list for SSR or cache warming + * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts index a4f507c14..04901b7da 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgAdminGrantQueryKey = orgAdminGrantKeys.detail; /** - * Query hook for fetching a single OrgAdminGrant + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgAdminGrantQuery( }); } /** - * Fetch a single OrgAdminGrant without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgAdminGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgAdminGrant for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts index e3ce559b3..b79b6cfdd 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgAdminGrant + * Records of admin role grants and revocations between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgAdminGrantsQueryKey = orgAdminGrantKeys.list; /** - * Query hook for fetching OrgAdminGrant list + * Records of admin role grants and revocations between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgAdminGrantsQuery( }); } /** - * Fetch OrgAdminGrant list without React hooks + * Records of admin role grants and revocations between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgAdminGrantsQuery(params: { return getClient().orgAdminGrant.findMany(args).unwrap(); } /** - * Prefetch OrgAdminGrant list for SSR or cache warming + * Records of admin role grants and revocations between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts new file mode 100644 index 000000000..576725d54 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts @@ -0,0 +1,144 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeGrantQueryKey = orgChartEdgeGrantKeys.detail; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgChartEdgeGrantQuery< + S extends OrgChartEdgeGrantSelect, + TData = { + orgChartEdgeGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdgeGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; +}): Promise<{ + orgChartEdgeGrant: InferSelectResult | null; +}>; +export async function fetchOrgChartEdgeGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * await prefetchOrgChartEdgeGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgChartEdgeGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeGrantSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdgeGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts new file mode 100644 index 000000000..8f4c33b08 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts @@ -0,0 +1,163 @@ +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgChartEdgeGrantKeys } from '../query-keys'; +import type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeGrantsQueryKey = orgChartEdgeGrantKeys.list; +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgChartEdgeGrantsQuery< + S extends OrgChartEdgeGrantSelect, + TData = { + orgChartEdgeGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdgeGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeGrantsQuery( + params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeGrantKeys.list(args), + queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; +}): Promise<{ + orgChartEdgeGrants: ConnectionResult>; +}>; +export async function fetchOrgChartEdgeGrantsQuery(params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + return getClient().orgChartEdgeGrant.findMany(args).unwrap(); +} +/** + * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + * + * @example + * ```ts + * await prefetchOrgChartEdgeGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgChartEdgeGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeGrantSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeGrantKeys.list(args), + queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts new file mode 100644 index 000000000..9087f1620 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts @@ -0,0 +1,138 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgeQueryKey = orgChartEdgeKeys.detail; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgChartEdgeQuery< + S extends OrgChartEdgeSelect, + TData = { + orgChartEdge: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdge: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgeQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * const data = await fetchOrgChartEdgeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgChartEdgeQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; +}): Promise<{ + orgChartEdge: InferSelectResult | null; +}>; +export async function fetchOrgChartEdgeQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * await prefetchOrgChartEdgeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgChartEdgeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgChartEdgeSelect>; + } +): Promise; +export async function prefetchOrgChartEdgeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeKeys.detail(params.id), + queryFn: () => + getClient() + .orgChartEdge.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts new file mode 100644 index 000000000..c5030a79d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts @@ -0,0 +1,145 @@ +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgChartEdgeKeys } from '../query-keys'; +import type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgChartEdgeSelect, + OrgChartEdgeWithRelations, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgChartEdgesQueryKey = orgChartEdgeKeys.list; +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```tsx + * const { data, isLoading } = useOrgChartEdgesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgChartEdgesQuery< + S extends OrgChartEdgeSelect, + TData = { + orgChartEdges: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; + } & Omit< + UseQueryOptions< + { + orgChartEdges: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgChartEdgesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgChartEdgeKeys.list(args), + queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * const data = await fetchOrgChartEdgesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgChartEdgesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; +}): Promise<{ + orgChartEdges: ConnectionResult>; +}>; +export async function fetchOrgChartEdgesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgChartEdge.findMany(args).unwrap(); +} +/** + * Organizational chart edges defining parent-child reporting relationships between members within an entity + * + * @example + * ```ts + * await prefetchOrgChartEdgesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgChartEdgesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgChartEdgeSelect>; + } +): Promise; +export async function prefetchOrgChartEdgesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgChartEdgeKeys.list(args), + queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts index 42ac5f45a..19223fbe3 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../. /** Query key factory - re-exported from query-keys.ts */ export const orgClaimedInviteQueryKey = orgClaimedInviteKeys.detail; /** - * Query hook for fetching a single OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgClaimedInviteQuery( }); } /** - * Fetch a single OrgClaimedInvite without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgClaimedInviteQuery(params: { .unwrap(); } /** - * Prefetch a single OrgClaimedInvite for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts index 965828b20..300fb5adf 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgClaimedInvite + * Records of successfully claimed invitations, linking senders to receivers * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgClaimedInvitesQueryKey = orgClaimedInviteKeys.list; /** - * Query hook for fetching OrgClaimedInvite list + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```tsx @@ -90,7 +90,7 @@ export function useOrgClaimedInvitesQuery( }); } /** - * Fetch OrgClaimedInvite list without React hooks + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchOrgClaimedInvitesQuery(params: { return getClient().orgClaimedInvite.findMany(args).unwrap(); } /** - * Prefetch OrgClaimedInvite list for SSR or cache warming + * Records of successfully claimed invitations, linking senders to receivers * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts new file mode 100644 index 000000000..cd9e04016 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts @@ -0,0 +1,172 @@ +/** + * List query hook for OrgGetManagersRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgGetManagersRecordKeys } from '../query-keys'; +import type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGetManagersRecordSelect, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGetManagersQueryKey = orgGetManagersRecordKeys.list; +/** + * Query hook for fetching OrgGetManagersRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGetManagersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGetManagersQuery< + S extends OrgGetManagersRecordSelect, + TData = { + orgGetManagers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; + } & Omit< + UseQueryOptions< + { + orgGetManagers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGetManagersQuery( + params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGetManagersRecordKeys.list(args), + queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGetManagersRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGetManagersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGetManagersQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; +}): Promise<{ + orgGetManagers: ConnectionResult>; +}>; +export async function fetchOrgGetManagersQuery(params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + return getClient().orgGetManagersRecord.findMany(args).unwrap(); +} +/** + * Prefetch OrgGetManagersRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGetManagersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGetManagersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetManagersRecordSelect>; + } +): Promise; +export async function prefetchOrgGetManagersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGetManagersRecordKeys.list(args), + queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts new file mode 100644 index 000000000..5f006d3ca --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for OrgGetSubordinatesRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgGetSubordinatesRecordKeys } from '../query-keys'; +import type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGetSubordinatesQueryKey = orgGetSubordinatesRecordKeys.list; +/** + * Query hook for fetching OrgGetSubordinatesRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGetSubordinatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGetSubordinatesQuery< + S extends OrgGetSubordinatesRecordSelect, + TData = { + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } & Omit< + UseQueryOptions< + { + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGetSubordinatesQuery( + params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGetSubordinatesRecordKeys.list(args), + queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGetSubordinatesRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGetSubordinatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGetSubordinatesQuery< + S extends OrgGetSubordinatesRecordSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; +}): Promise<{ + orgGetSubordinates: ConnectionResult>; +}>; +export async function fetchOrgGetSubordinatesQuery(params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + return getClient().orgGetSubordinatesRecord.findMany(args).unwrap(); +} +/** + * Prefetch OrgGetSubordinatesRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGetSubordinatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGetSubordinatesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgGetSubordinatesRecordSelect>; + } +): Promise; +export async function prefetchOrgGetSubordinatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGetSubordinatesRecordKeys.list(args), + queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts index 14ccf29ec..cd04f290e 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const orgGrantQueryKey = orgGrantKeys.detail; /** - * Query hook for fetching a single OrgGrant + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgGrantQuery( }); } /** - * Fetch a single OrgGrant without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgGrant for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts index 8f1ddc2ab..f40214130 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgGrant + * Records of individual permission grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgGrantsQueryKey = orgGrantKeys.list; /** - * Query hook for fetching OrgGrant list + * Records of individual permission grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgGrantsQuery( }); } /** - * Fetch OrgGrant list without React hooks + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgGrantsQuery(params: { return getClient().orgGrant.findMany(args).unwrap(); } /** - * Prefetch OrgGrant list for SSR or cache warming + * Records of individual permission grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts index d6c2f623f..244288aa7 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const orgInviteQueryKey = orgInviteKeys.detail; /** - * Query hook for fetching a single OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgInviteQuery( }); } /** - * Fetch a single OrgInvite without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgInviteQuery(params: { .unwrap(); } /** - * Prefetch a single OrgInvite for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts index baaef3936..b5e0ee4dd 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgInvite + * Invitation records sent to prospective members via email, with token-based redemption and expiration * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgInvitesQueryKey = orgInviteKeys.list; /** - * Query hook for fetching OrgInvite list + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgInvitesQuery( }); } /** - * Fetch OrgInvite list without React hooks + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgInvitesQuery(params: { return getClient().orgInvite.findMany(args).unwrap(); } /** - * Prefetch OrgInvite list for SSR or cache warming + * Invitation records sent to prospective members via email, with token-based redemption and expiration * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts new file mode 100644 index 000000000..6092abc4a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for orgIsManagerOf + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customQueryKeys } from '../query-keys'; +import type { OrgIsManagerOfVariables } from '../../orm/query'; +export type { OrgIsManagerOfVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgIsManagerOfQueryKey = customQueryKeys.orgIsManagerOf; +/** + * Query hook for orgIsManagerOf + * + * @example + * ```tsx + * const { data, isLoading } = useOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * + * if (data?.orgIsManagerOf) { + * console.log(data.orgIsManagerOf); + * } + * ``` + */ +export function useOrgIsManagerOfQuery< + TData = { + orgIsManagerOf: boolean | null; + }, +>( + params?: { + variables?: OrgIsManagerOfVariables; + } & Omit< + UseQueryOptions< + { + orgIsManagerOf: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgIsManagerOfQuery< + TData = { + orgIsManagerOf: boolean | null; + }, +>( + params?: { + variables?: OrgIsManagerOfVariables; + } & Omit< + UseQueryOptions< + { + orgIsManagerOf: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgIsManagerOfQueryKey(variables), + queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgIsManagerOf without React hooks + * + * @example + * ```ts + * const data = await fetchOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * ``` + */ +export async function fetchOrgIsManagerOfQuery(params?: { variables?: OrgIsManagerOfVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.orgIsManagerOf(variables).unwrap(); +} +/** + * Prefetch orgIsManagerOf for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgIsManagerOfQuery(queryClient, { variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); + * ``` + */ +export async function prefetchOrgIsManagerOfQuery( + queryClient: QueryClient, + params?: { + variables?: OrgIsManagerOfVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgIsManagerOfQueryKey(variables), + queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts index 695d1eff9..4c0eff29a 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../ /** Query key factory - re-exported from query-keys.ts */ export const orgLimitDefaultQueryKey = orgLimitDefaultKeys.detail; /** - * Query hook for fetching a single OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgLimitDefaultQuery( }); } /** - * Fetch a single OrgLimitDefault without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgLimitDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgLimitDefault for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts index fae82e41b..5a7b07bbf 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgLimitDefault + * Default maximum values for each named limit, applied when no per-actor override exists * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgLimitDefaultsQueryKey = orgLimitDefaultKeys.list; /** - * Query hook for fetching OrgLimitDefault list + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```tsx @@ -90,7 +90,7 @@ export function useOrgLimitDefaultsQuery( }); } /** - * Fetch OrgLimitDefault list without React hooks + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchOrgLimitDefaultsQuery(params: { return getClient().orgLimitDefault.findMany(args).unwrap(); } /** - * Prefetch OrgLimitDefault list for SSR or cache warming + * Default maximum values for each named limit, applied when no per-actor override exists * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts index db061397b..a63b11f53 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const orgLimitQueryKey = orgLimitKeys.detail; /** - * Query hook for fetching a single OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgLimitQuery( }); } /** - * Fetch a single OrgLimit without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgLimitQuery(params: { .unwrap(); } /** - * Prefetch a single OrgLimit for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts index 032866dfb..320ccf624 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgLimit + * Tracks per-actor usage counts against configurable maximum limits * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgLimitsQueryKey = orgLimitKeys.list; /** - * Query hook for fetching OrgLimit list + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgLimitsQuery( }); } /** - * Fetch OrgLimit list without React hooks + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgLimitsQuery(params: { return getClient().orgLimit.findMany(args).unwrap(); } /** - * Prefetch OrgLimit list for SSR or cache warming + * Tracks per-actor usage counts against configurable maximum limits * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts index aa4257559..e8cbfeaa0 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const orgMemberQueryKey = orgMemberKeys.detail; /** - * Query hook for fetching a single OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgMemberQuery( }); } /** - * Fetch a single OrgMember without React hooks + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgMemberQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMember for SSR or cache warming + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts index 651d52afb..21929089e 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMember + * Simplified view of active members in an entity, used for listing who belongs to an org or group * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembersQueryKey = orgMemberKeys.list; /** - * Query hook for fetching OrgMember list + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgMembersQuery( }); } /** - * Fetch OrgMember list without React hooks + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgMembersQuery(params: { return getClient().orgMember.findMany(args).unwrap(); } /** - * Prefetch OrgMember list for SSR or cache warming + * Simplified view of active members in an entity, used for listing who belongs to an org or group * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts index 47264e0a5..bff51e2a0 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipDefaultQueryKey = orgMembershipDefaultKeys.detail; /** - * Query hook for fetching a single OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -76,7 +76,7 @@ export function useOrgMembershipDefaultQuery( }); } /** - * Fetch a single OrgMembershipDefault without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchOrgMembershipDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMembershipDefault for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts index 8cb20caae..06c715627 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMembershipDefault + * Default membership settings per entity, controlling initial approval and verification state for new members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipDefaultsQueryKey = orgMembershipDefaultKeys.list; /** - * Query hook for fetching OrgMembershipDefault list + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```tsx @@ -97,7 +97,7 @@ export function useOrgMembershipDefaultsQuery( }); } /** - * Fetch OrgMembershipDefault list without React hooks + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchOrgMembershipDefaultsQuery(params: { return getClient().orgMembershipDefault.findMany(args).unwrap(); } /** - * Prefetch OrgMembershipDefault list for SSR or cache warming + * Default membership settings per entity, controlling initial approval and verification state for new members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts index ec1c49d75..945adf98d 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipQueryKey = orgMembershipKeys.detail; /** - * Query hook for fetching a single OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgMembershipQuery( }); } /** - * Fetch a single OrgMembership without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgMembershipQuery(params: { .unwrap(); } /** - * Prefetch a single OrgMembership for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts index cde182a7b..2e620b485 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgMembership + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipsQueryKey = orgMembershipKeys.list; /** - * Query hook for fetching OrgMembership list + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgMembershipsQuery( }); } /** - * Fetch OrgMembership list without React hooks + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgMembershipsQuery(params: { return getClient().orgMembership.findMany(args).unwrap(); } /** - * Prefetch OrgMembership list for SSR or cache warming + * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts index 9a0b0c9df..ad6a4b4ba 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgOwnerGrantQueryKey = orgOwnerGrantKeys.detail; /** - * Query hook for fetching a single OrgOwnerGrant + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgOwnerGrantQuery( }); } /** - * Fetch a single OrgOwnerGrant without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgOwnerGrantQuery(params: { .unwrap(); } /** - * Prefetch a single OrgOwnerGrant for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts index 315d1cc57..5f22b3f8a 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgOwnerGrant + * Records of ownership transfers and grants between members * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgOwnerGrantsQueryKey = orgOwnerGrantKeys.list; /** - * Query hook for fetching OrgOwnerGrant list + * Records of ownership transfers and grants between members * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgOwnerGrantsQuery( }); } /** - * Fetch OrgOwnerGrant list without React hooks + * Records of ownership transfers and grants between members * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgOwnerGrantsQuery(params: { return getClient().orgOwnerGrant.findMany(args).unwrap(); } /** - * Prefetch OrgOwnerGrant list for SSR or cache warming + * Records of ownership transfers and grants between members * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts index 3f324b798..e1e71f5fc 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionDefaultQueryKey = orgPermissionDefaultKeys.detail; /** - * Query hook for fetching a single OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -76,7 +76,7 @@ export function useOrgPermissionDefaultQuery( }); } /** - * Fetch a single OrgPermissionDefault without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchOrgPermissionDefaultQuery(params: { .unwrap(); } /** - * Prefetch a single OrgPermissionDefault for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts index 021e73f1c..8bbff2240 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgPermissionDefault + * Stores the default permission bitmask assigned to new members upon joining * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionDefaultsQueryKey = orgPermissionDefaultKeys.list; /** - * Query hook for fetching OrgPermissionDefault list + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```tsx @@ -97,7 +97,7 @@ export function useOrgPermissionDefaultsQuery( }); } /** - * Fetch OrgPermissionDefault list without React hooks + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts @@ -137,7 +137,7 @@ export async function fetchOrgPermissionDefaultsQuery(params: { return getClient().orgPermissionDefault.findMany(args).unwrap(); } /** - * Prefetch OrgPermissionDefault list for SSR or cache warming + * Stores the default permission bitmask assigned to new members upon joining * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts index 3d28f9542..fcee408e9 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionQueryKey = orgPermissionKeys.detail; /** - * Query hook for fetching a single OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgPermissionQuery( }); } /** - * Fetch a single OrgPermission without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgPermissionQuery(params: { .unwrap(); } /** - * Prefetch a single OrgPermission for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts index 3e48264a6..b5272fe6f 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for OrgPermission + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgPermissionsQueryKey = orgPermissionKeys.list; /** - * Query hook for fetching OrgPermission list + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgPermissionsQuery( }); } /** - * Fetch OrgPermission list without React hooks + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgPermissionsQuery(params: { return getClient().orgPermission.findMany(args).unwrap(); } /** - * Prefetch OrgPermission list for SSR or cache warming + * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts index 7c7f6a47d..80a507f4f 100644 --- a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/inpu /** Query key factory - re-exported from query-keys.ts */ export const phoneNumberQueryKey = phoneNumberKeys.detail; /** - * Query hook for fetching a single PhoneNumber + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx @@ -70,7 +70,7 @@ export function usePhoneNumberQuery( }); } /** - * Fetch a single PhoneNumber without React hooks + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchPhoneNumberQuery(params: { .unwrap(); } /** - * Prefetch a single PhoneNumber for SSR or cache warming + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts index 3282244e1..1811e4e8f 100644 --- a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for PhoneNumber + * User phone numbers with country code, verification, and primary-number management * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const phoneNumbersQueryKey = phoneNumberKeys.list; /** - * Query hook for fetching PhoneNumber list + * User phone numbers with country code, verification, and primary-number management * * @example * ```tsx @@ -84,7 +84,7 @@ export function usePhoneNumbersQuery( }); } /** - * Fetch PhoneNumber list without React hooks + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchPhoneNumbersQuery(params: { return getClient().phoneNumber.findMany(args).unwrap(); } /** - * Prefetch PhoneNumber list for SSR or cache warming + * User phone numbers with country code, verification, and primary-number management * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts deleted file mode 100644 index 17afb7969..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const procedureQueryKey = procedureKeys.detail; -/** - * Query hook for fetching a single Procedure - * - * @example - * ```tsx - * const { data, isLoading } = useProcedureQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useProcedureQuery< - S extends ProcedureSelect, - TData = { - procedure: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseQueryOptions< - { - procedure: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useProcedureQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: procedureKeys.detail(params.id), - queryFn: () => - getClient() - .procedure.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single Procedure without React hooks - * - * @example - * ```ts - * const data = await fetchProcedureQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchProcedureQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ProcedureSelect>; -}): Promise<{ - procedure: InferSelectResult | null; -}>; -export async function fetchProcedureQuery(params: { - id: string; - selection: SelectionConfig; -}) { - const args = buildSelectionArgs(params.selection); - return getClient() - .procedure.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single Procedure for SSR or cache warming - * - * @example - * ```ts - * await prefetchProcedureQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchProcedureQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ProcedureSelect>; - } -): Promise; -export async function prefetchProcedureQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: procedureKeys.detail(params.id), - queryFn: () => - getClient() - .procedure.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useProceduresQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useProceduresQuery.ts deleted file mode 100644 index fbf5a1659..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useProceduresQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * List query hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import type { - ProcedureSelect, - ProcedureWithRelations, - ProcedureFilter, - ProcedureOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - ProcedureSelect, - ProcedureWithRelations, - ProcedureFilter, - ProcedureOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const proceduresQueryKey = procedureKeys.list; -/** - * Query hook for fetching Procedure list - * - * @example - * ```tsx - * const { data, isLoading } = useProceduresQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useProceduresQuery< - S extends ProcedureSelect, - TData = { - procedures: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ProcedureSelect>; - } & Omit< - UseQueryOptions< - { - procedures: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useProceduresQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: procedureKeys.list(args), - queryFn: () => getClient().procedure.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch Procedure list without React hooks - * - * @example - * ```ts - * const data = await fetchProceduresQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchProceduresQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ProcedureSelect>; -}): Promise<{ - procedures: ConnectionResult>; -}>; -export async function fetchProceduresQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().procedure.findMany(args).unwrap(); -} -/** - * Prefetch Procedure list for SSR or cache warming - * - * @example - * ```ts - * await prefetchProceduresQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchProceduresQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ProcedureSelect>; - } -): Promise; -export async function prefetchProceduresQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: procedureKeys.list(args), - queryFn: () => getClient().procedure.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionQuery.ts new file mode 100644 index 000000000..e2fb67d34 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionQuery.ts @@ -0,0 +1,172 @@ +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { relationProvisionKeys } from '../query-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const relationProvisionQueryKey = relationProvisionKeys.detail; +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * + * @example + * ```tsx + * const { data, isLoading } = useRelationProvisionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRelationProvisionQuery< + S extends RelationProvisionSelect, + TData = { + relationProvision: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseQueryOptions< + { + relationProvision: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRelationProvisionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: relationProvisionKeys.detail(params.id), + queryFn: () => + getClient() + .relationProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * + * @example + * ```ts + * const data = await fetchRelationProvisionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRelationProvisionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RelationProvisionSelect>; +}): Promise<{ + relationProvision: InferSelectResult | null; +}>; +export async function fetchRelationProvisionQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .relationProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * + * @example + * ```ts + * await prefetchRelationProvisionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRelationProvisionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RelationProvisionSelect>; + } +): Promise; +export async function prefetchRelationProvisionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: relationProvisionKeys.detail(params.id), + queryFn: () => + getClient() + .relationProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionsQuery.ts new file mode 100644 index 000000000..74da85397 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionsQuery.ts @@ -0,0 +1,191 @@ +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { relationProvisionKeys } from '../query-keys'; +import type { + RelationProvisionSelect, + RelationProvisionWithRelations, + RelationProvisionFilter, + RelationProvisionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RelationProvisionSelect, + RelationProvisionWithRelations, + RelationProvisionFilter, + RelationProvisionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const relationProvisionsQueryKey = relationProvisionKeys.list; +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * + * @example + * ```tsx + * const { data, isLoading } = useRelationProvisionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRelationProvisionsQuery< + S extends RelationProvisionSelect, + TData = { + relationProvisions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RelationProvisionSelect>; + } & Omit< + UseQueryOptions< + { + relationProvisions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRelationProvisionsQuery( + params: { + selection: ListSelectionConfig< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: relationProvisionKeys.list(args), + queryFn: () => getClient().relationProvision.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * + * @example + * ```ts + * const data = await fetchRelationProvisionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRelationProvisionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RelationProvisionSelect>; +}): Promise<{ + relationProvisions: ConnectionResult>; +}>; +export async function fetchRelationProvisionsQuery(params: { + selection: ListSelectionConfig< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >; +}) { + const args = buildListSelectionArgs< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >(params.selection); + return getClient().relationProvision.findMany(args).unwrap(); +} +/** + * Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + * + * @example + * ```ts + * await prefetchRelationProvisionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRelationProvisionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RelationProvisionSelect>; + } +): Promise; +export async function prefetchRelationProvisionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: relationProvisionKeys.list(args), + queryFn: () => getClient().relationProvision.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionQuery.ts new file mode 100644 index 000000000..5e413e783 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionQuery.ts @@ -0,0 +1,144 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { secureTableProvisionKeys } from '../query-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const secureTableProvisionQueryKey = secureTableProvisionKeys.detail; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { data, isLoading } = useSecureTableProvisionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSecureTableProvisionQuery< + S extends SecureTableProvisionSelect, + TData = { + secureTableProvision: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseQueryOptions< + { + secureTableProvision: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSecureTableProvisionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: secureTableProvisionKeys.detail(params.id), + queryFn: () => + getClient() + .secureTableProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```ts + * const data = await fetchSecureTableProvisionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSecureTableProvisionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecureTableProvisionSelect>; +}): Promise<{ + secureTableProvision: InferSelectResult | null; +}>; +export async function fetchSecureTableProvisionQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .secureTableProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```ts + * await prefetchSecureTableProvisionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSecureTableProvisionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecureTableProvisionSelect>; + } +): Promise; +export async function prefetchSecureTableProvisionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: secureTableProvisionKeys.detail(params.id), + queryFn: () => + getClient() + .secureTableProvision.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionsQuery.ts new file mode 100644 index 000000000..a9c13b79e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionsQuery.ts @@ -0,0 +1,178 @@ +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { secureTableProvisionKeys } from '../query-keys'; +import type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SecureTableProvisionSelect, + SecureTableProvisionWithRelations, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const secureTableProvisionsQueryKey = secureTableProvisionKeys.list; +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```tsx + * const { data, isLoading } = useSecureTableProvisionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSecureTableProvisionsQuery< + S extends SecureTableProvisionSelect, + TData = { + secureTableProvisions: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, SecureTableProvisionSelect>; + } & Omit< + UseQueryOptions< + { + secureTableProvisions: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSecureTableProvisionsQuery( + params: { + selection: ListSelectionConfig< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: secureTableProvisionKeys.list(args), + queryFn: () => getClient().secureTableProvision.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```ts + * const data = await fetchSecureTableProvisionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSecureTableProvisionsQuery< + S extends SecureTableProvisionSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, SecureTableProvisionSelect>; +}): Promise<{ + secureTableProvisions: ConnectionResult>; +}>; +export async function fetchSecureTableProvisionsQuery(params: { + selection: ListSelectionConfig< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >; +}) { + const args = buildListSelectionArgs< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >(params.selection); + return getClient().secureTableProvision.findMany(args).unwrap(); +} +/** + * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + * + * @example + * ```ts + * await prefetchSecureTableProvisionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSecureTableProvisionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, SecureTableProvisionSelect>; + } +): Promise; +export async function prefetchSecureTableProvisionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: secureTableProvisionKeys.list(args), + queryFn: () => getClient().secureTableProvision.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts index 7912d0be4..dd4c30759 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const siteMetadataQueryKey = siteMetadatumKeys.list; /** - * Query hook for fetching SiteMetadatum list + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx @@ -86,7 +86,7 @@ export function useSiteMetadataQuery( }); } /** - * Fetch SiteMetadatum list without React hooks + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchSiteMetadataQuery(params: { return getClient().siteMetadatum.findMany(args).unwrap(); } /** - * Prefetch SiteMetadatum list for SSR or cache warming + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts index 979351686..3eb273aa7 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { SiteMetadatumSelect, SiteMetadatumWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const siteMetadatumQueryKey = siteMetadatumKeys.detail; /** - * Query hook for fetching a single SiteMetadatum + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```tsx @@ -70,7 +70,7 @@ export function useSiteMetadatumQuery( }); } /** - * Fetch a single SiteMetadatum without React hooks + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchSiteMetadatumQuery(params: { .unwrap(); } /** - * Prefetch a single SiteMetadatum for SSR or cache warming + * SEO and social sharing metadata for a site: page title, description, and Open Graph image * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts index 5d0a71507..e820d658b 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { SiteModuleSelect, SiteModuleWithRelations } from '../../orm/input- /** Query key factory - re-exported from query-keys.ts */ export const siteModuleQueryKey = siteModuleKeys.detail; /** - * Query hook for fetching a single SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx @@ -70,7 +70,7 @@ export function useSiteModuleQuery( }); } /** - * Fetch a single SiteModule without React hooks + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchSiteModuleQuery(params: { .unwrap(); } /** - * Prefetch a single SiteModule for SSR or cache warming + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts index 8101108d7..7a6bd7751 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for SiteModule + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const siteModulesQueryKey = siteModuleKeys.list; /** - * Query hook for fetching SiteModule list + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```tsx @@ -84,7 +84,7 @@ export function useSiteModulesQuery( }); } /** - * Fetch SiteModule list without React hooks + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchSiteModulesQuery(params: { return getClient().siteModule.findMany(args).unwrap(); } /** - * Prefetch SiteModule list for SSR or cache warming + * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts index 6dfecd120..32643a7a5 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { SiteSelect, SiteWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const siteQueryKey = siteKeys.detail; /** - * Query hook for fetching a single Site + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx @@ -70,7 +70,7 @@ export function useSiteQuery( }); } /** - * Fetch a single Site without React hooks + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchSiteQuery(params: { .unwrap(); } /** - * Prefetch a single Site for SSR or cache warming + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts index 19ea2251f..ac6a1e774 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { SiteThemeSelect, SiteThemeWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const siteThemeQueryKey = siteThemeKeys.detail; /** - * Query hook for fetching a single SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx @@ -70,7 +70,7 @@ export function useSiteThemeQuery( }); } /** - * Fetch a single SiteTheme without React hooks + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchSiteThemeQuery(params: { .unwrap(); } /** - * Prefetch a single SiteTheme for SSR or cache warming + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts index eec19b9e2..97520f23e 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for SiteTheme + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const siteThemesQueryKey = siteThemeKeys.list; /** - * Query hook for fetching SiteTheme list + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```tsx @@ -84,7 +84,7 @@ export function useSiteThemesQuery( }); } /** - * Fetch SiteTheme list without React hooks + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchSiteThemesQuery(params: { return getClient().siteTheme.findMany(args).unwrap(); } /** - * Prefetch SiteTheme list for SSR or cache warming + * Theme configuration for a site; stores design tokens, colors, and typography as JSONB * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts index f159801f4..fb58658b2 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Site + * Top-level site configuration: branding assets, title, and description for a deployed application * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { SiteSelect, SiteWithRelations, SiteFilter, SiteOrderBy } from '../ /** Query key factory - re-exported from query-keys.ts */ export const sitesQueryKey = siteKeys.list; /** - * Query hook for fetching Site list + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```tsx @@ -72,7 +72,7 @@ export function useSitesQuery( }); } /** - * Fetch Site list without React hooks + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```ts @@ -99,7 +99,7 @@ export async function fetchSitesQuery(params: { return getClient().site.findMany(args).unwrap(); } /** - * Prefetch Site list for SSR or cache warming + * Top-level site configuration: branding assets, title, and description for a deployed application * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/query-keys.ts b/sdk/constructive-react/src/public/hooks/query-keys.ts index 8037ac67b..066aaa2d1 100644 --- a/sdk/constructive-react/src/public/hooks/query-keys.ts +++ b/sdk/constructive-react/src/public/hooks/query-keys.ts @@ -19,6 +19,24 @@ // Entity Query Keys // ============================================================================ +export const orgGetManagersRecordKeys = { + /** All orgGetManagersRecord queries */ all: ['orggetmanagersrecord'] as const, + /** List query keys */ lists: () => [...orgGetManagersRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGetManagersRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGetManagersRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGetManagersRecordKeys.details(), id] as const, +} as const; +export const orgGetSubordinatesRecordKeys = { + /** All orgGetSubordinatesRecord queries */ all: ['orggetsubordinatesrecord'] as const, + /** List query keys */ lists: () => [...orgGetSubordinatesRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGetSubordinatesRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGetSubordinatesRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGetSubordinatesRecordKeys.details(), id] as const, +} as const; export const getAllRecordKeys = { /** All getAllRecord queries */ all: ['getallrecord'] as const, /** List query keys */ lists: () => [...getAllRecordKeys.all, 'list'] as const, @@ -136,15 +154,6 @@ export const indexKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...indexKeys.details(), id] as const, } as const; -export const limitFunctionKeys = { - /** All limitFunction queries */ all: ['limitfunction'] as const, - /** List query keys */ lists: () => [...limitFunctionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...limitFunctionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...limitFunctionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...limitFunctionKeys.details(), id] as const, -} as const; export const policyKeys = { /** All policy queries */ all: ['policy'] as const, /** List query keys */ lists: () => [...policyKeys.all, 'list'] as const, @@ -244,6 +253,24 @@ export const tableTemplateModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...tableTemplateModuleKeys.details(), id] as const, } as const; +export const secureTableProvisionKeys = { + /** All secureTableProvision queries */ all: ['securetableprovision'] as const, + /** List query keys */ lists: () => [...secureTableProvisionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...secureTableProvisionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...secureTableProvisionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...secureTableProvisionKeys.details(), id] as const, +} as const; +export const relationProvisionKeys = { + /** All relationProvision queries */ all: ['relationprovision'] as const, + /** List query keys */ lists: () => [...relationProvisionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...relationProvisionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...relationProvisionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...relationProvisionKeys.details(), id] as const, +} as const; export const schemaGrantKeys = { /** All schemaGrant queries */ all: ['schemagrant'] as const, /** List query keys */ lists: () => [...schemaGrantKeys.all, 'list'] as const, @@ -253,6 +280,15 @@ export const schemaGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...schemaGrantKeys.details(), id] as const, } as const; +export const defaultPrivilegeKeys = { + /** All defaultPrivilege queries */ all: ['defaultprivilege'] as const, + /** List query keys */ lists: () => [...defaultPrivilegeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...defaultPrivilegeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...defaultPrivilegeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...defaultPrivilegeKeys.details(), id] as const, +} as const; export const apiSchemaKeys = { /** All apiSchema queries */ all: ['apischema'] as const, /** List query keys */ lists: () => [...apiSchemaKeys.all, 'list'] as const, @@ -307,15 +343,6 @@ export const siteThemeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...siteThemeKeys.details(), id] as const, } as const; -export const procedureKeys = { - /** All procedure queries */ all: ['procedure'] as const, - /** List query keys */ lists: () => [...procedureKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...procedureKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...procedureKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...procedureKeys.details(), id] as const, -} as const; export const triggerFunctionKeys = { /** All triggerFunction queries */ all: ['triggerfunction'] as const, /** List query keys */ lists: () => [...triggerFunctionKeys.all, 'list'] as const, @@ -631,6 +658,24 @@ export const orgGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgGrantKeys.details(), id] as const, } as const; +export const orgChartEdgeKeys = { + /** All orgChartEdge queries */ all: ['orgchartedge'] as const, + /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgChartEdgeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgChartEdgeKeys.details(), id] as const, +} as const; +export const orgChartEdgeGrantKeys = { + /** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'] as const, + /** List query keys */ lists: () => [...orgChartEdgeGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgChartEdgeGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgChartEdgeGrantKeys.details(), id] as const, +} as const; export const appLimitKeys = { /** All appLimit queries */ all: ['applimit'] as const, /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, @@ -703,15 +748,6 @@ export const orgClaimedInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgClaimedInviteKeys.details(), id] as const, } as const; -export const appPermissionDefaultKeys = { - /** All appPermissionDefault queries */ all: ['apppermissiondefault'] as const, - /** List query keys */ lists: () => [...appPermissionDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appPermissionDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appPermissionDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appPermissionDefaultKeys.details(), id] as const, -} as const; export const refKeys = { /** All ref queries */ all: ['ref'] as const, /** List query keys */ lists: () => [...refKeys.all, 'list'] as const, @@ -730,6 +766,15 @@ export const storeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...storeKeys.details(), id] as const, } as const; +export const appPermissionDefaultKeys = { + /** All appPermissionDefault queries */ all: ['apppermissiondefault'] as const, + /** List query keys */ lists: () => [...appPermissionDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appPermissionDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appPermissionDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appPermissionDefaultKeys.details(), id] as const, +} as const; export const roleTypeKeys = { /** All roleType queries */ all: ['roletype'] as const, /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, @@ -748,6 +793,15 @@ export const orgPermissionDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgPermissionDefaultKeys.details(), id] as const, } as const; +export const cryptoAddressKeys = { + /** All cryptoAddress queries */ all: ['cryptoaddress'] as const, + /** List query keys */ lists: () => [...cryptoAddressKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...cryptoAddressKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...cryptoAddressKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...cryptoAddressKeys.details(), id] as const, +} as const; export const appLimitDefaultKeys = { /** All appLimitDefault queries */ all: ['applimitdefault'] as const, /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, @@ -766,24 +820,6 @@ export const orgLimitDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitDefaultKeys.details(), id] as const, } as const; -export const cryptoAddressKeys = { - /** All cryptoAddress queries */ all: ['cryptoaddress'] as const, - /** List query keys */ lists: () => [...cryptoAddressKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...cryptoAddressKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...cryptoAddressKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...cryptoAddressKeys.details(), id] as const, -} as const; -export const membershipTypeKeys = { - /** All membershipType queries */ all: ['membershiptype'] as const, - /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...membershipTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypeKeys.details(), id] as const, -} as const; export const connectedAccountKeys = { /** All connectedAccount queries */ all: ['connectedaccount'] as const, /** List query keys */ lists: () => [...connectedAccountKeys.all, 'list'] as const, @@ -802,14 +838,14 @@ export const phoneNumberKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...phoneNumberKeys.details(), id] as const, } as const; -export const appMembershipDefaultKeys = { - /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, - /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, +export const membershipTypeKeys = { + /** All membershipType queries */ all: ['membershiptype'] as const, + /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + [...membershipTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipDefaultKeys.details(), id] as const, + [...membershipTypeKeys.details(), id] as const, } as const; export const nodeTypeRegistryKeys = { /** All nodeTypeRegistry queries */ all: ['nodetyperegistry'] as const, @@ -820,6 +856,15 @@ export const nodeTypeRegistryKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...nodeTypeRegistryKeys.details(), id] as const, } as const; +export const appMembershipDefaultKeys = { + /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, + /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appMembershipDefaultKeys.details(), id] as const, +} as const; export const commitKeys = { /** All commit queries */ all: ['commit'] as const, /** List query keys */ lists: () => [...commitKeys.all, 'list'] as const, @@ -838,15 +883,6 @@ export const orgMembershipDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMembershipDefaultKeys.details(), id] as const, } as const; -export const emailKeys = { - /** All email queries */ all: ['email'] as const, - /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...emailKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...emailKeys.details(), id] as const, -} as const; export const auditLogKeys = { /** All auditLog queries */ all: ['auditlog'] as const, /** List query keys */ lists: () => [...auditLogKeys.all, 'list'] as const, @@ -865,6 +901,15 @@ export const appLevelKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appLevelKeys.details(), id] as const, } as const; +export const emailKeys = { + /** All email queries */ all: ['email'] as const, + /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailKeys.details(), id] as const, +} as const; export const sqlMigrationKeys = { /** All sqlMigration queries */ all: ['sqlmigration'] as const, /** List query keys */ lists: () => [...sqlMigrationKeys.all, 'list'] as const, @@ -883,15 +928,6 @@ export const astMigrationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...astMigrationKeys.details(), id] as const, } as const; -export const appMembershipKeys = { - /** All appMembership queries */ all: ['appmembership'] as const, - /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipKeys.details(), id] as const, -} as const; export const userKeys = { /** All user queries */ all: ['user'] as const, /** List query keys */ lists: () => [...userKeys.all, 'list'] as const, @@ -901,6 +937,15 @@ export const userKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userKeys.details(), id] as const, } as const; +export const appMembershipKeys = { + /** All appMembership queries */ all: ['appmembership'] as const, + /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appMembershipKeys.details(), id] as const, +} as const; export const hierarchyModuleKeys = { /** All hierarchyModule queries */ all: ['hierarchymodule'] as const, /** List query keys */ lists: () => [...hierarchyModuleKeys.all, 'list'] as const, @@ -928,6 +973,8 @@ export const customQueryKeys = { /** Query key for stepsAchieved */ stepsAchieved: (variables?: object) => ['stepsAchieved', variables] as const, /** Query key for revParse */ revParse: (variables?: object) => ['revParse', variables] as const, + /** Query key for orgIsManagerOf */ orgIsManagerOf: (variables?: object) => + ['orgIsManagerOf', variables] as const, /** Query key for appPermissionsGetMask */ appPermissionsGetMask: (variables?: object) => ['appPermissionsGetMask', variables] as const, /** Query key for orgPermissionsGetMask */ orgPermissionsGetMask: (variables?: object) => @@ -975,6 +1022,8 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + orgGetManagersRecord: orgGetManagersRecordKeys, + orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, getAllRecord: getAllRecordKeys, appPermission: appPermissionKeys, orgPermission: orgPermissionKeys, @@ -988,7 +1037,6 @@ export const queryKeys = { foreignKeyConstraint: foreignKeyConstraintKeys, fullTextSearch: fullTextSearchKeys, index: indexKeys, - limitFunction: limitFunctionKeys, policy: policyKeys, primaryKeyConstraint: primaryKeyConstraintKeys, tableGrant: tableGrantKeys, @@ -1000,14 +1048,16 @@ export const queryKeys = { viewRule: viewRuleKeys, tableModule: tableModuleKeys, tableTemplateModule: tableTemplateModuleKeys, + secureTableProvision: secureTableProvisionKeys, + relationProvision: relationProvisionKeys, schemaGrant: schemaGrantKeys, + defaultPrivilege: defaultPrivilegeKeys, apiSchema: apiSchemaKeys, apiModule: apiModuleKeys, domain: domainKeys, siteMetadatum: siteMetadatumKeys, siteModule: siteModuleKeys, siteTheme: siteThemeKeys, - procedure: procedureKeys, triggerFunction: triggerFunctionKeys, api: apiKeys, site: siteKeys, @@ -1043,6 +1093,8 @@ export const queryKeys = { orgAdminGrant: orgAdminGrantKeys, orgOwnerGrant: orgOwnerGrantKeys, orgGrant: orgGrantKeys, + orgChartEdge: orgChartEdgeKeys, + orgChartEdgeGrant: orgChartEdgeGrantKeys, appLimit: appLimitKeys, orgLimit: orgLimitKeys, appStep: appStepKeys, @@ -1051,28 +1103,28 @@ export const queryKeys = { claimedInvite: claimedInviteKeys, orgInvite: orgInviteKeys, orgClaimedInvite: orgClaimedInviteKeys, - appPermissionDefault: appPermissionDefaultKeys, ref: refKeys, store: storeKeys, + appPermissionDefault: appPermissionDefaultKeys, roleType: roleTypeKeys, orgPermissionDefault: orgPermissionDefaultKeys, + cryptoAddress: cryptoAddressKeys, appLimitDefault: appLimitDefaultKeys, orgLimitDefault: orgLimitDefaultKeys, - cryptoAddress: cryptoAddressKeys, - membershipType: membershipTypeKeys, connectedAccount: connectedAccountKeys, phoneNumber: phoneNumberKeys, - appMembershipDefault: appMembershipDefaultKeys, + membershipType: membershipTypeKeys, nodeTypeRegistry: nodeTypeRegistryKeys, + appMembershipDefault: appMembershipDefaultKeys, commit: commitKeys, orgMembershipDefault: orgMembershipDefaultKeys, - email: emailKeys, auditLog: auditLogKeys, appLevel: appLevelKeys, + email: emailKeys, sqlMigration: sqlMigrationKeys, astMigration: astMigrationKeys, - appMembership: appMembershipKeys, user: userKeys, + appMembership: appMembershipKeys, hierarchyModule: hierarchyModuleKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/public/hooks/skills/api.md b/sdk/constructive-react/src/public/hooks/skills/api.md deleted file mode 100644 index 90998c07c..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/api.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-api - - - -React Query hooks for Api data operations - -## Usage - -```typescript -useApisQuery({ selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } } }) -useApiQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } } }) -useCreateApiMutation({ selection: { fields: { id: true } } }) -useUpdateApiMutation({ selection: { fields: { id: true } } }) -useDeleteApiMutation({}) -``` - -## Examples - -### List all apis - -```typescript -const { data, isLoading } = useApisQuery({ - selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, -}); -``` - -### Create a api - -```typescript -const { mutate } = useCreateApiMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/apiModule.md b/sdk/constructive-react/src/public/hooks/skills/apiModule.md deleted file mode 100644 index adc541569..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/apiModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-apiModule - - - -React Query hooks for ApiModule data operations - -## Usage - -```typescript -useApiModulesQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } } }) -useApiModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } } }) -useCreateApiModuleMutation({ selection: { fields: { id: true } } }) -useUpdateApiModuleMutation({ selection: { fields: { id: true } } }) -useDeleteApiModuleMutation({}) -``` - -## Examples - -### List all apiModules - -```typescript -const { data, isLoading } = useApiModulesQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, -}); -``` - -### Create a apiModule - -```typescript -const { mutate } = useCreateApiModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', apiId: '', name: '', data: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/apiSchema.md b/sdk/constructive-react/src/public/hooks/skills/apiSchema.md deleted file mode 100644 index d61de7ed1..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/apiSchema.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-apiSchema - - - -React Query hooks for ApiSchema data operations - -## Usage - -```typescript -useApiSchemasQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } } }) -useApiSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } } }) -useCreateApiSchemaMutation({ selection: { fields: { id: true } } }) -useUpdateApiSchemaMutation({ selection: { fields: { id: true } } }) -useDeleteApiSchemaMutation({}) -``` - -## Examples - -### List all apiSchemas - -```typescript -const { data, isLoading } = useApiSchemasQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, -}); -``` - -### Create a apiSchema - -```typescript -const { mutate } = useCreateApiSchemaMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', apiId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/app.md b/sdk/constructive-react/src/public/hooks/skills/app.md deleted file mode 100644 index e548e24dd..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/app.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-app - - - -React Query hooks for App data operations - -## Usage - -```typescript -useAppsQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } } }) -useAppQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } } }) -useCreateAppMutation({ selection: { fields: { id: true } } }) -useUpdateAppMutation({ selection: { fields: { id: true } } }) -useDeleteAppMutation({}) -``` - -## Examples - -### List all apps - -```typescript -const { data, isLoading } = useAppsQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, -}); -``` - -### Create a app - -```typescript -const { mutate } = useCreateAppMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appAchievement.md b/sdk/constructive-react/src/public/hooks/skills/appAchievement.md deleted file mode 100644 index 109aaf8bb..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appAchievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appAchievement - - - -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. - -## Usage - -```typescript -useAppAchievementsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useAppAchievementQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useCreateAppAchievementMutation({ selection: { fields: { id: true } } }) -useUpdateAppAchievementMutation({ selection: { fields: { id: true } } }) -useDeleteAppAchievementMutation({}) -``` - -## Examples - -### List all appAchievements - -```typescript -const { data, isLoading } = useAppAchievementsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appAchievement - -```typescript -const { mutate } = useCreateAppAchievementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', name: '', count: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appAdminGrant.md b/sdk/constructive-react/src/public/hooks/skills/appAdminGrant.md deleted file mode 100644 index 6bfebeb38..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appAdminGrant - - - -React Query hooks for AppAdminGrant data operations - -## Usage - -```typescript -useAppAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useAppAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateAppAdminGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppAdminGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppAdminGrantMutation({}) -``` - -## Examples - -### List all appAdminGrants - -```typescript -const { data, isLoading } = useAppAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appAdminGrant - -```typescript -const { mutate } = useCreateAppAdminGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appGrant.md b/sdk/constructive-react/src/public/hooks/skills/appGrant.md deleted file mode 100644 index be596bddb..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appGrant - - - -React Query hooks for AppGrant data operations - -## Usage - -```typescript -useAppGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useAppGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateAppGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppGrantMutation({}) -``` - -## Examples - -### List all appGrants - -```typescript -const { data, isLoading } = useAppGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appGrant - -```typescript -const { mutate } = useCreateAppGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appLevel.md b/sdk/constructive-react/src/public/hooks/skills/appLevel.md deleted file mode 100644 index bd72a41e7..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appLevel.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appLevel - - - -Levels for achievement - -## Usage - -```typescript -useAppLevelsQuery({ selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) -useAppLevelQuery({ id: '', selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) -useCreateAppLevelMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelMutation({}) -``` - -## Examples - -### List all appLevels - -```typescript -const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appLevel - -```typescript -const { mutate } = useCreateAppLevelMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', description: '', image: '', ownerId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md b/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md deleted file mode 100644 index 82fdcbb8a..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appLevelRequirement - - - -Requirements to achieve a level - -## Usage - -```typescript -useAppLevelRequirementsQuery({ selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) -useAppLevelRequirementQuery({ id: '', selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) -useCreateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelRequirementMutation({}) -``` - -## Examples - -### List all appLevelRequirements - -```typescript -const { data, isLoading } = useAppLevelRequirementsQuery({ - selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appLevelRequirement - -```typescript -const { mutate } = useCreateAppLevelRequirementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', level: '', description: '', requiredCount: '', priority: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appLimit.md b/sdk/constructive-react/src/public/hooks/skills/appLimit.md deleted file mode 100644 index ea8cb8cc6..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appLimit - - - -React Query hooks for AppLimit data operations - -## Usage - -```typescript -useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) -useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) -useCreateAppLimitMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitMutation({}) -``` - -## Examples - -### List all appLimits - -```typescript -const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, -}); -``` - -### Create a appLimit - -```typescript -const { mutate } = useCreateAppLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', num: '', max: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appLimitDefault.md b/sdk/constructive-react/src/public/hooks/skills/appLimitDefault.md deleted file mode 100644 index 9997fe7ae..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appLimitDefault - - - -React Query hooks for AppLimitDefault data operations - -## Usage - -```typescript -useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) -useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitDefaultMutation({}) -``` - -## Examples - -### List all appLimitDefaults - -```typescript -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); -``` - -### Create a appLimitDefault - -```typescript -const { mutate } = useCreateAppLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appMembership.md b/sdk/constructive-react/src/public/hooks/skills/appMembership.md deleted file mode 100644 index ba73841d6..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appMembership - - - -React Query hooks for AppMembership data operations - -## Usage - -```typescript -useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } } }) -useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } } }) -useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) -useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) -useDeleteAppMembershipMutation({}) -``` - -## Examples - -### List all appMemberships - -```typescript -const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }, -}); -``` - -### Create a appMembership - -```typescript -const { mutate } = useCreateAppMembershipMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appMembershipDefault.md b/sdk/constructive-react/src/public/hooks/skills/appMembershipDefault.md deleted file mode 100644 index 7536d11fb..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appMembershipDefault - - - -React Query hooks for AppMembershipDefault data operations - -## Usage - -```typescript -useAppMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) -useAppMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) -useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppMembershipDefaultMutation({}) -``` - -## Examples - -### List all appMembershipDefaults - -```typescript -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); -``` - -### Create a appMembershipDefault - -```typescript -const { mutate } = useCreateAppMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appOwnerGrant.md b/sdk/constructive-react/src/public/hooks/skills/appOwnerGrant.md deleted file mode 100644 index 3b6971d85..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appOwnerGrant - - - -React Query hooks for AppOwnerGrant data operations - -## Usage - -```typescript -useAppOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useAppOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppOwnerGrantMutation({}) -``` - -## Examples - -### List all appOwnerGrants - -```typescript -const { data, isLoading } = useAppOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appOwnerGrant - -```typescript -const { mutate } = useCreateAppOwnerGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermission.md b/sdk/constructive-react/src/public/hooks/skills/appPermission.md deleted file mode 100644 index 1c7b49ffa..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appPermission - - - -React Query hooks for AppPermission data operations - -## Usage - -```typescript -useAppPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useAppPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useCreateAppPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionMutation({}) -``` - -## Examples - -### List all appPermissions - -```typescript -const { data, isLoading } = useAppPermissionsQuery({ - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); -``` - -### Create a appPermission - -```typescript -const { mutate } = useCreateAppPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', bitnum: '', bitstr: '', description: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionDefault.md b/sdk/constructive-react/src/public/hooks/skills/appPermissionDefault.md deleted file mode 100644 index d0ab1ab74..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appPermissionDefault - - - -React Query hooks for AppPermissionDefault data operations - -## Usage - -```typescript -useAppPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true } } }) -useAppPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true } } }) -useCreateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionDefaultMutation({}) -``` - -## Examples - -### List all appPermissionDefaults - -```typescript -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, -}); -``` - -### Create a appPermissionDefault - -```typescript -const { mutate } = useCreateAppPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetByMask.md b/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetByMask.md deleted file mode 100644 index 567bab5a3..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useAppPermissionsGetByMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMask.md b/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMask.md deleted file mode 100644 index ec4bfe8b1..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-appPermissionsGetMask - - - -React Query query hook for appPermissionsGetMask - -## Usage - -```typescript -useAppPermissionsGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useAppPermissionsGetMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetMaskQuery({ ids: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMaskByNames.md deleted file mode 100644 index 9fbcc74d9..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-appPermissionsGetMaskByNames - - - -React Query query hook for appPermissionsGetMaskByNames - -## Usage - -```typescript -useAppPermissionsGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useAppPermissionsGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ names: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetPaddedMask.md deleted file mode 100644 index 73d5aa1d2..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-appPermissionsGetPaddedMask - - - -React Query query hook for appPermissionsGetPaddedMask - -## Usage - -```typescript -useAppPermissionsGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useAppPermissionsGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/appStep.md b/sdk/constructive-react/src/public/hooks/skills/appStep.md deleted file mode 100644 index 9e8de0574..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/appStep.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-appStep - - - -The user achieving a requirement for a level. Log table that has every single step ever taken. - -## Usage - -```typescript -useAppStepsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useAppStepQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useCreateAppStepMutation({ selection: { fields: { id: true } } }) -useUpdateAppStepMutation({ selection: { fields: { id: true } } }) -useDeleteAppStepMutation({}) -``` - -## Examples - -### List all appSteps - -```typescript -const { data, isLoading } = useAppStepsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appStep - -```typescript -const { mutate } = useCreateAppStepMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', name: '', count: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/applyRls.md b/sdk/constructive-react/src/public/hooks/skills/applyRls.md deleted file mode 100644 index 3a45d7c53..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/applyRls.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-applyRls - - - -React Query mutation hook for applyRls - -## Usage - -```typescript -const { mutate } = useApplyRlsMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useApplyRlsMutation - -```typescript -const { mutate, isLoading } = useApplyRlsMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/astMigration.md b/sdk/constructive-react/src/public/hooks/skills/astMigration.md deleted file mode 100644 index 91bf7e40b..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/astMigration.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-astMigration - - - -React Query hooks for AstMigration data operations - -## Usage - -```typescript -useAstMigrationsQuery({ selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useAstMigrationQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useCreateAstMigrationMutation({ selection: { fields: { id: true } } }) -useUpdateAstMigrationMutation({ selection: { fields: { id: true } } }) -useDeleteAstMigrationMutation({}) -``` - -## Examples - -### List all astMigrations - -```typescript -const { data, isLoading } = useAstMigrationsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, -}); -``` - -### Create a astMigration - -```typescript -const { mutate } = useCreateAstMigrationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/auditLog.md b/sdk/constructive-react/src/public/hooks/skills/auditLog.md deleted file mode 100644 index 0ca36458e..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/auditLog.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-auditLog - - - -React Query hooks for AuditLog data operations - -## Usage - -```typescript -useAuditLogsQuery({ selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) -useAuditLogQuery({ id: '', selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) -useCreateAuditLogMutation({ selection: { fields: { id: true } } }) -useUpdateAuditLogMutation({ selection: { fields: { id: true } } }) -useDeleteAuditLogMutation({}) -``` - -## Examples - -### List all auditLogs - -```typescript -const { data, isLoading } = useAuditLogsQuery({ - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, -}); -``` - -### Create a auditLog - -```typescript -const { mutate } = useCreateAuditLogMutation({ - selection: { fields: { id: true } }, -}); -mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/bootstrapUser.md b/sdk/constructive-react/src/public/hooks/skills/bootstrapUser.md deleted file mode 100644 index 58fc3b185..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/bootstrapUser.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-bootstrapUser - - - -React Query mutation hook for bootstrapUser - -## Usage - -```typescript -const { mutate } = useBootstrapUserMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useBootstrapUserMutation - -```typescript -const { mutate, isLoading } = useBootstrapUserMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/checkConstraint.md b/sdk/constructive-react/src/public/hooks/skills/checkConstraint.md deleted file mode 100644 index c8942b6d7..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/checkConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-checkConstraint - - - -React Query hooks for CheckConstraint data operations - -## Usage - -```typescript -useCheckConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCheckConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateCheckConstraintMutation({ selection: { fields: { id: true } } }) -useUpdateCheckConstraintMutation({ selection: { fields: { id: true } } }) -useDeleteCheckConstraintMutation({}) -``` - -## Examples - -### List all checkConstraints - -```typescript -const { data, isLoading } = useCheckConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a checkConstraint - -```typescript -const { mutate } = useCreateCheckConstraintMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/checkPassword.md b/sdk/constructive-react/src/public/hooks/skills/checkPassword.md deleted file mode 100644 index 1e3a05a56..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/checkPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-checkPassword - - - -React Query mutation hook for checkPassword - -## Usage - -```typescript -const { mutate } = useCheckPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useCheckPasswordMutation - -```typescript -const { mutate, isLoading } = useCheckPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/claimedInvite.md b/sdk/constructive-react/src/public/hooks/skills/claimedInvite.md deleted file mode 100644 index 262dff555..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/claimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-claimedInvite - - - -React Query hooks for ClaimedInvite data operations - -## Usage - -```typescript -useClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useCreateClaimedInviteMutation({ selection: { fields: { id: true } } }) -useUpdateClaimedInviteMutation({ selection: { fields: { id: true } } }) -useDeleteClaimedInviteMutation({}) -``` - -## Examples - -### List all claimedInvites - -```typescript -const { data, isLoading } = useClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a claimedInvite - -```typescript -const { mutate } = useCreateClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', senderId: '', receiverId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/commit.md b/sdk/constructive-react/src/public/hooks/skills/commit.md deleted file mode 100644 index e828be2df..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -useCommitsQuery({ selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) -useCommitQuery({ id: '', selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) -useCreateCommitMutation({ selection: { fields: { id: true } } }) -useUpdateCommitMutation({ selection: { fields: { id: true } } }) -useDeleteCommitMutation({}) -``` - -## Examples - -### List all commits - -```typescript -const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, -}); -``` - -### Create a commit - -```typescript -const { mutate } = useCreateCommitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/confirmDeleteAccount.md b/sdk/constructive-react/src/public/hooks/skills/confirmDeleteAccount.md deleted file mode 100644 index a3804e870..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/confirmDeleteAccount.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-confirmDeleteAccount - - - -React Query mutation hook for confirmDeleteAccount - -## Usage - -```typescript -const { mutate } = useConfirmDeleteAccountMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useConfirmDeleteAccountMutation - -```typescript -const { mutate, isLoading } = useConfirmDeleteAccountMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/connectedAccount.md b/sdk/constructive-react/src/public/hooks/skills/connectedAccount.md deleted file mode 100644 index b086ecbdf..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/connectedAccount.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-connectedAccount - - - -React Query hooks for ConnectedAccount data operations - -## Usage - -```typescript -useConnectedAccountsQuery({ selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useConnectedAccountQuery({ id: '', selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useCreateConnectedAccountMutation({ selection: { fields: { id: true } } }) -useUpdateConnectedAccountMutation({ selection: { fields: { id: true } } }) -useDeleteConnectedAccountMutation({}) -``` - -## Examples - -### List all connectedAccounts - -```typescript -const { data, isLoading } = useConnectedAccountsQuery({ - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a connectedAccount - -```typescript -const { mutate } = useCreateConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/connectedAccountsModule.md b/sdk/constructive-react/src/public/hooks/skills/connectedAccountsModule.md deleted file mode 100644 index f0b27549e..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/connectedAccountsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-connectedAccountsModule - - - -React Query hooks for ConnectedAccountsModule data operations - -## Usage - -```typescript -useConnectedAccountsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useConnectedAccountsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useCreateConnectedAccountsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateConnectedAccountsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteConnectedAccountsModuleMutation({}) -``` - -## Examples - -### List all connectedAccountsModules - -```typescript -const { data, isLoading } = useConnectedAccountsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); -``` - -### Create a connectedAccountsModule - -```typescript -const { mutate } = useCreateConnectedAccountsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/createUserDatabase.md b/sdk/constructive-react/src/public/hooks/skills/createUserDatabase.md deleted file mode 100644 index 4f5bf1557..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/createUserDatabase.md +++ /dev/null @@ -1,36 +0,0 @@ -# hooks-createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include levels/achievements (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```typescript -const { mutate } = useCreateUserDatabaseMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useCreateUserDatabaseMutation - -```typescript -const { mutate, isLoading } = useCreateUserDatabaseMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/cryptoAddress.md b/sdk/constructive-react/src/public/hooks/skills/cryptoAddress.md deleted file mode 100644 index c7f4682ce..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/cryptoAddress.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-cryptoAddress - - - -React Query hooks for CryptoAddress data operations - -## Usage - -```typescript -useCryptoAddressesQuery({ selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useCryptoAddressQuery({ id: '', selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useCreateCryptoAddressMutation({ selection: { fields: { id: true } } }) -useUpdateCryptoAddressMutation({ selection: { fields: { id: true } } }) -useDeleteCryptoAddressMutation({}) -``` - -## Examples - -### List all cryptoAddresses - -```typescript -const { data, isLoading } = useCryptoAddressesQuery({ - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a cryptoAddress - -```typescript -const { mutate } = useCreateCryptoAddressMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/cryptoAddressesModule.md b/sdk/constructive-react/src/public/hooks/skills/cryptoAddressesModule.md deleted file mode 100644 index 5463bee09..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/cryptoAddressesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-cryptoAddressesModule - - - -React Query hooks for CryptoAddressesModule data operations - -## Usage - -```typescript -useCryptoAddressesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } } }) -useCryptoAddressesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } } }) -useCreateCryptoAddressesModuleMutation({ selection: { fields: { id: true } } }) -useUpdateCryptoAddressesModuleMutation({ selection: { fields: { id: true } } }) -useDeleteCryptoAddressesModuleMutation({}) -``` - -## Examples - -### List all cryptoAddressesModules - -```typescript -const { data, isLoading } = useCryptoAddressesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }, -}); -``` - -### Create a cryptoAddressesModule - -```typescript -const { mutate } = useCreateCryptoAddressesModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/cryptoAuthModule.md b/sdk/constructive-react/src/public/hooks/skills/cryptoAuthModule.md deleted file mode 100644 index 2da2b54cc..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/cryptoAuthModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-cryptoAuthModule - - - -React Query hooks for CryptoAuthModule data operations - -## Usage - -```typescript -useCryptoAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } } }) -useCryptoAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } } }) -useCreateCryptoAuthModuleMutation({ selection: { fields: { id: true } } }) -useUpdateCryptoAuthModuleMutation({ selection: { fields: { id: true } } }) -useDeleteCryptoAuthModuleMutation({}) -``` - -## Examples - -### List all cryptoAuthModules - -```typescript -const { data, isLoading } = useCryptoAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, -}); -``` - -### Create a cryptoAuthModule - -```typescript -const { mutate } = useCreateCryptoAuthModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/currentIpAddress.md b/sdk/constructive-react/src/public/hooks/skills/currentIpAddress.md deleted file mode 100644 index e972130f5..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/currentIpAddress.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-currentIpAddress - - - -React Query query hook for currentIpAddress - -## Usage - -```typescript -useCurrentIpAddressQuery() -``` - -## Examples - -### Use useCurrentIpAddressQuery - -```typescript -const { data, isLoading } = useCurrentIpAddressQuery(); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/currentUser.md b/sdk/constructive-react/src/public/hooks/skills/currentUser.md deleted file mode 100644 index 4467284e4..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/currentUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-currentUser - - - -React Query query hook for currentUser - -## Usage - -```typescript -useCurrentUserQuery() -``` - -## Examples - -### Use useCurrentUserQuery - -```typescript -const { data, isLoading } = useCurrentUserQuery(); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/currentUserAgent.md b/sdk/constructive-react/src/public/hooks/skills/currentUserAgent.md deleted file mode 100644 index 2df182c94..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/currentUserAgent.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-currentUserAgent - - - -React Query query hook for currentUserAgent - -## Usage - -```typescript -useCurrentUserAgentQuery() -``` - -## Examples - -### Use useCurrentUserAgentQuery - -```typescript -const { data, isLoading } = useCurrentUserAgentQuery(); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/currentUserId.md b/sdk/constructive-react/src/public/hooks/skills/currentUserId.md deleted file mode 100644 index 076feac70..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/currentUserId.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-currentUserId - - - -React Query query hook for currentUserId - -## Usage - -```typescript -useCurrentUserIdQuery() -``` - -## Examples - -### Use useCurrentUserIdQuery - -```typescript -const { data, isLoading } = useCurrentUserIdQuery(); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/database.md b/sdk/constructive-react/src/public/hooks/skills/database.md deleted file mode 100644 index de7fabbbe..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/database.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-database - - - -React Query hooks for Database data operations - -## Usage - -```typescript -useDatabasesQuery({ selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } } }) -useDatabaseQuery({ id: '', selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } } }) -useCreateDatabaseMutation({ selection: { fields: { id: true } } }) -useUpdateDatabaseMutation({ selection: { fields: { id: true } } }) -useDeleteDatabaseMutation({}) -``` - -## Examples - -### List all databases - -```typescript -const { data, isLoading } = useDatabasesQuery({ - selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a database - -```typescript -const { mutate } = useCreateDatabaseMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md b/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md deleted file mode 100644 index 5894b19a3..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-databaseProvisionModule - - - -Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. - -## Usage - -```typescript -useDatabaseProvisionModulesQuery({ selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } } }) -useDatabaseProvisionModuleQuery({ id: '', selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } } }) -useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) -useUpdateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) -useDeleteDatabaseProvisionModuleMutation({}) -``` - -## Examples - -### List all databaseProvisionModules - -```typescript -const { data, isLoading } = useDatabaseProvisionModulesQuery({ - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, -}); -``` - -### Create a databaseProvisionModule - -```typescript -const { mutate } = useCreateDatabaseProvisionModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/defaultIdsModule.md b/sdk/constructive-react/src/public/hooks/skills/defaultIdsModule.md deleted file mode 100644 index a305f6b4e..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/defaultIdsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-defaultIdsModule - - - -React Query hooks for DefaultIdsModule data operations - -## Usage - -```typescript -useDefaultIdsModulesQuery({ selection: { fields: { id: true, databaseId: true } } }) -useDefaultIdsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true } } }) -useCreateDefaultIdsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateDefaultIdsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteDefaultIdsModuleMutation({}) -``` - -## Examples - -### List all defaultIdsModules - -```typescript -const { data, isLoading } = useDefaultIdsModulesQuery({ - selection: { fields: { id: true, databaseId: true } }, -}); -``` - -### Create a defaultIdsModule - -```typescript -const { mutate } = useCreateDefaultIdsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/denormalizedTableField.md b/sdk/constructive-react/src/public/hooks/skills/denormalizedTableField.md deleted file mode 100644 index 0a2ec280f..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/denormalizedTableField.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-denormalizedTableField - - - -React Query hooks for DenormalizedTableField data operations - -## Usage - -```typescript -useDenormalizedTableFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } } }) -useDenormalizedTableFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } } }) -useCreateDenormalizedTableFieldMutation({ selection: { fields: { id: true } } }) -useUpdateDenormalizedTableFieldMutation({ selection: { fields: { id: true } } }) -useDeleteDenormalizedTableFieldMutation({}) -``` - -## Examples - -### List all denormalizedTableFields - -```typescript -const { data, isLoading } = useDenormalizedTableFieldsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, -}); -``` - -### Create a denormalizedTableField - -```typescript -const { mutate } = useCreateDenormalizedTableFieldMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/domain.md b/sdk/constructive-react/src/public/hooks/skills/domain.md deleted file mode 100644 index 4e7a784c0..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/domain.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-domain - - - -React Query hooks for Domain data operations - -## Usage - -```typescript -useDomainsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } } }) -useDomainQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } } }) -useCreateDomainMutation({ selection: { fields: { id: true } } }) -useUpdateDomainMutation({ selection: { fields: { id: true } } }) -useDeleteDomainMutation({}) -``` - -## Examples - -### List all domains - -```typescript -const { data, isLoading } = useDomainsQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, -}); -``` - -### Create a domain - -```typescript -const { mutate } = useCreateDomainMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/email.md b/sdk/constructive-react/src/public/hooks/skills/email.md deleted file mode 100644 index f89e18fa5..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-email - - - -React Query hooks for Email data operations - -## Usage - -```typescript -useEmailsQuery({ selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useEmailQuery({ id: '', selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useCreateEmailMutation({ selection: { fields: { id: true } } }) -useUpdateEmailMutation({ selection: { fields: { id: true } } }) -useDeleteEmailMutation({}) -``` - -## Examples - -### List all emails - -```typescript -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a email - -```typescript -const { mutate } = useCreateEmailMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/emailsModule.md b/sdk/constructive-react/src/public/hooks/skills/emailsModule.md deleted file mode 100644 index 97b32ce51..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/emailsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-emailsModule - - - -React Query hooks for EmailsModule data operations - -## Usage - -```typescript -useEmailsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useEmailsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useCreateEmailsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateEmailsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteEmailsModuleMutation({}) -``` - -## Examples - -### List all emailsModules - -```typescript -const { data, isLoading } = useEmailsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); -``` - -### Create a emailsModule - -```typescript -const { mutate } = useCreateEmailsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/encryptedSecretsModule.md b/sdk/constructive-react/src/public/hooks/skills/encryptedSecretsModule.md deleted file mode 100644 index 3230872c5..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/encryptedSecretsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-encryptedSecretsModule - - - -React Query hooks for EncryptedSecretsModule data operations - -## Usage - -```typescript -useEncryptedSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useEncryptedSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useCreateEncryptedSecretsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateEncryptedSecretsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteEncryptedSecretsModuleMutation({}) -``` - -## Examples - -### List all encryptedSecretsModules - -```typescript -const { data, isLoading } = useEncryptedSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a encryptedSecretsModule - -```typescript -const { mutate } = useCreateEncryptedSecretsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/extendTokenExpires.md b/sdk/constructive-react/src/public/hooks/skills/extendTokenExpires.md deleted file mode 100644 index 54ce19f07..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/extendTokenExpires.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-extendTokenExpires - - - -React Query mutation hook for extendTokenExpires - -## Usage - -```typescript -const { mutate } = useExtendTokenExpiresMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useExtendTokenExpiresMutation - -```typescript -const { mutate, isLoading } = useExtendTokenExpiresMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/field.md b/sdk/constructive-react/src/public/hooks/skills/field.md deleted file mode 100644 index 672e19527..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/field.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-field - - - -React Query hooks for Field data operations - -## Usage - -```typescript -useFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } } }) -useFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } } }) -useCreateFieldMutation({ selection: { fields: { id: true } } }) -useUpdateFieldMutation({ selection: { fields: { id: true } } }) -useDeleteFieldMutation({}) -``` - -## Examples - -### List all fields - -```typescript -const { data, isLoading } = useFieldsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a field - -```typescript -const { mutate } = useCreateFieldMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/fieldModule.md b/sdk/constructive-react/src/public/hooks/skills/fieldModule.md deleted file mode 100644 index 367d9da0e..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/fieldModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-fieldModule - - - -React Query hooks for FieldModule data operations - -## Usage - -```typescript -useFieldModulesQuery({ selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } } }) -useFieldModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } } }) -useCreateFieldModuleMutation({ selection: { fields: { id: true } } }) -useUpdateFieldModuleMutation({ selection: { fields: { id: true } } }) -useDeleteFieldModuleMutation({}) -``` - -## Examples - -### List all fieldModules - -```typescript -const { data, isLoading } = useFieldModulesQuery({ - selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }, -}); -``` - -### Create a fieldModule - -```typescript -const { mutate } = useCreateFieldModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/foreignKeyConstraint.md b/sdk/constructive-react/src/public/hooks/skills/foreignKeyConstraint.md deleted file mode 100644 index 95fb8fb09..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/foreignKeyConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-foreignKeyConstraint - - - -React Query hooks for ForeignKeyConstraint data operations - -## Usage - -```typescript -useForeignKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useForeignKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) -useUpdateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) -useDeleteForeignKeyConstraintMutation({}) -``` - -## Examples - -### List all foreignKeyConstraints - -```typescript -const { data, isLoading } = useForeignKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a foreignKeyConstraint - -```typescript -const { mutate } = useCreateForeignKeyConstraintMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/forgotPassword.md b/sdk/constructive-react/src/public/hooks/skills/forgotPassword.md deleted file mode 100644 index fba9ffcb2..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/forgotPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-forgotPassword - - - -React Query mutation hook for forgotPassword - -## Usage - -```typescript -const { mutate } = useForgotPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useForgotPasswordMutation - -```typescript -const { mutate, isLoading } = useForgotPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/freezeObjects.md b/sdk/constructive-react/src/public/hooks/skills/freezeObjects.md deleted file mode 100644 index af9fd90c4..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/freezeObjects.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-freezeObjects - - - -React Query mutation hook for freezeObjects - -## Usage - -```typescript -const { mutate } = useFreezeObjectsMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useFreezeObjectsMutation - -```typescript -const { mutate, isLoading } = useFreezeObjectsMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/fullTextSearch.md b/sdk/constructive-react/src/public/hooks/skills/fullTextSearch.md deleted file mode 100644 index 4966f5511..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/fullTextSearch.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-fullTextSearch - - - -React Query hooks for FullTextSearch data operations - -## Usage - -```typescript -useFullTextSearchesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } } }) -useFullTextSearchQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } } }) -useCreateFullTextSearchMutation({ selection: { fields: { id: true } } }) -useUpdateFullTextSearchMutation({ selection: { fields: { id: true } } }) -useDeleteFullTextSearchMutation({}) -``` - -## Examples - -### List all fullTextSearches - -```typescript -const { data, isLoading } = useFullTextSearchesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a fullTextSearch - -```typescript -const { mutate } = useCreateFullTextSearchMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/getAllObjectsFromRoot.md b/sdk/constructive-react/src/public/hooks/skills/getAllObjectsFromRoot.md deleted file mode 100644 index 018c673b7..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/getAllObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useGetAllObjectsFromRootQuery - -```typescript -const { data, isLoading } = useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/getAllRecord.md b/sdk/constructive-react/src/public/hooks/skills/getAllRecord.md deleted file mode 100644 index 9b7f82198..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/getAllRecord.md +++ /dev/null @@ -1,31 +0,0 @@ -# hooks-getAllRecord - - - -React Query hooks for GetAllRecord data operations - -## Usage - -```typescript -useGetAllQuery({ selection: { fields: { path: true, data: true } } }) -useCreateGetAllRecordMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all getAll - -```typescript -const { data, isLoading } = useGetAllQuery({ - selection: { fields: { path: true, data: true } }, -}); -``` - -### Create a getAllRecord - -```typescript -const { mutate } = useCreateGetAllRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ path: '', data: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/getObjectAtPath.md b/sdk/constructive-react/src/public/hooks/skills/getObjectAtPath.md deleted file mode 100644 index c3b9f60f0..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/getObjectAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-getObjectAtPath - - - -React Query query hook for getObjectAtPath - -## Usage - -```typescript -useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) -``` - -## Examples - -### Use useGetObjectAtPathQuery - -```typescript -const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/getPathObjectsFromRoot.md b/sdk/constructive-react/src/public/hooks/skills/getPathObjectsFromRoot.md deleted file mode 100644 index dd7cdcd86..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/getPathObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useGetPathObjectsFromRootQuery - -```typescript -const { data, isLoading } = useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/hierarchyModule.md b/sdk/constructive-react/src/public/hooks/skills/hierarchyModule.md deleted file mode 100644 index 6ef22671e..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/hierarchyModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-hierarchyModule - - - -React Query hooks for HierarchyModule data operations - -## Usage - -```typescript -useHierarchyModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } } }) -useHierarchyModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } } }) -useCreateHierarchyModuleMutation({ selection: { fields: { id: true } } }) -useUpdateHierarchyModuleMutation({ selection: { fields: { id: true } } }) -useDeleteHierarchyModuleMutation({}) -``` - -## Examples - -### List all hierarchyModules - -```typescript -const { data, isLoading } = useHierarchyModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }, -}); -``` - -### Create a hierarchyModule - -```typescript -const { mutate } = useCreateHierarchyModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/index.md b/sdk/constructive-react/src/public/hooks/skills/index.md deleted file mode 100644 index ec09c1408..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/index.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-index - - - -React Query hooks for Index data operations - -## Usage - -```typescript -useIndicesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useIndexQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateIndexMutation({ selection: { fields: { id: true } } }) -useUpdateIndexMutation({ selection: { fields: { id: true } } }) -useDeleteIndexMutation({}) -``` - -## Examples - -### List all indices - -```typescript -const { data, isLoading } = useIndicesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a index - -```typescript -const { mutate } = useCreateIndexMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/initEmptyRepo.md b/sdk/constructive-react/src/public/hooks/skills/initEmptyRepo.md deleted file mode 100644 index abd88134d..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/initEmptyRepo.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-initEmptyRepo - - - -React Query mutation hook for initEmptyRepo - -## Usage - -```typescript -const { mutate } = useInitEmptyRepoMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useInitEmptyRepoMutation - -```typescript -const { mutate, isLoading } = useInitEmptyRepoMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/insertNodeAtPath.md b/sdk/constructive-react/src/public/hooks/skills/insertNodeAtPath.md deleted file mode 100644 index 7ca72d1cc..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/insertNodeAtPath.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-insertNodeAtPath - - - -React Query mutation hook for insertNodeAtPath - -## Usage - -```typescript -const { mutate } = useInsertNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useInsertNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useInsertNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/invite.md b/sdk/constructive-react/src/public/hooks/skills/invite.md deleted file mode 100644 index 3be140ad1..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-invite - - - -React Query hooks for Invite data operations - -## Usage - -```typescript -useInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useCreateInviteMutation({ selection: { fields: { id: true } } }) -useUpdateInviteMutation({ selection: { fields: { id: true } } }) -useDeleteInviteMutation({}) -``` - -## Examples - -### List all invites - -```typescript -const { data, isLoading } = useInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a invite - -```typescript -const { mutate } = useCreateInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/invitesModule.md b/sdk/constructive-react/src/public/hooks/skills/invitesModule.md deleted file mode 100644 index 4200c5300..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/invitesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-invitesModule - - - -React Query hooks for InvitesModule data operations - -## Usage - -```typescript -useInvitesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } } }) -useInvitesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } } }) -useCreateInvitesModuleMutation({ selection: { fields: { id: true } } }) -useUpdateInvitesModuleMutation({ selection: { fields: { id: true } } }) -useDeleteInvitesModuleMutation({}) -``` - -## Examples - -### List all invitesModules - -```typescript -const { data, isLoading } = useInvitesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }, -}); -``` - -### Create a invitesModule - -```typescript -const { mutate } = useCreateInvitesModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/levelsModule.md b/sdk/constructive-react/src/public/hooks/skills/levelsModule.md deleted file mode 100644 index 2a4689db9..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/levelsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-levelsModule - - - -React Query hooks for LevelsModule data operations - -## Usage - -```typescript -useLevelsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useLevelsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useCreateLevelsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateLevelsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteLevelsModuleMutation({}) -``` - -## Examples - -### List all levelsModules - -```typescript -const { data, isLoading } = useLevelsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, -}); -``` - -### Create a levelsModule - -```typescript -const { mutate } = useCreateLevelsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/limitFunction.md b/sdk/constructive-react/src/public/hooks/skills/limitFunction.md deleted file mode 100644 index 948c7bfcb..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/limitFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-limitFunction - - - -React Query hooks for LimitFunction data operations - -## Usage - -```typescript -useLimitFunctionsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } } }) -useLimitFunctionQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } } }) -useCreateLimitFunctionMutation({ selection: { fields: { id: true } } }) -useUpdateLimitFunctionMutation({ selection: { fields: { id: true } } }) -useDeleteLimitFunctionMutation({}) -``` - -## Examples - -### List all limitFunctions - -```typescript -const { data, isLoading } = useLimitFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }, -}); -``` - -### Create a limitFunction - -```typescript -const { mutate } = useCreateLimitFunctionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/limitsModule.md b/sdk/constructive-react/src/public/hooks/skills/limitsModule.md deleted file mode 100644 index 8f3c2b545..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/limitsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-limitsModule - - - -React Query hooks for LimitsModule data operations - -## Usage - -```typescript -useLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useCreateLimitsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateLimitsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteLimitsModuleMutation({}) -``` - -## Examples - -### List all limitsModules - -```typescript -const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, -}); -``` - -### Create a limitsModule - -```typescript -const { mutate } = useCreateLimitsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/membershipType.md b/sdk/constructive-react/src/public/hooks/skills/membershipType.md deleted file mode 100644 index 51dd3584b..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/membershipType.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-membershipType - - - -React Query hooks for MembershipType data operations - -## Usage - -```typescript -useMembershipTypesQuery({ selection: { fields: { id: true, name: true, description: true, prefix: true } } }) -useMembershipTypeQuery({ id: '', selection: { fields: { id: true, name: true, description: true, prefix: true } } }) -useCreateMembershipTypeMutation({ selection: { fields: { id: true } } }) -useUpdateMembershipTypeMutation({ selection: { fields: { id: true } } }) -useDeleteMembershipTypeMutation({}) -``` - -## Examples - -### List all membershipTypes - -```typescript -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true } }, -}); -``` - -### Create a membershipType - -```typescript -const { mutate } = useCreateMembershipTypeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', description: '', prefix: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/membershipTypesModule.md b/sdk/constructive-react/src/public/hooks/skills/membershipTypesModule.md deleted file mode 100644 index 6fbac3048..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/membershipTypesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-membershipTypesModule - - - -React Query hooks for MembershipTypesModule data operations - -## Usage - -```typescript -useMembershipTypesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useMembershipTypesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useCreateMembershipTypesModuleMutation({ selection: { fields: { id: true } } }) -useUpdateMembershipTypesModuleMutation({ selection: { fields: { id: true } } }) -useDeleteMembershipTypesModuleMutation({}) -``` - -## Examples - -### List all membershipTypesModules - -```typescript -const { data, isLoading } = useMembershipTypesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a membershipTypesModule - -```typescript -const { mutate } = useCreateMembershipTypesModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/membershipsModule.md b/sdk/constructive-react/src/public/hooks/skills/membershipsModule.md deleted file mode 100644 index 985a2747d..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/membershipsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-membershipsModule - - - -React Query hooks for MembershipsModule data operations - -## Usage - -```typescript -useMembershipsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } } }) -useMembershipsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } } }) -useCreateMembershipsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateMembershipsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteMembershipsModuleMutation({}) -``` - -## Examples - -### List all membershipsModules - -```typescript -const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }, -}); -``` - -### Create a membershipsModule - -```typescript -const { mutate } = useCreateMembershipsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md b/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md deleted file mode 100644 index 1117028fa..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-nodeTypeRegistry - - - -Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). - -## Usage - -```typescript -useNodeTypeRegistriesQuery({ selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } } }) -useNodeTypeRegistryQuery({ name: '', selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) -useUpdateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) -useDeleteNodeTypeRegistryMutation({}) -``` - -## Examples - -### List all nodeTypeRegistries - -```typescript -const { data, isLoading } = useNodeTypeRegistriesQuery({ - selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a nodeTypeRegistry - -```typescript -const { mutate } = useCreateNodeTypeRegistryMutation({ - selection: { fields: { name: true } }, -}); -mutate({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/object.md b/sdk/constructive-react/src/public/hooks/skills/object.md deleted file mode 100644 index 869f55493..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-object - - - -React Query hooks for Object data operations - -## Usage - -```typescript -useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) -useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) -useCreateObjectMutation({ selection: { fields: { id: true } } }) -useUpdateObjectMutation({ selection: { fields: { id: true } } }) -useDeleteObjectMutation({}) -``` - -## Examples - -### List all objects - -```typescript -const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); -``` - -### Create a object - -```typescript -const { mutate } = useCreateObjectMutation({ - selection: { fields: { id: true } }, -}); -mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/oneTimeToken.md b/sdk/constructive-react/src/public/hooks/skills/oneTimeToken.md deleted file mode 100644 index cfe0d893f..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/oneTimeToken.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-oneTimeToken - - - -React Query mutation hook for oneTimeToken - -## Usage - -```typescript -const { mutate } = useOneTimeTokenMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useOneTimeTokenMutation - -```typescript -const { mutate, isLoading } = useOneTimeTokenMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgAdminGrant.md b/sdk/constructive-react/src/public/hooks/skills/orgAdminGrant.md deleted file mode 100644 index aac7029bb..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgAdminGrant - - - -React Query hooks for OrgAdminGrant data operations - -## Usage - -```typescript -useOrgAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useOrgAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgAdminGrantMutation({}) -``` - -## Examples - -### List all orgAdminGrants - -```typescript -const { data, isLoading } = useOrgAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a orgAdminGrant - -```typescript -const { mutate } = useCreateOrgAdminGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgClaimedInvite.md b/sdk/constructive-react/src/public/hooks/skills/orgClaimedInvite.md deleted file mode 100644 index cb033587c..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgClaimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgClaimedInvite - - - -React Query hooks for OrgClaimedInvite data operations - -## Usage - -```typescript -useOrgClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) -useOrgClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) -useCreateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) -useUpdateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) -useDeleteOrgClaimedInviteMutation({}) -``` - -## Examples - -### List all orgClaimedInvites - -```typescript -const { data, isLoading } = useOrgClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, -}); -``` - -### Create a orgClaimedInvite - -```typescript -const { mutate } = useCreateOrgClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', senderId: '', receiverId: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgGrant.md b/sdk/constructive-react/src/public/hooks/skills/orgGrant.md deleted file mode 100644 index f70a2a0f2..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgGrant - - - -React Query hooks for OrgGrant data operations - -## Usage - -```typescript -useOrgGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useOrgGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateOrgGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgGrantMutation({}) -``` - -## Examples - -### List all orgGrants - -```typescript -const { data, isLoading } = useOrgGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a orgGrant - -```typescript -const { mutate } = useCreateOrgGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgInvite.md b/sdk/constructive-react/src/public/hooks/skills/orgInvite.md deleted file mode 100644 index d4eefbee2..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgInvite - - - -React Query hooks for OrgInvite data operations - -## Usage - -```typescript -useOrgInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) -useOrgInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) -useCreateOrgInviteMutation({ selection: { fields: { id: true } } }) -useUpdateOrgInviteMutation({ selection: { fields: { id: true } } }) -useDeleteOrgInviteMutation({}) -``` - -## Examples - -### List all orgInvites - -```typescript -const { data, isLoading } = useOrgInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, -}); -``` - -### Create a orgInvite - -```typescript -const { mutate } = useCreateOrgInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgLimit.md b/sdk/constructive-react/src/public/hooks/skills/orgLimit.md deleted file mode 100644 index 95dfb47a3..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgLimit - - - -React Query hooks for OrgLimit data operations - -## Usage - -```typescript -useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) -useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) -useCreateOrgLimitMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitMutation({}) -``` - -## Examples - -### List all orgLimits - -```typescript -const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, -}); -``` - -### Create a orgLimit - -```typescript -const { mutate } = useCreateOrgLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', num: '', max: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgLimitDefault.md b/sdk/constructive-react/src/public/hooks/skills/orgLimitDefault.md deleted file mode 100644 index e2e1703ab..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgLimitDefault - - - -React Query hooks for OrgLimitDefault data operations - -## Usage - -```typescript -useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) -useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitDefaultMutation({}) -``` - -## Examples - -### List all orgLimitDefaults - -```typescript -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); -``` - -### Create a orgLimitDefault - -```typescript -const { mutate } = useCreateOrgLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgMember.md b/sdk/constructive-react/src/public/hooks/skills/orgMember.md deleted file mode 100644 index a95727212..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgMember.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgMember - - - -React Query hooks for OrgMember data operations - -## Usage - -```typescript -useOrgMembersQuery({ selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) -useOrgMemberQuery({ id: '', selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) -useCreateOrgMemberMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMemberMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMemberMutation({}) -``` - -## Examples - -### List all orgMembers - -```typescript -const { data, isLoading } = useOrgMembersQuery({ - selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, -}); -``` - -### Create a orgMember - -```typescript -const { mutate } = useCreateOrgMemberMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isAdmin: '', actorId: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgMembership.md b/sdk/constructive-react/src/public/hooks/skills/orgMembership.md deleted file mode 100644 index ded9a40c5..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgMembership - - - -React Query hooks for OrgMembership data operations - -## Usage - -```typescript -useOrgMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } } }) -useOrgMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } } }) -useCreateOrgMembershipMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMembershipMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMembershipMutation({}) -``` - -## Examples - -### List all orgMemberships - -```typescript -const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }, -}); -``` - -### Create a orgMembership - -```typescript -const { mutate } = useCreateOrgMembershipMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgMembershipDefault.md b/sdk/constructive-react/src/public/hooks/skills/orgMembershipDefault.md deleted file mode 100644 index 21bdb9eb7..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgMembershipDefault - - - -React Query hooks for OrgMembershipDefault data operations - -## Usage - -```typescript -useOrgMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } } }) -useOrgMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } } }) -useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMembershipDefaultMutation({}) -``` - -## Examples - -### List all orgMembershipDefaults - -```typescript -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, -}); -``` - -### Create a orgMembershipDefault - -```typescript -const { mutate } = useCreateOrgMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgOwnerGrant.md b/sdk/constructive-react/src/public/hooks/skills/orgOwnerGrant.md deleted file mode 100644 index b26688557..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgOwnerGrant - - - -React Query hooks for OrgOwnerGrant data operations - -## Usage - -```typescript -useOrgOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useOrgOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgOwnerGrantMutation({}) -``` - -## Examples - -### List all orgOwnerGrants - -```typescript -const { data, isLoading } = useOrgOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a orgOwnerGrant - -```typescript -const { mutate } = useCreateOrgOwnerGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermission.md b/sdk/constructive-react/src/public/hooks/skills/orgPermission.md deleted file mode 100644 index babce4b02..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgPermission - - - -React Query hooks for OrgPermission data operations - -## Usage - -```typescript -useOrgPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useOrgPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useCreateOrgPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionMutation({}) -``` - -## Examples - -### List all orgPermissions - -```typescript -const { data, isLoading } = useOrgPermissionsQuery({ - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); -``` - -### Create a orgPermission - -```typescript -const { mutate } = useCreateOrgPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', bitnum: '', bitstr: '', description: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionDefault.md b/sdk/constructive-react/src/public/hooks/skills/orgPermissionDefault.md deleted file mode 100644 index 31e59c0dc..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-orgPermissionDefault - - - -React Query hooks for OrgPermissionDefault data operations - -## Usage - -```typescript -useOrgPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true, entityId: true } } }) -useOrgPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true, entityId: true } } }) -useCreateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionDefaultMutation({}) -``` - -## Examples - -### List all orgPermissionDefaults - -```typescript -const { data, isLoading } = useOrgPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true, entityId: true } }, -}); -``` - -### Create a orgPermissionDefault - -```typescript -const { mutate } = useCreateOrgPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '', entityId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetByMask.md b/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetByMask.md deleted file mode 100644 index d21ac66dd..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetByMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMask.md b/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMask.md deleted file mode 100644 index cfa5b4302..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-orgPermissionsGetMask - - - -React Query query hook for orgPermissionsGetMask - -## Usage - -```typescript -useOrgPermissionsGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetMaskQuery({ ids: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMaskByNames.md deleted file mode 100644 index 7f0f4452d..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-orgPermissionsGetMaskByNames - - - -React Query query hook for orgPermissionsGetMaskByNames - -## Usage - -```typescript -useOrgPermissionsGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ names: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetPaddedMask.md deleted file mode 100644 index 9ff601b07..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-orgPermissionsGetPaddedMask - - - -React Query query hook for orgPermissionsGetPaddedMask - -## Usage - -```typescript -useOrgPermissionsGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/permissionsModule.md b/sdk/constructive-react/src/public/hooks/skills/permissionsModule.md deleted file mode 100644 index cef0e3246..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/permissionsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-permissionsModule - - - -React Query hooks for PermissionsModule data operations - -## Usage - -```typescript -usePermissionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } } }) -usePermissionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } } }) -useCreatePermissionsModuleMutation({ selection: { fields: { id: true } } }) -useUpdatePermissionsModuleMutation({ selection: { fields: { id: true } } }) -useDeletePermissionsModuleMutation({}) -``` - -## Examples - -### List all permissionsModules - -```typescript -const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }, -}); -``` - -### Create a permissionsModule - -```typescript -const { mutate } = useCreatePermissionsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/phoneNumber.md b/sdk/constructive-react/src/public/hooks/skills/phoneNumber.md deleted file mode 100644 index 643a1e6f9..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/phoneNumber.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-phoneNumber - - - -React Query hooks for PhoneNumber data operations - -## Usage - -```typescript -usePhoneNumbersQuery({ selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -usePhoneNumberQuery({ id: '', selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useCreatePhoneNumberMutation({ selection: { fields: { id: true } } }) -useUpdatePhoneNumberMutation({ selection: { fields: { id: true } } }) -useDeletePhoneNumberMutation({}) -``` - -## Examples - -### List all phoneNumbers - -```typescript -const { data, isLoading } = usePhoneNumbersQuery({ - selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a phoneNumber - -```typescript -const { mutate } = useCreatePhoneNumberMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/phoneNumbersModule.md b/sdk/constructive-react/src/public/hooks/skills/phoneNumbersModule.md deleted file mode 100644 index aea5dbd98..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/phoneNumbersModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-phoneNumbersModule - - - -React Query hooks for PhoneNumbersModule data operations - -## Usage - -```typescript -usePhoneNumbersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -usePhoneNumbersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useCreatePhoneNumbersModuleMutation({ selection: { fields: { id: true } } }) -useUpdatePhoneNumbersModuleMutation({ selection: { fields: { id: true } } }) -useDeletePhoneNumbersModuleMutation({}) -``` - -## Examples - -### List all phoneNumbersModules - -```typescript -const { data, isLoading } = usePhoneNumbersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); -``` - -### Create a phoneNumbersModule - -```typescript -const { mutate } = useCreatePhoneNumbersModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/policy.md b/sdk/constructive-react/src/public/hooks/skills/policy.md deleted file mode 100644 index 278106a05..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/policy.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-policy - - - -React Query hooks for Policy data operations - -## Usage - -```typescript -usePoliciesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, roleName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -usePolicyQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, roleName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreatePolicyMutation({ selection: { fields: { id: true } } }) -useUpdatePolicyMutation({ selection: { fields: { id: true } } }) -useDeletePolicyMutation({}) -``` - -## Examples - -### List all policies - -```typescript -const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, roleName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a policy - -```typescript -const { mutate } = useCreatePolicyMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/primaryKeyConstraint.md b/sdk/constructive-react/src/public/hooks/skills/primaryKeyConstraint.md deleted file mode 100644 index 41cb7c4f2..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/primaryKeyConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-primaryKeyConstraint - - - -React Query hooks for PrimaryKeyConstraint data operations - -## Usage - -```typescript -usePrimaryKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -usePrimaryKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) -useUpdatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) -useDeletePrimaryKeyConstraintMutation({}) -``` - -## Examples - -### List all primaryKeyConstraints - -```typescript -const { data, isLoading } = usePrimaryKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a primaryKeyConstraint - -```typescript -const { mutate } = useCreatePrimaryKeyConstraintMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/procedure.md b/sdk/constructive-react/src/public/hooks/skills/procedure.md deleted file mode 100644 index 08b22d9e5..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/procedure.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-procedure - - - -React Query hooks for Procedure data operations - -## Usage - -```typescript -useProceduresQuery({ selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useProcedureQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateProcedureMutation({ selection: { fields: { id: true } } }) -useUpdateProcedureMutation({ selection: { fields: { id: true } } }) -useDeleteProcedureMutation({}) -``` - -## Examples - -### List all procedures - -```typescript -const { data, isLoading } = useProceduresQuery({ - selection: { fields: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a procedure - -```typescript -const { mutate } = useCreateProcedureMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/profilesModule.md b/sdk/constructive-react/src/public/hooks/skills/profilesModule.md deleted file mode 100644 index 8e506fc3b..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/profilesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-profilesModule - - - -React Query hooks for ProfilesModule data operations - -## Usage - -```typescript -useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) -useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) -useCreateProfilesModuleMutation({ selection: { fields: { id: true } } }) -useUpdateProfilesModuleMutation({ selection: { fields: { id: true } } }) -useDeleteProfilesModuleMutation({}) -``` - -## Examples - -### List all profilesModules - -```typescript -const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, -}); -``` - -### Create a profilesModule - -```typescript -const { mutate } = useCreateProfilesModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/provisionDatabaseWithUser.md b/sdk/constructive-react/src/public/hooks/skills/provisionDatabaseWithUser.md deleted file mode 100644 index f5ed6431e..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/provisionDatabaseWithUser.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-provisionDatabaseWithUser - - - -React Query mutation hook for provisionDatabaseWithUser - -## Usage - -```typescript -const { mutate } = useProvisionDatabaseWithUserMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useProvisionDatabaseWithUserMutation - -```typescript -const { mutate, isLoading } = useProvisionDatabaseWithUserMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/ref.md b/sdk/constructive-react/src/public/hooks/skills/ref.md deleted file mode 100644 index c2f1375b1..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -useRefsQuery({ selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) -useRefQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) -useCreateRefMutation({ selection: { fields: { id: true } } }) -useUpdateRefMutation({ selection: { fields: { id: true } } }) -useDeleteRefMutation({}) -``` - -## Examples - -### List all refs - -```typescript -const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, -}); -``` - -### Create a ref - -```typescript -const { mutate } = useCreateRefMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/removeNodeAtPath.md b/sdk/constructive-react/src/public/hooks/skills/removeNodeAtPath.md deleted file mode 100644 index 55126cbd9..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/removeNodeAtPath.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-removeNodeAtPath - - - -React Query mutation hook for removeNodeAtPath - -## Usage - -```typescript -const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useRemoveNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useRemoveNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/resetPassword.md b/sdk/constructive-react/src/public/hooks/skills/resetPassword.md deleted file mode 100644 index f4d93698a..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/resetPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-resetPassword - - - -React Query mutation hook for resetPassword - -## Usage - -```typescript -const { mutate } = useResetPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useResetPasswordMutation - -```typescript -const { mutate, isLoading } = useResetPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/revParse.md b/sdk/constructive-react/src/public/hooks/skills/revParse.md deleted file mode 100644 index da24b1094..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/revParse.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-revParse - - - -React Query query hook for revParse - -## Usage - -```typescript -useRevParseQuery({ dbId: '', storeId: '', refname: '' }) -``` - -## Examples - -### Use useRevParseQuery - -```typescript -const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/rlsModule.md b/sdk/constructive-react/src/public/hooks/skills/rlsModule.md deleted file mode 100644 index 192ca4cdc..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/rlsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-rlsModule - - - -React Query hooks for RlsModule data operations - -## Usage - -```typescript -useRlsModulesQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } } }) -useRlsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } } }) -useCreateRlsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateRlsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteRlsModuleMutation({}) -``` - -## Examples - -### List all rlsModules - -```typescript -const { data, isLoading } = useRlsModulesQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }, -}); -``` - -### Create a rlsModule - -```typescript -const { mutate } = useCreateRlsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', apiId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/roleType.md b/sdk/constructive-react/src/public/hooks/skills/roleType.md deleted file mode 100644 index b1716f353..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/roleType.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-roleType - - - -React Query hooks for RoleType data operations - -## Usage - -```typescript -useRoleTypesQuery({ selection: { fields: { id: true, name: true } } }) -useRoleTypeQuery({ id: '', selection: { fields: { id: true, name: true } } }) -useCreateRoleTypeMutation({ selection: { fields: { id: true } } }) -useUpdateRoleTypeMutation({ selection: { fields: { id: true } } }) -useDeleteRoleTypeMutation({}) -``` - -## Examples - -### List all roleTypes - -```typescript -const { data, isLoading } = useRoleTypesQuery({ - selection: { fields: { id: true, name: true } }, -}); -``` - -### Create a roleType - -```typescript -const { mutate } = useCreateRoleTypeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/schema.md b/sdk/constructive-react/src/public/hooks/skills/schema.md deleted file mode 100644 index d9b6f5a24..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/schema.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-schema - - - -React Query hooks for Schema data operations - -## Usage - -```typescript -useSchemasQuery({ selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) -useSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) -useCreateSchemaMutation({ selection: { fields: { id: true } } }) -useUpdateSchemaMutation({ selection: { fields: { id: true } } }) -useDeleteSchemaMutation({}) -``` - -## Examples - -### List all schemas - -```typescript -const { data, isLoading } = useSchemasQuery({ - selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a schema - -```typescript -const { mutate } = useCreateSchemaMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/schemaGrant.md b/sdk/constructive-react/src/public/hooks/skills/schemaGrant.md deleted file mode 100644 index bbb552a6f..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/schemaGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-schemaGrant - - - -React Query hooks for SchemaGrant data operations - -## Usage - -```typescript -useSchemaGrantsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } } }) -useSchemaGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } } }) -useCreateSchemaGrantMutation({ selection: { fields: { id: true } } }) -useUpdateSchemaGrantMutation({ selection: { fields: { id: true } } }) -useDeleteSchemaGrantMutation({}) -``` - -## Examples - -### List all schemaGrants - -```typescript -const { data, isLoading } = useSchemaGrantsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a schemaGrant - -```typescript -const { mutate } = useCreateSchemaGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', granteeName: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/secretsModule.md b/sdk/constructive-react/src/public/hooks/skills/secretsModule.md deleted file mode 100644 index 82b6c3885..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/secretsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-secretsModule - - - -React Query hooks for SecretsModule data operations - -## Usage - -```typescript -useSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useCreateSecretsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateSecretsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteSecretsModuleMutation({}) -``` - -## Examples - -### List all secretsModules - -```typescript -const { data, isLoading } = useSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a secretsModule - -```typescript -const { mutate } = useCreateSecretsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/sendAccountDeletionEmail.md b/sdk/constructive-react/src/public/hooks/skills/sendAccountDeletionEmail.md deleted file mode 100644 index f6b77609e..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/sendAccountDeletionEmail.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-sendAccountDeletionEmail - - - -React Query mutation hook for sendAccountDeletionEmail - -## Usage - -```typescript -const { mutate } = useSendAccountDeletionEmailMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSendAccountDeletionEmailMutation - -```typescript -const { mutate, isLoading } = useSendAccountDeletionEmailMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/sendVerificationEmail.md b/sdk/constructive-react/src/public/hooks/skills/sendVerificationEmail.md deleted file mode 100644 index 0b2dd7d1f..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/sendVerificationEmail.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-sendVerificationEmail - - - -React Query mutation hook for sendVerificationEmail - -## Usage - -```typescript -const { mutate } = useSendVerificationEmailMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSendVerificationEmailMutation - -```typescript -const { mutate, isLoading } = useSendVerificationEmailMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/sessionsModule.md b/sdk/constructive-react/src/public/hooks/skills/sessionsModule.md deleted file mode 100644 index 187263444..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/sessionsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-sessionsModule - - - -React Query hooks for SessionsModule data operations - -## Usage - -```typescript -useSessionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } } }) -useSessionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } } }) -useCreateSessionsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateSessionsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteSessionsModuleMutation({}) -``` - -## Examples - -### List all sessionsModules - -```typescript -const { data, isLoading } = useSessionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, -}); -``` - -### Create a sessionsModule - -```typescript -const { mutate } = useCreateSessionsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/setAndCommit.md b/sdk/constructive-react/src/public/hooks/skills/setAndCommit.md deleted file mode 100644 index fe8ee1048..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/setAndCommit.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-setAndCommit - - - -React Query mutation hook for setAndCommit - -## Usage - -```typescript -const { mutate } = useSetAndCommitMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetAndCommitMutation - -```typescript -const { mutate, isLoading } = useSetAndCommitMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/setDataAtPath.md b/sdk/constructive-react/src/public/hooks/skills/setDataAtPath.md deleted file mode 100644 index 1e407b642..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/setDataAtPath.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-setDataAtPath - - - -React Query mutation hook for setDataAtPath - -## Usage - -```typescript -const { mutate } = useSetDataAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetDataAtPathMutation - -```typescript -const { mutate, isLoading } = useSetDataAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/setFieldOrder.md b/sdk/constructive-react/src/public/hooks/skills/setFieldOrder.md deleted file mode 100644 index c31c56727..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/setFieldOrder.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-setFieldOrder - - - -React Query mutation hook for setFieldOrder - -## Usage - -```typescript -const { mutate } = useSetFieldOrderMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetFieldOrderMutation - -```typescript -const { mutate, isLoading } = useSetFieldOrderMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/setPassword.md b/sdk/constructive-react/src/public/hooks/skills/setPassword.md deleted file mode 100644 index d0c5dd0f7..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/setPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-setPassword - - - -React Query mutation hook for setPassword - -## Usage - -```typescript -const { mutate } = useSetPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetPasswordMutation - -```typescript -const { mutate, isLoading } = useSetPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/setPropsAndCommit.md b/sdk/constructive-react/src/public/hooks/skills/setPropsAndCommit.md deleted file mode 100644 index 1767c4d4a..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/setPropsAndCommit.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-setPropsAndCommit - - - -React Query mutation hook for setPropsAndCommit - -## Usage - -```typescript -const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetPropsAndCommitMutation - -```typescript -const { mutate, isLoading } = useSetPropsAndCommitMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/signIn.md b/sdk/constructive-react/src/public/hooks/skills/signIn.md deleted file mode 100644 index f55de032e..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/signIn.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-signIn - - - -React Query mutation hook for signIn - -## Usage - -```typescript -const { mutate } = useSignInMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignInMutation - -```typescript -const { mutate, isLoading } = useSignInMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/signInOneTimeToken.md b/sdk/constructive-react/src/public/hooks/skills/signInOneTimeToken.md deleted file mode 100644 index 9326b4fca..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/signInOneTimeToken.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-signInOneTimeToken - - - -React Query mutation hook for signInOneTimeToken - -## Usage - -```typescript -const { mutate } = useSignInOneTimeTokenMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignInOneTimeTokenMutation - -```typescript -const { mutate, isLoading } = useSignInOneTimeTokenMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/signOut.md b/sdk/constructive-react/src/public/hooks/skills/signOut.md deleted file mode 100644 index 1be81c9ef..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/signOut.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-signOut - - - -React Query mutation hook for signOut - -## Usage - -```typescript -const { mutate } = useSignOutMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignOutMutation - -```typescript -const { mutate, isLoading } = useSignOutMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/signUp.md b/sdk/constructive-react/src/public/hooks/skills/signUp.md deleted file mode 100644 index ab7ff4422..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/signUp.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-signUp - - - -React Query mutation hook for signUp - -## Usage - -```typescript -const { mutate } = useSignUpMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignUpMutation - -```typescript -const { mutate, isLoading } = useSignUpMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/site.md b/sdk/constructive-react/src/public/hooks/skills/site.md deleted file mode 100644 index 07b8f891c..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/site.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-site - - - -React Query hooks for Site data operations - -## Usage - -```typescript -useSitesQuery({ selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } } }) -useSiteQuery({ id: '', selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } } }) -useCreateSiteMutation({ selection: { fields: { id: true } } }) -useUpdateSiteMutation({ selection: { fields: { id: true } } }) -useDeleteSiteMutation({}) -``` - -## Examples - -### List all sites - -```typescript -const { data, isLoading } = useSitesQuery({ - selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, -}); -``` - -### Create a site - -```typescript -const { mutate } = useCreateSiteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/siteMetadatum.md b/sdk/constructive-react/src/public/hooks/skills/siteMetadatum.md deleted file mode 100644 index f4b3b74f2..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/siteMetadatum.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-siteMetadatum - - - -React Query hooks for SiteMetadatum data operations - -## Usage - -```typescript -useSiteMetadataQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } } }) -useSiteMetadatumQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } } }) -useCreateSiteMetadatumMutation({ selection: { fields: { id: true } } }) -useUpdateSiteMetadatumMutation({ selection: { fields: { id: true } } }) -useDeleteSiteMetadatumMutation({}) -``` - -## Examples - -### List all siteMetadata - -```typescript -const { data, isLoading } = useSiteMetadataQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, -}); -``` - -### Create a siteMetadatum - -```typescript -const { mutate } = useCreateSiteMetadatumMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', siteId: '', title: '', description: '', ogImage: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/siteModule.md b/sdk/constructive-react/src/public/hooks/skills/siteModule.md deleted file mode 100644 index 520233f49..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/siteModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-siteModule - - - -React Query hooks for SiteModule data operations - -## Usage - -```typescript -useSiteModulesQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } } }) -useSiteModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } } }) -useCreateSiteModuleMutation({ selection: { fields: { id: true } } }) -useUpdateSiteModuleMutation({ selection: { fields: { id: true } } }) -useDeleteSiteModuleMutation({}) -``` - -## Examples - -### List all siteModules - -```typescript -const { data, isLoading } = useSiteModulesQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, -}); -``` - -### Create a siteModule - -```typescript -const { mutate } = useCreateSiteModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', siteId: '', name: '', data: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/siteTheme.md b/sdk/constructive-react/src/public/hooks/skills/siteTheme.md deleted file mode 100644 index 0500e4cdd..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/siteTheme.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-siteTheme - - - -React Query hooks for SiteTheme data operations - -## Usage - -```typescript -useSiteThemesQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } } }) -useSiteThemeQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } } }) -useCreateSiteThemeMutation({ selection: { fields: { id: true } } }) -useUpdateSiteThemeMutation({ selection: { fields: { id: true } } }) -useDeleteSiteThemeMutation({}) -``` - -## Examples - -### List all siteThemes - -```typescript -const { data, isLoading } = useSiteThemesQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, -}); -``` - -### Create a siteTheme - -```typescript -const { mutate } = useCreateSiteThemeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', siteId: '', theme: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/sqlMigration.md b/sdk/constructive-react/src/public/hooks/skills/sqlMigration.md deleted file mode 100644 index debe2b7b6..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/sqlMigration.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-sqlMigration - - - -React Query hooks for SqlMigration data operations - -## Usage - -```typescript -useSqlMigrationsQuery({ selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useSqlMigrationQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useCreateSqlMigrationMutation({ selection: { fields: { id: true } } }) -useUpdateSqlMigrationMutation({ selection: { fields: { id: true } } }) -useDeleteSqlMigrationMutation({}) -``` - -## Examples - -### List all sqlMigrations - -```typescript -const { data, isLoading } = useSqlMigrationsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, -}); -``` - -### Create a sqlMigration - -```typescript -const { mutate } = useCreateSqlMigrationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/stepsAchieved.md b/sdk/constructive-react/src/public/hooks/skills/stepsAchieved.md deleted file mode 100644 index c5e1f6bda..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/stepsAchieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-stepsAchieved - - - -React Query query hook for stepsAchieved - -## Usage - -```typescript -useStepsAchievedQuery({ vlevel: '', vroleId: '' }) -``` - -## Examples - -### Use useStepsAchievedQuery - -```typescript -const { data, isLoading } = useStepsAchievedQuery({ vlevel: '', vroleId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/stepsRequired.md b/sdk/constructive-react/src/public/hooks/skills/stepsRequired.md deleted file mode 100644 index 6862ec2dd..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/stepsRequired.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -useStepsRequiredQuery({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useStepsRequiredQuery - -```typescript -const { data, isLoading } = useStepsRequiredQuery({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/store.md b/sdk/constructive-react/src/public/hooks/skills/store.md deleted file mode 100644 index 7263efef0..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -useStoresQuery({ selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) -useStoreQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) -useCreateStoreMutation({ selection: { fields: { id: true } } }) -useUpdateStoreMutation({ selection: { fields: { id: true } } }) -useDeleteStoreMutation({}) -``` - -## Examples - -### List all stores - -```typescript -const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, -}); -``` - -### Create a store - -```typescript -const { mutate } = useCreateStoreMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', databaseId: '', hash: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/submitInviteCode.md b/sdk/constructive-react/src/public/hooks/skills/submitInviteCode.md deleted file mode 100644 index 54388f821..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/submitInviteCode.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-submitInviteCode - - - -React Query mutation hook for submitInviteCode - -## Usage - -```typescript -const { mutate } = useSubmitInviteCodeMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSubmitInviteCodeMutation - -```typescript -const { mutate, isLoading } = useSubmitInviteCodeMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/submitOrgInviteCode.md b/sdk/constructive-react/src/public/hooks/skills/submitOrgInviteCode.md deleted file mode 100644 index c61b24f83..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/submitOrgInviteCode.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-submitOrgInviteCode - - - -React Query mutation hook for submitOrgInviteCode - -## Usage - -```typescript -const { mutate } = useSubmitOrgInviteCodeMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSubmitOrgInviteCodeMutation - -```typescript -const { mutate, isLoading } = useSubmitOrgInviteCodeMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/table.md b/sdk/constructive-react/src/public/hooks/skills/table.md deleted file mode 100644 index 708c47501..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/table.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-table - - - -React Query hooks for Table data operations - -## Usage - -```typescript -useTablesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } } }) -useTableQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } } }) -useCreateTableMutation({ selection: { fields: { id: true } } }) -useUpdateTableMutation({ selection: { fields: { id: true } } }) -useDeleteTableMutation({}) -``` - -## Examples - -### List all tables - -```typescript -const { data, isLoading } = useTablesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a table - -```typescript -const { mutate } = useCreateTableMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/tableGrant.md b/sdk/constructive-react/src/public/hooks/skills/tableGrant.md deleted file mode 100644 index 928aaaa71..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/tableGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-tableGrant - - - -React Query hooks for TableGrant data operations - -## Usage - -```typescript -useTableGrantsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } } }) -useTableGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } } }) -useCreateTableGrantMutation({ selection: { fields: { id: true } } }) -useUpdateTableGrantMutation({ selection: { fields: { id: true } } }) -useDeleteTableGrantMutation({}) -``` - -## Examples - -### List all tableGrants - -```typescript -const { data, isLoading } = useTableGrantsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a tableGrant - -```typescript -const { mutate } = useCreateTableGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/tableModule.md b/sdk/constructive-react/src/public/hooks/skills/tableModule.md deleted file mode 100644 index 1e3ded3a0..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/tableModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-tableModule - - - -React Query hooks for TableModule data operations - -## Usage - -```typescript -useTableModulesQuery({ selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } } }) -useTableModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } } }) -useCreateTableModuleMutation({ selection: { fields: { id: true } } }) -useUpdateTableModuleMutation({ selection: { fields: { id: true } } }) -useDeleteTableModuleMutation({}) -``` - -## Examples - -### List all tableModules - -```typescript -const { data, isLoading } = useTableModulesQuery({ - selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }, -}); -``` - -### Create a tableModule - -```typescript -const { mutate } = useCreateTableModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/tableTemplateModule.md b/sdk/constructive-react/src/public/hooks/skills/tableTemplateModule.md deleted file mode 100644 index affb60da5..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/tableTemplateModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-tableTemplateModule - - - -React Query hooks for TableTemplateModule data operations - -## Usage - -```typescript -useTableTemplateModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } } }) -useTableTemplateModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } } }) -useCreateTableTemplateModuleMutation({ selection: { fields: { id: true } } }) -useUpdateTableTemplateModuleMutation({ selection: { fields: { id: true } } }) -useDeleteTableTemplateModuleMutation({}) -``` - -## Examples - -### List all tableTemplateModules - -```typescript -const { data, isLoading } = useTableTemplateModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }, -}); -``` - -### Create a tableTemplateModule - -```typescript -const { mutate } = useCreateTableTemplateModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/trigger.md b/sdk/constructive-react/src/public/hooks/skills/trigger.md deleted file mode 100644 index f9578ea2c..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/trigger.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-trigger - - - -React Query hooks for Trigger data operations - -## Usage - -```typescript -useTriggersQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useTriggerQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateTriggerMutation({ selection: { fields: { id: true } } }) -useUpdateTriggerMutation({ selection: { fields: { id: true } } }) -useDeleteTriggerMutation({}) -``` - -## Examples - -### List all triggers - -```typescript -const { data, isLoading } = useTriggersQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a trigger - -```typescript -const { mutate } = useCreateTriggerMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/triggerFunction.md b/sdk/constructive-react/src/public/hooks/skills/triggerFunction.md deleted file mode 100644 index 691122e95..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/triggerFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-triggerFunction - - - -React Query hooks for TriggerFunction data operations - -## Usage - -```typescript -useTriggerFunctionsQuery({ selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } } }) -useTriggerFunctionQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } } }) -useCreateTriggerFunctionMutation({ selection: { fields: { id: true } } }) -useUpdateTriggerFunctionMutation({ selection: { fields: { id: true } } }) -useDeleteTriggerFunctionMutation({}) -``` - -## Examples - -### List all triggerFunctions - -```typescript -const { data, isLoading } = useTriggerFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a triggerFunction - -```typescript -const { mutate } = useCreateTriggerFunctionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', code: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/uniqueConstraint.md b/sdk/constructive-react/src/public/hooks/skills/uniqueConstraint.md deleted file mode 100644 index c93048587..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/uniqueConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-uniqueConstraint - - - -React Query hooks for UniqueConstraint data operations - -## Usage - -```typescript -useUniqueConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useUniqueConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateUniqueConstraintMutation({ selection: { fields: { id: true } } }) -useUpdateUniqueConstraintMutation({ selection: { fields: { id: true } } }) -useDeleteUniqueConstraintMutation({}) -``` - -## Examples - -### List all uniqueConstraints - -```typescript -const { data, isLoading } = useUniqueConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a uniqueConstraint - -```typescript -const { mutate } = useCreateUniqueConstraintMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/updateNodeAtPath.md b/sdk/constructive-react/src/public/hooks/skills/updateNodeAtPath.md deleted file mode 100644 index 0b608afea..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/updateNodeAtPath.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-updateNodeAtPath - - - -React Query mutation hook for updateNodeAtPath - -## Usage - -```typescript -const { mutate } = useUpdateNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useUpdateNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useUpdateNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/user.md b/sdk/constructive-react/src/public/hooks/skills/user.md deleted file mode 100644 index d9044e83c..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/user.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-user - - - -React Query hooks for User data operations - -## Usage - -```typescript -useUsersQuery({ selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) -useUserQuery({ id: '', selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) -useCreateUserMutation({ selection: { fields: { id: true } } }) -useUpdateUserMutation({ selection: { fields: { id: true } } }) -useDeleteUserMutation({}) -``` - -## Examples - -### List all users - -```typescript -const { data, isLoading } = useUsersQuery({ - selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, -}); -``` - -### Create a user - -```typescript -const { mutate } = useCreateUserMutation({ - selection: { fields: { id: true } }, -}); -mutate({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/userAuthModule.md b/sdk/constructive-react/src/public/hooks/skills/userAuthModule.md deleted file mode 100644 index 856a31249..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/userAuthModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-userAuthModule - - - -React Query hooks for UserAuthModule data operations - -## Usage - -```typescript -useUserAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } } }) -useUserAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } } }) -useCreateUserAuthModuleMutation({ selection: { fields: { id: true } } }) -useUpdateUserAuthModuleMutation({ selection: { fields: { id: true } } }) -useDeleteUserAuthModuleMutation({}) -``` - -## Examples - -### List all userAuthModules - -```typescript -const { data, isLoading } = useUserAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }, -}); -``` - -### Create a userAuthModule - -```typescript -const { mutate } = useCreateUserAuthModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/usersModule.md b/sdk/constructive-react/src/public/hooks/skills/usersModule.md deleted file mode 100644 index c5ddcc724..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/usersModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-usersModule - - - -React Query hooks for UsersModule data operations - -## Usage - -```typescript -useUsersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } } }) -useUsersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } } }) -useCreateUsersModuleMutation({ selection: { fields: { id: true } } }) -useUpdateUsersModuleMutation({ selection: { fields: { id: true } } }) -useDeleteUsersModuleMutation({}) -``` - -## Examples - -### List all usersModules - -```typescript -const { data, isLoading } = useUsersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }, -}); -``` - -### Create a usersModule - -```typescript -const { mutate } = useCreateUsersModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/uuidModule.md b/sdk/constructive-react/src/public/hooks/skills/uuidModule.md deleted file mode 100644 index c26d42f65..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/uuidModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-uuidModule - - - -React Query hooks for UuidModule data operations - -## Usage - -```typescript -useUuidModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } } }) -useUuidModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } } }) -useCreateUuidModuleMutation({ selection: { fields: { id: true } } }) -useUpdateUuidModuleMutation({ selection: { fields: { id: true } } }) -useDeleteUuidModuleMutation({}) -``` - -## Examples - -### List all uuidModules - -```typescript -const { data, isLoading } = useUuidModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } }, -}); -``` - -### Create a uuidModule - -```typescript -const { mutate } = useCreateUuidModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/verifyEmail.md b/sdk/constructive-react/src/public/hooks/skills/verifyEmail.md deleted file mode 100644 index 67e42fb87..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/verifyEmail.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-verifyEmail - - - -React Query mutation hook for verifyEmail - -## Usage - -```typescript -const { mutate } = useVerifyEmailMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useVerifyEmailMutation - -```typescript -const { mutate, isLoading } = useVerifyEmailMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/verifyPassword.md b/sdk/constructive-react/src/public/hooks/skills/verifyPassword.md deleted file mode 100644 index a1e5074c6..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/verifyPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-verifyPassword - - - -React Query mutation hook for verifyPassword - -## Usage - -```typescript -const { mutate } = useVerifyPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useVerifyPasswordMutation - -```typescript -const { mutate, isLoading } = useVerifyPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/verifyTotp.md b/sdk/constructive-react/src/public/hooks/skills/verifyTotp.md deleted file mode 100644 index d2b9ad825..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/verifyTotp.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-verifyTotp - - - -React Query mutation hook for verifyTotp - -## Usage - -```typescript -const { mutate } = useVerifyTotpMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useVerifyTotpMutation - -```typescript -const { mutate, isLoading } = useVerifyTotpMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/view.md b/sdk/constructive-react/src/public/hooks/skills/view.md deleted file mode 100644 index a5170adf2..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/view.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-view - - - -React Query hooks for View data operations - -## Usage - -```typescript -useViewsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) -useViewQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) -useCreateViewMutation({ selection: { fields: { id: true } } }) -useUpdateViewMutation({ selection: { fields: { id: true } } }) -useDeleteViewMutation({}) -``` - -## Examples - -### List all views - -```typescript -const { data, isLoading } = useViewsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, -}); -``` - -### Create a view - -```typescript -const { mutate } = useCreateViewMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/viewGrant.md b/sdk/constructive-react/src/public/hooks/skills/viewGrant.md deleted file mode 100644 index cdd0b78e0..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/viewGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-viewGrant - - - -React Query hooks for ViewGrant data operations - -## Usage - -```typescript -useViewGrantsQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } } }) -useViewGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } } }) -useCreateViewGrantMutation({ selection: { fields: { id: true } } }) -useUpdateViewGrantMutation({ selection: { fields: { id: true } } }) -useDeleteViewGrantMutation({}) -``` - -## Examples - -### List all viewGrants - -```typescript -const { data, isLoading } = useViewGrantsQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }, -}); -``` - -### Create a viewGrant - -```typescript -const { mutate } = useCreateViewGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/viewRule.md b/sdk/constructive-react/src/public/hooks/skills/viewRule.md deleted file mode 100644 index 8cf933710..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/viewRule.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-viewRule - - - -DO INSTEAD rules for views (e.g., read-only enforcement) - -## Usage - -```typescript -useViewRulesQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } } }) -useViewRuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } } }) -useCreateViewRuleMutation({ selection: { fields: { id: true } } }) -useUpdateViewRuleMutation({ selection: { fields: { id: true } } }) -useDeleteViewRuleMutation({}) -``` - -## Examples - -### List all viewRules - -```typescript -const { data, isLoading } = useViewRulesQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, -}); -``` - -### Create a viewRule - -```typescript -const { mutate } = useCreateViewRuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', viewId: '', name: '', event: '', action: '' }); -``` diff --git a/sdk/constructive-react/src/public/hooks/skills/viewTable.md b/sdk/constructive-react/src/public/hooks/skills/viewTable.md deleted file mode 100644 index 19ae38d79..000000000 --- a/sdk/constructive-react/src/public/hooks/skills/viewTable.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-viewTable - - - -Junction table linking views to their joined tables for referential integrity - -## Usage - -```typescript -useViewTablesQuery({ selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) -useViewTableQuery({ id: '', selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) -useCreateViewTableMutation({ selection: { fields: { id: true } } }) -useUpdateViewTableMutation({ selection: { fields: { id: true } } }) -useDeleteViewTableMutation({}) -``` - -## Examples - -### List all viewTables - -```typescript -const { data, isLoading } = useViewTablesQuery({ - selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, -}); -``` - -### Create a viewTable - -```typescript -const { mutate } = useCreateViewTableMutation({ - selection: { fields: { id: true } }, -}); -mutate({ viewId: '', tableId: '', joinOrder: '' }); -``` diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index e7b901054..dbb346bd5 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -21,6 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `orgGetManagersRecord` | findMany, findOne, create, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | @@ -34,7 +36,6 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `limitFunction` | findMany, findOne, create, update, delete | | `policy` | findMany, findOne, create, update, delete | | `primaryKeyConstraint` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -46,14 +47,16 @@ const db = createClient({ | `viewRule` | findMany, findOne, create, update, delete | | `tableModule` | findMany, findOne, create, update, delete | | `tableTemplateModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | +| `defaultPrivilege` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | | `siteMetadatum` | findMany, findOne, create, update, delete | | `siteModule` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | -| `procedure` | findMany, findOne, create, update, delete | | `triggerFunction` | findMany, findOne, create, update, delete | | `api` | findMany, findOne, create, update, delete | | `site` | findMany, findOne, create, update, delete | @@ -89,6 +92,8 @@ const db = createClient({ | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | @@ -97,32 +102,92 @@ const db = createClient({ | `claimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | +| `appPermissionDefault` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | | `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `sqlMigration` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | ## Table Operations +### `db.orgGetManagersRecord` + +CRUD operations for OrgGetManagersRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGetSubordinatesRecord` + +CRUD operations for OrgGetSubordinatesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.getAllRecord` CRUD operations for GetAllRecord records. @@ -638,42 +703,6 @@ const updated = await db.index.update({ where: { id: '' }, data: { databa const deleted = await db.index.delete({ where: { id: '' } }).execute(); ``` -### `db.limitFunction` - -CRUD operations for LimitFunction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `data` | JSON | Yes | -| `security` | Int | Yes | - -**Operations:** - -```typescript -// List all limitFunction records -const items = await db.limitFunction.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }).execute(); - -// Get one by id -const item = await db.limitFunction.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }).execute(); - -// Create -const created = await db.limitFunction.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.limitFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.limitFunction.delete({ where: { id: '' } }).execute(); -``` - ### `db.policy` CRUD operations for Policy records. @@ -686,7 +715,7 @@ CRUD operations for Policy records. | `databaseId` | UUID | Yes | | `tableId` | UUID | Yes | | `name` | String | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `privilege` | String | Yes | | `permissive` | Boolean | Yes | | `disabled` | Boolean | Yes | @@ -704,13 +733,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, roleName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, roleName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -772,8 +801,9 @@ CRUD operations for TableGrant records. | `databaseId` | UUID | Yes | | `tableId` | UUID | Yes | | `privilege` | String | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `fieldIds` | UUID | Yes | +| `isGrant` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -781,13 +811,13 @@ CRUD operations for TableGrant records. ```typescript // List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute(); +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -966,21 +996,22 @@ CRUD operations for ViewGrant records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `viewId` | UUID | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `privilege` | String | Yes | | `withGrantOption` | Boolean | Yes | +| `isGrant` | Boolean | Yes | **Operations:** ```typescript // List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }).execute(); +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }).execute(); +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute(); +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1033,9 +1064,11 @@ CRUD operations for TableModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | +| `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | +| `tableName` | String | Yes | | `nodeType` | String | Yes | +| `useRls` | Boolean | Yes | | `data` | JSON | Yes | | `fields` | UUID | Yes | @@ -1043,13 +1076,13 @@ CRUD operations for TableModule records. ```typescript // List all tableModule records -const items = await db.tableModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }).execute(); +const items = await db.tableModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }).execute(); // Get one by id -const item = await db.tableModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }).execute(); +const item = await db.tableModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }).execute(); // Create -const created = await db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute(); +const created = await db.tableModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }, select: { id: true } }).execute(); // Update const updated = await db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1095,6 +1128,107 @@ const updated = await db.tableTemplateModule.update({ where: { id: '' }, const deleted = await db.tableTemplateModule.delete({ where: { id: '' } }).execute(); ``` +### `db.secureTableProvision` + +CRUD operations for SecureTableProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `nodeType` | String | Yes | +| `useRls` | Boolean | Yes | +| `nodeData` | JSON | Yes | +| `grantRoles` | String | Yes | +| `grantPrivileges` | JSON | Yes | +| `policyType` | String | Yes | +| `policyPrivileges` | String | Yes | +| `policyRole` | String | Yes | +| `policyPermissive` | Boolean | Yes | +| `policyName` | String | Yes | +| `policyData` | JSON | Yes | +| `outFields` | UUID | Yes | + +**Operations:** + +```typescript +// List all secureTableProvision records +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); + +// Get one by id +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); + +// Create +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); +``` + +### `db.relationProvision` + +CRUD operations for RelationProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `relationType` | String | Yes | +| `sourceTableId` | UUID | Yes | +| `targetTableId` | UUID | Yes | +| `fieldName` | String | Yes | +| `deleteAction` | String | Yes | +| `isRequired` | Boolean | Yes | +| `junctionTableId` | UUID | Yes | +| `junctionTableName` | String | Yes | +| `junctionSchemaId` | UUID | Yes | +| `sourceFieldName` | String | Yes | +| `targetFieldName` | String | Yes | +| `useCompositeKey` | Boolean | Yes | +| `nodeType` | String | Yes | +| `nodeData` | JSON | Yes | +| `grantRoles` | String | Yes | +| `grantPrivileges` | JSON | Yes | +| `policyType` | String | Yes | +| `policyPrivileges` | String | Yes | +| `policyRole` | String | Yes | +| `policyPermissive` | Boolean | Yes | +| `policyName` | String | Yes | +| `policyData` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | Yes | + +**Operations:** + +```typescript +// List all relationProvision records +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); + +// Get one by id +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); + +// Create +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1129,6 +1263,41 @@ const updated = await db.schemaGrant.update({ where: { id: '' }, data: { const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.defaultPrivilege` + +CRUD operations for DefaultPrivilege records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `objectType` | String | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all defaultPrivilege records +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Create +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. @@ -1327,49 +1496,6 @@ const updated = await db.siteTheme.update({ where: { id: '' }, data: { da const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); ``` -### `db.procedure` - -CRUD operations for Procedure records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `argnames` | String | Yes | -| `argtypes` | String | Yes | -| `argdefaults` | String | Yes | -| `langName` | String | Yes | -| `definition` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all procedure records -const items = await db.procedure.findMany({ select: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.procedure.findOne({ id: '', select: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.procedure.create({ data: { databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.procedure.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.procedure.delete({ where: { id: '' } }).execute(); -``` - ### `db.triggerFunction` CRUD operations for TriggerFunction records. @@ -2135,7 +2261,6 @@ CRUD operations for ProfilesModule records. | `profileGrantsTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | -| `bitlen` | Int | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | @@ -2147,13 +2272,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2564,18 +2689,19 @@ CRUD operations for OrgMembership records. | `granted` | BitString | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -2722,6 +2848,79 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { per const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.orgChartEdge` + +CRUD operations for OrgChartEdge records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | + +**Operations:** + +```typescript +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); + +// Create +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgChartEdgeGrant` + +CRUD operations for OrgChartEdgeGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appLimit` CRUD operations for AppLimit records. @@ -3008,39 +3207,42 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, dat const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.ref` -CRUD operations for AppPermissionDefault records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.store` -CRUD operations for Ref records. +CRUD operations for Store records. **Fields:** @@ -3049,59 +3251,56 @@ CRUD operations for Ref records. | `id` | UUID | No | | `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.appPermissionDefault` -CRUD operations for Store records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | +| `permissions` | BitString | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.roleType` @@ -3165,40 +3364,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.cryptoAddress` -CRUD operations for AppLimitDefault records. +CRUD operations for CryptoAddress records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `ownerId` | UUID | Yes | +| `address` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appLimitDefault` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppLimitDefault records. **Fields:** @@ -3211,87 +3414,51 @@ CRUD operations for OrgLimitDefault records. **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.cryptoAddress` +### `db.orgLimitDefault` -CRUD operations for CryptoAddress records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | | `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccount` @@ -3366,39 +3533,36 @@ const updated = await db.phoneNumber.update({ where: { id: '' }, data: { const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.nodeTypeRegistry` @@ -3438,6 +3602,41 @@ const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, d const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` +### `db.appMembershipDefault` + +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Get one by id +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Create +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + ### `db.commit` CRUD operations for Commit records. @@ -3512,41 +3711,6 @@ const updated = await db.orgMembershipDefault.update({ where: { id: '' }, const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); -``` - ### `db.auditLog` CRUD operations for AuditLog records. @@ -3618,6 +3782,41 @@ const updated = await db.appLevel.update({ where: { id: '' }, data: { nam const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` +### `db.email` + +CRUD operations for Email records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.email.delete({ where: { id: '' } }).execute(); +``` + ### `db.sqlMigration` CRUD operations for SqlMigration records. @@ -3700,84 +3899,85 @@ const updated = await db.astMigration.update({ where: { id: '' }, data: { const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` +### `db.user` -CRUD operations for AppMembership records. +CRUD operations for User records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `username` | String | Yes | +| `displayName` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `searchTsv` | FullText | Yes | +| `type` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | +| `searchTsvRank` | Float | Yes | **Operations:** ```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +// List all user records +const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` -### `db.user` +### `db.appMembership` -CRUD operations for User records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `username` | String | Yes | -| `displayName` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchTsv` | FullText | Yes | -| `type` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `searchTsvRank` | Float | Yes | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all user records -const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -3926,6 +4126,24 @@ revParse const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` +### `db.query.orgIsManagerOf` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` + ### `db.query.appPermissionsGetMask` appPermissionsGetMask diff --git a/sdk/constructive-react/src/public/orm/index.ts b/sdk/constructive-react/src/public/orm/index.ts index 5bdb26031..238fd616e 100644 --- a/sdk/constructive-react/src/public/orm/index.ts +++ b/sdk/constructive-react/src/public/orm/index.ts @@ -5,6 +5,8 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; +import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; @@ -18,7 +20,6 @@ import { FieldModel } from './models/field'; import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { IndexModel } from './models/index'; -import { LimitFunctionModel } from './models/limitFunction'; import { PolicyModel } from './models/policy'; import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { TableGrantModel } from './models/tableGrant'; @@ -30,14 +31,16 @@ import { ViewGrantModel } from './models/viewGrant'; import { ViewRuleModel } from './models/viewRule'; import { TableModuleModel } from './models/tableModule'; import { TableTemplateModuleModel } from './models/tableTemplateModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; +import { RelationProvisionModel } from './models/relationProvision'; import { SchemaGrantModel } from './models/schemaGrant'; +import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; import { SiteThemeModel } from './models/siteTheme'; -import { ProcedureModel } from './models/procedure'; import { TriggerFunctionModel } from './models/triggerFunction'; import { ApiModel } from './models/api'; import { SiteModel } from './models/site'; @@ -73,6 +76,8 @@ import { OrgMemberModel } from './models/orgMember'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; import { AppStepModel } from './models/appStep'; @@ -81,28 +86,28 @@ import { InviteModel } from './models/invite'; import { ClaimedInviteModel } from './models/claimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; +import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { RoleTypeModel } from './models/roleType'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { CryptoAddressModel } from './models/cryptoAddress'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { MembershipTypeModel } from './models/membershipType'; import { ConnectedAccountModel } from './models/connectedAccount'; import { PhoneNumberModel } from './models/phoneNumber'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { CommitModel } from './models/commit'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { EmailModel } from './models/email'; import { AuditLogModel } from './models/auditLog'; import { AppLevelModel } from './models/appLevel'; +import { EmailModel } from './models/email'; import { SqlMigrationModel } from './models/sqlMigration'; import { AstMigrationModel } from './models/astMigration'; -import { AppMembershipModel } from './models/appMembership'; import { UserModel } from './models/user'; +import { AppMembershipModel } from './models/appMembership'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -139,6 +144,8 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + orgGetManagersRecord: new OrgGetManagersRecordModel(client), + orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), @@ -152,7 +159,6 @@ export function createClient(config: OrmClientConfig) { foreignKeyConstraint: new ForeignKeyConstraintModel(client), fullTextSearch: new FullTextSearchModel(client), index: new IndexModel(client), - limitFunction: new LimitFunctionModel(client), policy: new PolicyModel(client), primaryKeyConstraint: new PrimaryKeyConstraintModel(client), tableGrant: new TableGrantModel(client), @@ -164,14 +170,16 @@ export function createClient(config: OrmClientConfig) { viewRule: new ViewRuleModel(client), tableModule: new TableModuleModel(client), tableTemplateModule: new TableTemplateModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), + relationProvision: new RelationProvisionModel(client), schemaGrant: new SchemaGrantModel(client), + defaultPrivilege: new DefaultPrivilegeModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), siteMetadatum: new SiteMetadatumModel(client), siteModule: new SiteModuleModel(client), siteTheme: new SiteThemeModel(client), - procedure: new ProcedureModel(client), triggerFunction: new TriggerFunctionModel(client), api: new ApiModel(client), site: new SiteModel(client), @@ -207,6 +215,8 @@ export function createClient(config: OrmClientConfig) { orgAdminGrant: new OrgAdminGrantModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), appStep: new AppStepModel(client), @@ -215,28 +225,28 @@ export function createClient(config: OrmClientConfig) { claimedInvite: new ClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), ref: new RefModel(client), store: new StoreModel(client), + appPermissionDefault: new AppPermissionDefaultModel(client), roleType: new RoleTypeModel(client), orgPermissionDefault: new OrgPermissionDefaultModel(client), + cryptoAddress: new CryptoAddressModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - cryptoAddress: new CryptoAddressModel(client), - membershipType: new MembershipTypeModel(client), connectedAccount: new ConnectedAccountModel(client), phoneNumber: new PhoneNumberModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), commit: new CommitModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - email: new EmailModel(client), auditLog: new AuditLogModel(client), appLevel: new AppLevelModel(client), + email: new EmailModel(client), sqlMigration: new SqlMigrationModel(client), astMigration: new AstMigrationModel(client), - appMembership: new AppMembershipModel(client), user: new UserModel(client), + appMembership: new AppMembershipModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts index 392f8060e..f3a162c68 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -233,22 +233,40 @@ export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; // ============ Entity Types ============ +export interface OrgGetManagersRecord { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecord { + userId?: string | null; + depth?: number | null; +} export interface GetAllRecord { path?: string | null; data?: Record | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } export interface Object { @@ -261,13 +279,18 @@ export interface Object { frzn?: boolean | null; createdAt?: string | null; } -/** Requirements to achieve a level */ +/** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; + /** Name identifier of the requirement (matches step names) */ name?: string | null; + /** Name of the level this requirement belongs to */ level?: string | null; + /** Human-readable description of what this requirement entails */ description?: string | null; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number | null; + /** Display ordering priority; lower values appear first */ priority?: number | null; createdAt?: string | null; updatedAt?: string | null; @@ -411,22 +434,12 @@ export interface Index { createdAt?: string | null; updatedAt?: string | null; } -export interface LimitFunction { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: Record | null; - security?: number | null; -} export interface Policy { id: string; databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -460,8 +473,9 @@ export interface TableGrant { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -525,9 +539,10 @@ export interface ViewGrant { id: string; databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } /** DO INSTEAD rules for views (e.g., read-only enforcement) */ export interface ViewRule { @@ -543,9 +558,11 @@ export interface ViewRule { export interface TableModule { id: string; databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: Record | null; fields?: string | null; } @@ -560,6 +577,178 @@ export interface TableTemplateModule { nodeType?: string | null; data?: Record | null; } +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ +export interface SecureTableProvision { + /** Unique identifier for this provision row. */ + id: string; + /** The database this provision belongs to. Required. */ + databaseId?: string | null; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string | null; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string | null; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string | null; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: string | null; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ + useRls?: boolean | null; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + nodeData?: Record | null; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string | null; + /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ + grantPrivileges?: Record | null; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string | null; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string | null; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string | null; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean | null; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string | null; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: Record | null; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string | null; +} +/** + * Provisions relational structure between tables. Supports four relation types: + * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + * - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + * - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + * - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + * This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + * All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + * The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + */ +export interface RelationProvision { + /** Unique identifier for this relation provision row. */ + id: string; + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + databaseId?: string | null; + /** + * The type of relation to create. Uses SuperCase naming matching the node_type_registry: + * - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. + * - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. + * - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. + * - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). + * Each relation type uses a different subset of columns on this table. Required. + */ + relationType?: string | null; + /** + * The source table in the relation. Required. + * - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). + * - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. + * - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). + * - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. + */ + sourceTableId?: string | null; + /** + * The target table in the relation. Required. + * - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). + * - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). + * - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). + * - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. + */ + targetTableId?: string | null; + /** + * FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. + * - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). + * - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). + * For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. + * Ignored for RelationManyToMany — use source_field_name/target_field_name instead. + */ + fieldName?: string | null; + /** FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). */ + deleteAction?: string | null; + /** + * Whether the FK field is NOT NULL. Defaults to true. + * - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). + * - RelationHasMany: set to false if the child can exist without a parent. + * - RelationHasOne: typically true. + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + isRequired?: boolean | null; + /** + * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). + * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. + * - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + junctionTableId?: string | null; + /** For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. */ + junctionTableName?: string | null; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string | null; + /** For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + sourceFieldName?: string | null; + /** For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + targetFieldName?: string | null; + /** + * For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. + * - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. + * - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. + * use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + useCompositeKey?: boolean | null; + /** + * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. + * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeType?: string | null; + /** + * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Only used when node_type is set. Structure varies by node_type. Examples: + * - DataId: {"field_name": "id"} (default field name is 'id') + * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} + * - DataDirectOwner: {"owner_field_name": "owner_id"} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeData?: Record | null; + /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ + grantRoles?: string | null; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: Record | null; + /** + * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. + * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyType?: string | null; + /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPrivileges?: string | null; + /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ + policyRole?: string | null; + /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPermissive?: boolean | null; + /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ + policyName?: string | null; + /** + * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: + * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} + * - AuthzDirectOwner: {"owner_field": "owner_id"} + * - AuthzMembership: {"membership_type": 2} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyData?: Record | null; + /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */ + outFieldId?: string | null; + /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outJunctionTableId?: string | null; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outSourceFieldId?: string | null; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outTargetFieldId?: string | null; +} export interface SchemaGrant { id: string; databaseId?: string | null; @@ -568,65 +757,93 @@ export interface SchemaGrant { createdAt?: string | null; updatedAt?: string | null; } +export interface DefaultPrivilege { + id: string; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ export interface ApiSchema { + /** Unique identifier for this API-schema mapping */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Metaschema schema being exposed through the API */ schemaId?: string | null; + /** API that exposes this schema */ apiId?: string | null; } +/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ export interface ApiModule { + /** Unique identifier for this API module record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** API this module configuration belongs to */ apiId?: string | null; + /** Module name (e.g. auth, uploads, webhooks) */ name?: string | null; + /** JSON configuration data for this module */ data?: Record | null; } +/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ export interface Domain { + /** Unique identifier for this domain record */ id: string; + /** Reference to the metaschema database this domain belongs to */ databaseId?: string | null; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ apiId?: string | null; + /** Site this domain routes to (mutually exclusive with api_id) */ siteId?: string | null; + /** Subdomain portion of the hostname */ subdomain?: ConstructiveInternalTypeHostname | null; + /** Root domain of the hostname */ domain?: ConstructiveInternalTypeHostname | null; } +/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ export interface SiteMetadatum { + /** Unique identifier for this metadata record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this metadata belongs to */ siteId?: string | null; + /** Page title for SEO (max 120 characters) */ title?: string | null; + /** Meta description for SEO and social sharing (max 120 characters) */ description?: string | null; + /** Open Graph image for social media previews */ ogImage?: ConstructiveInternalTypeImage | null; } +/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ export interface SiteModule { + /** Unique identifier for this site module record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this module configuration belongs to */ siteId?: string | null; + /** Module name (e.g. user_auth_module, analytics) */ name?: string | null; + /** JSON configuration data for this module */ data?: Record | null; } +/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ export interface SiteTheme { + /** Unique identifier for this theme record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this theme belongs to */ siteId?: string | null; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ theme?: Record | null; } -export interface Procedure { - id: string; - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface TriggerFunction { id: string; databaseId?: string | null; @@ -635,35 +852,63 @@ export interface TriggerFunction { createdAt?: string | null; updatedAt?: string | null; } +/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ export interface Api { + /** Unique identifier for this API */ id: string; + /** Reference to the metaschema database this API serves */ databaseId?: string | null; + /** Unique name for this API within its database */ name?: string | null; + /** PostgreSQL database name to connect to */ dbname?: string | null; + /** PostgreSQL role used for authenticated requests */ roleName?: string | null; + /** PostgreSQL role used for anonymous/unauthenticated requests */ anonRole?: string | null; + /** Whether this API is publicly accessible without authentication */ isPublic?: boolean | null; } +/** Top-level site configuration: branding assets, title, and description for a deployed application */ export interface Site { + /** Unique identifier for this site */ id: string; + /** Reference to the metaschema database this site belongs to */ databaseId?: string | null; + /** Display title for the site (max 120 characters) */ title?: string | null; + /** Short description of the site (max 120 characters) */ description?: string | null; + /** Open Graph image used for social media link previews */ ogImage?: ConstructiveInternalTypeImage | null; + /** Browser favicon attachment */ favicon?: ConstructiveInternalTypeAttachment | null; + /** Apple touch icon for iOS home screen bookmarks */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** Primary logo image for the site */ logo?: ConstructiveInternalTypeImage | null; + /** PostgreSQL database name this site connects to */ dbname?: string | null; } +/** Mobile and native app configuration linked to a site, including store links and identifiers */ export interface App { + /** Unique identifier for this app */ id: string; + /** Reference to the metaschema database this app belongs to */ databaseId?: string | null; + /** Site this app is associated with (one app per site) */ siteId?: string | null; + /** Display name of the app */ name?: string | null; + /** App icon or promotional image */ appImage?: ConstructiveInternalTypeImage | null; + /** URL to the Apple App Store listing */ appStoreLink?: ConstructiveInternalTypeUrl | null; + /** Apple App Store application identifier */ appStoreId?: string | null; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ appIdPrefix?: string | null; + /** URL to the Google Play Store listing */ playStoreLink?: ConstructiveInternalTypeUrl | null; } export interface ConnectedAccountsModule { @@ -891,7 +1136,6 @@ export interface ProfilesModule { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -1003,166 +1247,280 @@ export interface DatabaseProvisionModule { updatedAt?: string | null; completedAt?: string | null; } +/** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; + profileId?: string | null; } +/** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; + /** Whether this member has admin privileges */ isAdmin?: boolean | null; + /** References the user who is a member */ actorId?: string | null; + /** References the entity (org or group) this member belongs to */ entityId?: string | null; } +/** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} +/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ +export interface OrgChartEdgeGrant { + id: string; + /** Organization this grant applies to */ + entityId?: string | null; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string | null; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string | null; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string | null; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean | null; + /** Job title or role name being assigned in this grant */ + positionTitle?: string | null; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number | null; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; entityId?: string | null; } -/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { id: string; actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; + /** Number of units completed in this step action */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } -/** This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. */ +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ export interface AppAchievement { id: string; actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; + /** Cumulative count of completed steps toward this requirement */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { id: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: string | null; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } -export interface AppPermissionDefault { - id: string; - permissions?: string | null; -} /** A ref is a data structure for pointing to a commit. */ export interface Ref { /** The primary unique identifier for the ref. */ @@ -1185,40 +1543,54 @@ export interface Store { hash?: string | null; createdAt?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface AppPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; +} export interface RoleType { id: number; name?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; + /** References the entity these default permissions apply to */ entityId?: string | null; } -export interface AppLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ export interface CryptoAddress { id: string; ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface MembershipType { - id: number; +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ name?: string | null; - description?: string | null; - prefix?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; } +/** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { id: string; ownerId?: string | null; @@ -1228,28 +1600,36 @@ export interface ConnectedAccount { identifier?: string | null; /** Additional profile details extracted from this login method */ details?: Record | null; + /** Whether this connected account has been verified */ isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { id: string; ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ cc?: string | null; + /** The phone number without country code */ number?: string | null; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; } /** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */ export interface NodeTypeRegistry { @@ -1257,7 +1637,7 @@ export interface NodeTypeRegistry { name?: string | null; /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ slug?: string | null; - /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types) */ + /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) */ category?: string | null; /** Human-readable display name for UI */ displayName?: string | null; @@ -1270,6 +1650,18 @@ export interface NodeTypeRegistry { createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ @@ -1289,43 +1681,64 @@ export interface Commit { treeId?: string | null; date?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ entityId?: string | null; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean | null; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -export interface Email { - id: string; - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; + /** User who performed the authentication action */ actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ userAgent?: string | null; + /** IP address of the client that initiated the auth event */ ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ success?: boolean | null; + /** Timestamp when the audit event was recorded */ createdAt?: string | null; } -/** Levels for achievement */ +/** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { id: string; + /** Unique name of the level */ name?: string | null; + /** Human-readable description of what this level represents */ description?: string | null; + /** Badge or icon image associated with this level */ image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -1359,34 +1772,46 @@ export interface AstMigration { actionId?: string | null; actorId?: string | null; } +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. */ + searchTsvRank?: number | null; +} +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. */ - searchTsvRank?: number | null; + profileId?: string | null; } export interface HierarchyModule { id: string; @@ -1423,6 +1848,8 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface OrgGetManagersRecordRelations {} +export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} @@ -1438,10 +1865,8 @@ export interface DatabaseRelations { foreignKeyConstraints?: ConnectionResult; fullTextSearches?: ConnectionResult; indices?: ConnectionResult; - limitFunctions?: ConnectionResult; policies?: ConnectionResult; primaryKeyConstraints?: ConnectionResult; - procedures?: ConnectionResult; schemaGrants?: ConnectionResult; tableGrants?: ConnectionResult; triggerFunctions?: ConnectionResult; @@ -1450,6 +1875,7 @@ export interface DatabaseRelations { views?: ConnectionResult; viewGrants?: ConnectionResult; viewRules?: ConnectionResult; + defaultPrivileges?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; apiSchemas?: ConnectionResult; @@ -1483,6 +1909,8 @@ export interface DatabaseRelations { usersModules?: ConnectionResult; uuidModules?: ConnectionResult; tableTemplateModules?: ConnectionResult; + secureTableProvisions?: ConnectionResult; + relationProvisions?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -1490,6 +1918,7 @@ export interface SchemaRelations { tables?: ConnectionResult; schemaGrants?: ConnectionResult; views?: ConnectionResult; + defaultPrivileges?: ConnectionResult; apiSchemas?: ConnectionResult; tableTemplateModulesByPrivateSchemaId?: ConnectionResult; tableTemplateModules?: ConnectionResult; @@ -1503,7 +1932,6 @@ export interface TableRelations { foreignKeyConstraints?: ConnectionResult; fullTextSearches?: ConnectionResult; indices?: ConnectionResult; - limitFunctions?: ConnectionResult; policies?: ConnectionResult; primaryKeyConstraints?: ConnectionResult; tableGrants?: ConnectionResult; @@ -1514,6 +1942,9 @@ export interface TableRelations { tableModules?: ConnectionResult; tableTemplateModulesByOwnerTableId?: ConnectionResult; tableTemplateModules?: ConnectionResult; + secureTableProvisions?: ConnectionResult; + relationProvisionsBySourceTableId?: ConnectionResult; + relationProvisionsByTargetTableId?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -1536,10 +1967,6 @@ export interface IndexRelations { database?: Database | null; table?: Table | null; } -export interface LimitFunctionRelations { - database?: Database | null; - table?: Table | null; -} export interface PolicyRelations { database?: Database | null; table?: Table | null; @@ -1582,7 +2009,7 @@ export interface ViewRuleRelations { } export interface TableModuleRelations { database?: Database | null; - privateSchema?: Schema | null; + schema?: Schema | null; table?: Table | null; } export interface TableTemplateModuleRelations { @@ -1592,10 +2019,24 @@ export interface TableTemplateModuleRelations { schema?: Schema | null; table?: Table | null; } +export interface SecureTableProvisionRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} +export interface RelationProvisionRelations { + database?: Database | null; + sourceTable?: Table | null; + targetTable?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; } +export interface DefaultPrivilegeRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -1622,9 +2063,6 @@ export interface SiteThemeRelations { database?: Database | null; site?: Site | null; } -export interface ProcedureRelations { - database?: Database | null; -} export interface TriggerFunctionRelations { database?: Database | null; } @@ -1858,6 +2296,17 @@ export interface OrgGrantRelations { entity?: User | null; grantor?: User | null; } +export interface OrgChartEdgeRelations { + child?: User | null; + entity?: User | null; + parent?: User | null; +} +export interface OrgChartEdgeGrantRelations { + child?: User | null; + entity?: User | null; + grantor?: User | null; + parent?: User | null; +} export interface AppLimitRelations { actor?: User | null; } @@ -1888,45 +2337,42 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } -export interface AppPermissionDefaultRelations {} export interface RefRelations {} export interface StoreRelations {} +export interface AppPermissionDefaultRelations {} export interface RoleTypeRelations {} export interface OrgPermissionDefaultRelations { entity?: User | null; } -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface CryptoAddressRelations { owner?: User | null; } -export interface MembershipTypeRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface ConnectedAccountRelations { owner?: User | null; } export interface PhoneNumberRelations { owner?: User | null; } -export interface AppMembershipDefaultRelations {} +export interface MembershipTypeRelations {} export interface NodeTypeRegistryRelations {} +export interface AppMembershipDefaultRelations {} export interface CommitRelations {} export interface OrgMembershipDefaultRelations { entity?: User | null; } -export interface EmailRelations { - owner?: User | null; -} export interface AuditLogRelations { actor?: User | null; } export interface AppLevelRelations { owner?: User | null; } +export interface EmailRelations { + owner?: User | null; +} export interface SqlMigrationRelations {} export interface AstMigrationRelations {} -export interface AppMembershipRelations { - actor?: User | null; -} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -1945,6 +2391,13 @@ export interface UserRelations { orgOwnerGrantsByGrantorId?: ConnectionResult; orgGrantsByEntityId?: ConnectionResult; orgGrantsByGrantorId?: ConnectionResult; + parentOrgChartEdges?: ConnectionResult; + orgChartEdgesByEntityId?: ConnectionResult; + childOrgChartEdges?: ConnectionResult; + parentOrgChartEdgeGrants?: ConnectionResult; + orgChartEdgeGrantsByEntityId?: ConnectionResult; + orgChartEdgeGrantsByGrantorId?: ConnectionResult; + childOrgChartEdgeGrants?: ConnectionResult; appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; @@ -1958,6 +2411,9 @@ export interface UserRelations { orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; } +export interface AppMembershipRelations { + actor?: User | null; +} export interface HierarchyModuleRelations { chartEdgeGrantsTable?: Table | null; chartEdgesTable?: Table | null; @@ -1969,6 +2425,10 @@ export interface HierarchyModuleRelations { usersTable?: Table | null; } // ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; @@ -1983,7 +2443,6 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & ForeignKeyConstraintRelations; export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type IndexWithRelations = Index & IndexRelations; -export type LimitFunctionWithRelations = LimitFunction & LimitFunctionRelations; export type PolicyWithRelations = Policy & PolicyRelations; export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & PrimaryKeyConstraintRelations; @@ -1996,14 +2455,17 @@ export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; export type TableModuleWithRelations = TableModule & TableModuleRelations; export type TableTemplateModuleWithRelations = TableTemplateModule & TableTemplateModuleRelations; +export type SecureTableProvisionWithRelations = SecureTableProvision & + SecureTableProvisionRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; +export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; -export type ProcedureWithRelations = Procedure & ProcedureRelations; export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; export type ApiWithRelations = Api & ApiRelations; export type SiteWithRelations = Site & SiteRelations; @@ -2045,6 +2507,8 @@ export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppStepWithRelations = AppStep & AppStepRelations; @@ -2053,34 +2517,42 @@ export type InviteWithRelations = Invite & InviteRelations; export type ClaimedInviteWithRelations = ClaimedInvite & ClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; +export type AppPermissionDefaultWithRelations = AppPermissionDefault & + AppPermissionDefaultRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type CommitWithRelations = Commit & CommitRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type EmailWithRelations = Email & EmailRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; +export type EmailWithRelations = Email & EmailRelations; export type SqlMigrationWithRelations = SqlMigration & SqlMigrationRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type UserWithRelations = User & UserRelations; +export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ +export type OrgGetManagersRecordSelect = { + userId?: boolean; + depth?: boolean; +}; +export type OrgGetSubordinatesRecordSelect = { + userId?: boolean; + depth?: boolean; +}; export type GetAllRecordSelect = { path?: boolean; data?: boolean; @@ -2176,12 +2648,6 @@ export type DatabaseSelect = { filter?: IndexFilter; orderBy?: IndexOrderBy[]; }; - limitFunctions?: { - select: LimitFunctionSelect; - first?: number; - filter?: LimitFunctionFilter; - orderBy?: LimitFunctionOrderBy[]; - }; policies?: { select: PolicySelect; first?: number; @@ -2194,12 +2660,6 @@ export type DatabaseSelect = { filter?: PrimaryKeyConstraintFilter; orderBy?: PrimaryKeyConstraintOrderBy[]; }; - procedures?: { - select: ProcedureSelect; - first?: number; - filter?: ProcedureFilter; - orderBy?: ProcedureOrderBy[]; - }; schemaGrants?: { select: SchemaGrantSelect; first?: number; @@ -2248,6 +2708,12 @@ export type DatabaseSelect = { filter?: ViewRuleFilter; orderBy?: ViewRuleOrderBy[]; }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; apis?: { select: ApiSelect; first?: number; @@ -2446,10 +2912,22 @@ export type DatabaseSelect = { filter?: TableTemplateModuleFilter; orderBy?: TableTemplateModuleOrderBy[]; }; - databaseProvisionModules?: { - select: DatabaseProvisionModuleSelect; + secureTableProvisions?: { + select: SecureTableProvisionSelect; first?: number; - filter?: DatabaseProvisionModuleFilter; + filter?: SecureTableProvisionFilter; + orderBy?: SecureTableProvisionOrderBy[]; + }; + relationProvisions?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; + databaseProvisionModules?: { + select: DatabaseProvisionModuleSelect; + first?: number; + filter?: DatabaseProvisionModuleFilter; orderBy?: DatabaseProvisionModuleOrderBy[]; }; }; @@ -2489,6 +2967,12 @@ export type SchemaSelect = { filter?: ViewFilter; orderBy?: ViewOrderBy[]; }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -2567,12 +3051,6 @@ export type TableSelect = { filter?: IndexFilter; orderBy?: IndexOrderBy[]; }; - limitFunctions?: { - select: LimitFunctionSelect; - first?: number; - filter?: LimitFunctionFilter; - orderBy?: LimitFunctionOrderBy[]; - }; policies?: { select: PolicySelect; first?: number; @@ -2633,6 +3111,24 @@ export type TableSelect = { filter?: TableTemplateModuleFilter; orderBy?: TableTemplateModuleOrderBy[]; }; + secureTableProvisions?: { + select: SecureTableProvisionSelect; + first?: number; + filter?: SecureTableProvisionFilter; + orderBy?: SecureTableProvisionOrderBy[]; + }; + relationProvisionsBySourceTableId?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; + relationProvisionsByTargetTableId?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -2759,28 +3255,12 @@ export type IndexSelect = { select: TableSelect; }; }; -export type LimitFunctionSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - data?: boolean; - security?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; export type PolicySelect = { id?: boolean; databaseId?: boolean; tableId?: boolean; name?: boolean; - roleName?: boolean; + granteeName?: boolean; privilege?: boolean; permissive?: boolean; disabled?: boolean; @@ -2826,8 +3306,9 @@ export type TableGrantSelect = { databaseId?: boolean; tableId?: boolean; privilege?: boolean; - roleName?: boolean; + granteeName?: boolean; fieldIds?: boolean; + isGrant?: boolean; createdAt?: boolean; updatedAt?: boolean; database?: { @@ -2941,9 +3422,10 @@ export type ViewGrantSelect = { id?: boolean; databaseId?: boolean; viewId?: boolean; - roleName?: boolean; + granteeName?: boolean; privilege?: boolean; withGrantOption?: boolean; + isGrant?: boolean; database?: { select: DatabaseSelect; }; @@ -2968,15 +3450,17 @@ export type ViewRuleSelect = { export type TableModuleSelect = { id?: boolean; databaseId?: boolean; - privateSchemaId?: boolean; + schemaId?: boolean; tableId?: boolean; + tableName?: boolean; nodeType?: boolean; + useRls?: boolean; data?: boolean; fields?: boolean; database?: { select: DatabaseSelect; }; - privateSchema?: { + schema?: { select: SchemaSelect; }; table?: { @@ -3009,6 +3493,73 @@ export type TableTemplateModuleSelect = { select: TableSelect; }; }; +export type SecureTableProvisionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + nodeType?: boolean; + useRls?: boolean; + nodeData?: boolean; + grantRoles?: boolean; + grantPrivileges?: boolean; + policyType?: boolean; + policyPrivileges?: boolean; + policyRole?: boolean; + policyPermissive?: boolean; + policyName?: boolean; + policyData?: boolean; + outFields?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type RelationProvisionSelect = { + id?: boolean; + databaseId?: boolean; + relationType?: boolean; + sourceTableId?: boolean; + targetTableId?: boolean; + fieldName?: boolean; + deleteAction?: boolean; + isRequired?: boolean; + junctionTableId?: boolean; + junctionTableName?: boolean; + junctionSchemaId?: boolean; + sourceFieldName?: boolean; + targetFieldName?: boolean; + useCompositeKey?: boolean; + nodeType?: boolean; + nodeData?: boolean; + grantRoles?: boolean; + grantPrivileges?: boolean; + policyType?: boolean; + policyPrivileges?: boolean; + policyRole?: boolean; + policyPermissive?: boolean; + policyName?: boolean; + policyData?: boolean; + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; + database?: { + select: DatabaseSelect; + }; + sourceTable?: { + select: TableSelect; + }; + targetTable?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -3023,6 +3574,21 @@ export type SchemaGrantSelect = { select: SchemaSelect; }; }; +export type DefaultPrivilegeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + objectType?: boolean; + privilege?: boolean; + granteeName?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; export type ApiSchemaSelect = { id?: boolean; databaseId?: boolean; @@ -3107,26 +3673,6 @@ export type SiteThemeSelect = { select: SiteSelect; }; }; -export type ProcedureSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - argnames?: boolean; - argtypes?: boolean; - argdefaults?: boolean; - langName?: boolean; - definition?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; export type TriggerFunctionSelect = { id?: boolean; databaseId?: boolean; @@ -3718,7 +4264,6 @@ export type ProfilesModuleSelect = { profileGrantsTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; - bitlen?: boolean; membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; @@ -4005,6 +4550,7 @@ export type OrgMembershipSelect = { granted?: boolean; actorId?: boolean; entityId?: boolean; + profileId?: boolean; actor?: { select: UserSelect; }; @@ -4079,6 +4625,48 @@ export type OrgGrantSelect = { select: UserSelect; }; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + child?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + parent?: { + select: UserSelect; + }; +}; +export type OrgChartEdgeGrantSelect = { + id?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + grantorId?: boolean; + isGrant?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + createdAt?: boolean; + child?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; + parent?: { + select: UserSelect; + }; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -4199,10 +4787,6 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; -}; export type RefSelect = { id?: boolean; name?: boolean; @@ -4217,6 +4801,10 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; +export type AppPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; +}; export type RoleTypeSelect = { id?: boolean; name?: boolean; @@ -4229,16 +4817,6 @@ export type OrgPermissionDefaultSelect = { select: UserSelect; }; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type CryptoAddressSelect = { id?: boolean; ownerId?: boolean; @@ -4251,11 +4829,15 @@ export type CryptoAddressSelect = { select: UserSelect; }; }; -export type MembershipTypeSelect = { +export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; - description?: boolean; - prefix?: boolean; + max?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; }; export type ConnectedAccountSelect = { id?: boolean; @@ -4283,14 +4865,11 @@ export type PhoneNumberSelect = { select: UserSelect; }; }; -export type AppMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; }; export type NodeTypeRegistrySelect = { name?: boolean; @@ -4303,6 +4882,15 @@ export type NodeTypeRegistrySelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -4328,18 +4916,6 @@ export type OrgMembershipDefaultSelect = { select: UserSelect; }; }; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AuditLogSelect = { id?: boolean; event?: boolean; @@ -4365,6 +4941,18 @@ export type AppLevelSelect = { select: UserSelect; }; }; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type SqlMigrationSelect = { id?: boolean; name?: boolean; @@ -4395,26 +4983,6 @@ export type AstMigrationSelect = { actionId?: boolean; actorId?: boolean; }; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - actor?: { - select: UserSelect; - }; -}; export type UserSelect = { id?: boolean; username?: boolean; @@ -4518,6 +5086,48 @@ export type UserSelect = { filter?: OrgGrantFilter; orderBy?: OrgGrantOrderBy[]; }; + parentOrgChartEdges?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + orgChartEdgesByEntityId?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + childOrgChartEdges?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + parentOrgChartEdgeGrants?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + orgChartEdgeGrantsByEntityId?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + orgChartEdgeGrantsByGrantorId?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + childOrgChartEdgeGrants?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; appLimitsByActorId?: { select: AppLimitSelect; first?: number; @@ -4591,23 +5201,44 @@ export type UserSelect = { orderBy?: OrgClaimedInviteOrderBy[]; }; }; -export type HierarchyModuleSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - chartEdgesTableId?: boolean; - chartEdgesTableName?: boolean; - hierarchySprtTableId?: boolean; - hierarchySprtTableName?: boolean; - chartEdgeGrantsTableId?: boolean; - chartEdgeGrantsTableName?: boolean; - entityTableId?: boolean; - usersTableId?: boolean; - prefix?: boolean; - privateSchemaName?: boolean; - sprtTableName?: boolean; - rebuildHierarchyFunction?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; +}; +export type HierarchyModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + chartEdgesTableId?: boolean; + chartEdgesTableName?: boolean; + hierarchySprtTableId?: boolean; + hierarchySprtTableName?: boolean; + chartEdgeGrantsTableId?: boolean; + chartEdgeGrantsTableName?: boolean; + entityTableId?: boolean; + usersTableId?: boolean; + prefix?: boolean; + privateSchemaName?: boolean; + sprtTableName?: boolean; + rebuildHierarchyFunction?: boolean; getSubordinatesFunction?: boolean; getManagersFunction?: boolean; isManagerOfFunction?: boolean; @@ -4638,6 +5269,20 @@ export type HierarchyModuleSelect = { }; }; // ============ Table Filter Types ============ +export interface OrgGetManagersRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetManagersRecordFilter[]; + or?: OrgGetManagersRecordFilter[]; + not?: OrgGetManagersRecordFilter; +} +export interface OrgGetSubordinatesRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetSubordinatesRecordFilter[]; + or?: OrgGetSubordinatesRecordFilter[]; + not?: OrgGetSubordinatesRecordFilter; +} export interface GetAllRecordFilter { path?: StringFilter; data?: JSONFilter; @@ -4854,25 +5499,12 @@ export interface IndexFilter { or?: IndexFilter[]; not?: IndexFilter; } -export interface LimitFunctionFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - label?: StringFilter; - description?: StringFilter; - data?: JSONFilter; - security?: IntFilter; - and?: LimitFunctionFilter[]; - or?: LimitFunctionFilter[]; - not?: LimitFunctionFilter; -} export interface PolicyFilter { id?: UUIDFilter; databaseId?: UUIDFilter; tableId?: UUIDFilter; name?: StringFilter; - roleName?: StringFilter; + granteeName?: StringFilter; privilege?: StringFilter; permissive?: BooleanFilter; disabled?: BooleanFilter; @@ -4912,8 +5544,9 @@ export interface TableGrantFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; privilege?: StringFilter; - roleName?: StringFilter; + granteeName?: StringFilter; fieldIds?: UUIDFilter; + isGrant?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; and?: TableGrantFilter[]; @@ -4991,9 +5624,10 @@ export interface ViewGrantFilter { id?: UUIDFilter; databaseId?: UUIDFilter; viewId?: UUIDFilter; - roleName?: StringFilter; + granteeName?: StringFilter; privilege?: StringFilter; withGrantOption?: BooleanFilter; + isGrant?: BooleanFilter; and?: ViewGrantFilter[]; or?: ViewGrantFilter[]; not?: ViewGrantFilter; @@ -5012,9 +5646,11 @@ export interface ViewRuleFilter { export interface TableModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; - privateSchemaId?: UUIDFilter; + schemaId?: UUIDFilter; tableId?: UUIDFilter; + tableName?: StringFilter; nodeType?: StringFilter; + useRls?: BooleanFilter; data?: JSONFilter; fields?: UUIDFilter; and?: TableModuleFilter[]; @@ -5035,6 +5671,61 @@ export interface TableTemplateModuleFilter { or?: TableTemplateModuleFilter[]; not?: TableTemplateModuleFilter; } +export interface SecureTableProvisionFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + nodeType?: StringFilter; + useRls?: BooleanFilter; + nodeData?: JSONFilter; + grantRoles?: StringFilter; + grantPrivileges?: JSONFilter; + policyType?: StringFilter; + policyPrivileges?: StringFilter; + policyRole?: StringFilter; + policyPermissive?: BooleanFilter; + policyName?: StringFilter; + policyData?: JSONFilter; + outFields?: UUIDFilter; + and?: SecureTableProvisionFilter[]; + or?: SecureTableProvisionFilter[]; + not?: SecureTableProvisionFilter; +} +export interface RelationProvisionFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + relationType?: StringFilter; + sourceTableId?: UUIDFilter; + targetTableId?: UUIDFilter; + fieldName?: StringFilter; + deleteAction?: StringFilter; + isRequired?: BooleanFilter; + junctionTableId?: UUIDFilter; + junctionTableName?: StringFilter; + junctionSchemaId?: UUIDFilter; + sourceFieldName?: StringFilter; + targetFieldName?: StringFilter; + useCompositeKey?: BooleanFilter; + nodeType?: StringFilter; + nodeData?: JSONFilter; + grantRoles?: StringFilter; + grantPrivileges?: JSONFilter; + policyType?: StringFilter; + policyPrivileges?: StringFilter; + policyRole?: StringFilter; + policyPermissive?: BooleanFilter; + policyName?: StringFilter; + policyData?: JSONFilter; + outFieldId?: UUIDFilter; + outJunctionTableId?: UUIDFilter; + outSourceFieldId?: UUIDFilter; + outTargetFieldId?: UUIDFilter; + and?: RelationProvisionFilter[]; + or?: RelationProvisionFilter[]; + not?: RelationProvisionFilter; +} export interface SchemaGrantFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5046,6 +5737,18 @@ export interface SchemaGrantFilter { or?: SchemaGrantFilter[]; not?: SchemaGrantFilter; } +export interface DefaultPrivilegeFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + objectType?: StringFilter; + privilege?: StringFilter; + granteeName?: StringFilter; + isGrant?: BooleanFilter; + and?: DefaultPrivilegeFilter[]; + or?: DefaultPrivilegeFilter[]; + not?: DefaultPrivilegeFilter; +} export interface ApiSchemaFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5106,26 +5809,6 @@ export interface SiteThemeFilter { or?: SiteThemeFilter[]; not?: SiteThemeFilter; } -export interface ProcedureFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - name?: StringFilter; - argnames?: StringFilter; - argtypes?: StringFilter; - argdefaults?: StringFilter; - langName?: StringFilter; - definition?: StringFilter; - smartTags?: JSONFilter; - category?: StringFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: ProcedureFilter[]; - or?: ProcedureFilter[]; - not?: ProcedureFilter; -} export interface TriggerFunctionFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5447,7 +6130,6 @@ export interface ProfilesModuleFilter { profileGrantsTableName?: StringFilter; profileDefinitionGrantsTableId?: UUIDFilter; profileDefinitionGrantsTableName?: StringFilter; - bitlen?: IntFilter; membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; @@ -5623,6 +6305,7 @@ export interface OrgMembershipFilter { granted?: BitStringFilter; actorId?: UUIDFilter; entityId?: UUIDFilter; + profileId?: UUIDFilter; and?: OrgMembershipFilter[]; or?: OrgMembershipFilter[]; not?: OrgMembershipFilter; @@ -5673,6 +6356,33 @@ export interface OrgGrantFilter { or?: OrgGrantFilter[]; not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + and?: OrgChartEdgeFilter[]; + or?: OrgChartEdgeFilter[]; + not?: OrgChartEdgeFilter; +} +export interface OrgChartEdgeGrantFilter { + id?: UUIDFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + grantorId?: UUIDFilter; + isGrant?: BooleanFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + createdAt?: DatetimeFilter; + and?: OrgChartEdgeGrantFilter[]; + or?: OrgChartEdgeGrantFilter[]; + not?: OrgChartEdgeGrantFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -5775,13 +6485,6 @@ export interface OrgClaimedInviteFilter { or?: OrgClaimedInviteFilter[]; not?: OrgClaimedInviteFilter; } -export interface AppPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - and?: AppPermissionDefaultFilter[]; - or?: AppPermissionDefaultFilter[]; - not?: AppPermissionDefaultFilter; -} export interface RefFilter { id?: UUIDFilter; name?: StringFilter; @@ -5802,6 +6505,13 @@ export interface StoreFilter { or?: StoreFilter[]; not?: StoreFilter; } +export interface AppPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + and?: AppPermissionDefaultFilter[]; + or?: AppPermissionDefaultFilter[]; + not?: AppPermissionDefaultFilter; +} export interface RoleTypeFilter { id?: IntFilter; name?: StringFilter; @@ -5817,6 +6527,18 @@ export interface OrgPermissionDefaultFilter { or?: OrgPermissionDefaultFilter[]; not?: OrgPermissionDefaultFilter; } +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} export interface AppLimitDefaultFilter { id?: UUIDFilter; name?: StringFilter; @@ -5833,27 +6555,6 @@ export interface OrgLimitDefaultFilter { or?: OrgLimitDefaultFilter[]; not?: OrgLimitDefaultFilter; } -export interface CryptoAddressFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - address?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} -export interface MembershipTypeFilter { - id?: IntFilter; - name?: StringFilter; - description?: StringFilter; - prefix?: StringFilter; - and?: MembershipTypeFilter[]; - or?: MembershipTypeFilter[]; - not?: MembershipTypeFilter; -} export interface ConnectedAccountFilter { id?: UUIDFilter; ownerId?: UUIDFilter; @@ -5880,17 +6581,14 @@ export interface PhoneNumberFilter { or?: PhoneNumberFilter[]; not?: PhoneNumberFilter; } -export interface AppMembershipDefaultFilter { - id?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - createdBy?: UUIDFilter; - updatedBy?: UUIDFilter; - isApproved?: BooleanFilter; - isVerified?: BooleanFilter; - and?: AppMembershipDefaultFilter[]; - or?: AppMembershipDefaultFilter[]; - not?: AppMembershipDefaultFilter; +export interface MembershipTypeFilter { + id?: IntFilter; + name?: StringFilter; + description?: StringFilter; + prefix?: StringFilter; + and?: MembershipTypeFilter[]; + or?: MembershipTypeFilter[]; + not?: MembershipTypeFilter; } export interface NodeTypeRegistryFilter { name?: StringFilter; @@ -5906,6 +6604,18 @@ export interface NodeTypeRegistryFilter { or?: NodeTypeRegistryFilter[]; not?: NodeTypeRegistryFilter; } +export interface AppMembershipDefaultFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + isVerified?: BooleanFilter; + and?: AppMembershipDefaultFilter[]; + or?: AppMembershipDefaultFilter[]; + not?: AppMembershipDefaultFilter; +} export interface CommitFilter { id?: UUIDFilter; message?: StringFilter; @@ -5934,18 +6644,6 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface AuditLogFilter { id?: UUIDFilter; event?: StringFilter; @@ -5971,6 +6669,18 @@ export interface AppLevelFilter { or?: AppLevelFilter[]; not?: AppLevelFilter; } +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} export interface SqlMigrationFilter { id?: IntFilter; name?: StringFilter; @@ -6007,6 +6717,20 @@ export interface AstMigrationFilter { or?: AstMigrationFilter[]; not?: AstMigrationFilter; } +export interface UserFilter { + id?: UUIDFilter; + username?: StringFilter; + displayName?: StringFilter; + profilePicture?: StringFilter; + searchTsv?: FullTextFilter; + type?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + searchTsvRank?: FloatFilter; + and?: UserFilter[]; + or?: UserFilter[]; + not?: UserFilter; +} export interface AppMembershipFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -6023,24 +6747,11 @@ export interface AppMembershipFilter { permissions?: BitStringFilter; granted?: BitStringFilter; actorId?: UUIDFilter; + profileId?: UUIDFilter; and?: AppMembershipFilter[]; or?: AppMembershipFilter[]; not?: AppMembershipFilter; } -export interface UserFilter { - id?: UUIDFilter; - username?: StringFilter; - displayName?: StringFilter; - profilePicture?: StringFilter; - searchTsv?: FullTextFilter; - type?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - searchTsvRank?: FloatFilter; - and?: UserFilter[]; - or?: UserFilter[]; - not?: UserFilter; -} export interface HierarchyModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6067,6 +6778,14 @@ export interface HierarchyModuleFilter { not?: HierarchyModuleFilter; } // ============ Table Condition Types ============ +export interface OrgGetManagersRecordCondition { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecordCondition { + userId?: string | null; + depth?: number | null; +} export interface GetAllRecordCondition { path?: string | null; data?: unknown | null; @@ -6244,22 +6963,12 @@ export interface IndexCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface LimitFunctionCondition { - id?: string | null; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: unknown | null; - security?: number | null; -} export interface PolicyCondition { id?: string | null; databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -6293,8 +7002,9 @@ export interface TableGrantCondition { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -6357,9 +7067,10 @@ export interface ViewGrantCondition { id?: string | null; databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } export interface ViewRuleCondition { id?: string | null; @@ -6372,9 +7083,11 @@ export interface ViewRuleCondition { export interface TableModuleCondition { id?: string | null; databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: unknown | null; fields?: string | null; } @@ -6389,14 +7102,72 @@ export interface TableTemplateModuleCondition { nodeType?: string | null; data?: unknown | null; } -export interface SchemaGrantCondition { +export interface SecureTableProvisionCondition { id?: string | null; databaseId?: string | null; schemaId?: string | null; - granteeName?: string | null; + tableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + useRls?: boolean | null; + nodeData?: unknown | null; + grantRoles?: string | null; + grantPrivileges?: unknown | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: unknown | null; + outFields?: string | null; +} +export interface RelationProvisionCondition { + id?: string | null; + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + nodeType?: string | null; + nodeData?: unknown | null; + grantRoles?: string | null; + grantPrivileges?: unknown | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: unknown | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface SchemaGrantCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; createdAt?: string | null; updatedAt?: string | null; } +export interface DefaultPrivilegeCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} export interface ApiSchemaCondition { id?: string | null; databaseId?: string | null; @@ -6439,23 +7210,6 @@ export interface SiteThemeCondition { siteId?: string | null; theme?: unknown | null; } -export interface ProcedureCondition { - id?: string | null; - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: unknown | null; - category?: unknown | null; - module?: string | null; - scope?: number | null; - tags?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface TriggerFunctionCondition { id?: string | null; databaseId?: string | null; @@ -6720,7 +7474,6 @@ export interface ProfilesModuleCondition { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -6863,6 +7616,7 @@ export interface OrgMembershipCondition { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface OrgMemberCondition { id?: string | null; @@ -6898,6 +7652,27 @@ export interface OrgGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface OrgChartEdgeCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface OrgChartEdgeGrantCondition { + id?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; + createdAt?: string | null; +} export interface AppLimitCondition { id?: string | null; name?: string | null; @@ -6976,10 +7751,6 @@ export interface OrgClaimedInviteCondition { updatedAt?: string | null; entityId?: string | null; } -export interface AppPermissionDefaultCondition { - id?: string | null; - permissions?: string | null; -} export interface RefCondition { id?: string | null; name?: string | null; @@ -6994,6 +7765,10 @@ export interface StoreCondition { hash?: string | null; createdAt?: string | null; } +export interface AppPermissionDefaultCondition { + id?: string | null; + permissions?: string | null; +} export interface RoleTypeCondition { id?: number | null; name?: string | null; @@ -7003,16 +7778,6 @@ export interface OrgPermissionDefaultCondition { permissions?: string | null; entityId?: string | null; } -export interface AppLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} export interface CryptoAddressCondition { id?: string | null; ownerId?: string | null; @@ -7022,11 +7787,15 @@ export interface CryptoAddressCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface MembershipTypeCondition { - id?: number | null; +export interface AppLimitDefaultCondition { + id?: string | null; name?: string | null; - description?: string | null; - prefix?: string | null; + max?: number | null; +} +export interface OrgLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; } export interface ConnectedAccountCondition { id?: string | null; @@ -7048,14 +7817,11 @@ export interface PhoneNumberCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface AppMembershipDefaultCondition { - id?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypeCondition { + id?: number | null; + name?: string | null; + description?: string | null; + prefix?: string | null; } export interface NodeTypeRegistryCondition { name?: string | null; @@ -7068,6 +7834,15 @@ export interface NodeTypeRegistryCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppMembershipDefaultCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} export interface CommitCondition { id?: string | null; message?: string | null; @@ -7090,15 +7865,6 @@ export interface OrgMembershipDefaultCondition { deleteMemberCascadeGroups?: boolean | null; createGroupsCascadeMembers?: boolean | null; } -export interface EmailCondition { - id?: string | null; - ownerId?: string | null; - email?: unknown | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface AuditLogCondition { id?: string | null; event?: string | null; @@ -7118,6 +7884,15 @@ export interface AppLevelCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface EmailCondition { + id?: string | null; + ownerId?: string | null; + email?: unknown | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface SqlMigrationCondition { id?: number | null; name?: string | null; @@ -7148,6 +7923,17 @@ export interface AstMigrationCondition { actionId?: string | null; actorId?: string | null; } +export interface UserCondition { + id?: string | null; + username?: string | null; + displayName?: string | null; + profilePicture?: unknown | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + searchTsvRank?: number | null; +} export interface AppMembershipCondition { id?: string | null; createdAt?: string | null; @@ -7164,17 +7950,7 @@ export interface AppMembershipCondition { permissions?: string | null; granted?: string | null; actorId?: string | null; -} -export interface UserCondition { - id?: string | null; - username?: string | null; - displayName?: string | null; - profilePicture?: unknown | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - searchTsvRank?: number | null; + profileId?: string | null; } export interface HierarchyModuleCondition { id?: string | null; @@ -7199,6 +7975,22 @@ export interface HierarchyModuleCondition { createdAt?: string | null; } // ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; export type GetAllRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7553,26 +8345,6 @@ export type IndexOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type LimitFunctionOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SECURITY_ASC' - | 'SECURITY_DESC'; export type PolicyOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7585,8 +8357,8 @@ export type PolicyOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'PERMISSIVE_ASC' @@ -7653,10 +8425,12 @@ export type TableGrantOrderBy = | 'TABLE_ID_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'FIELD_IDS_ASC' | 'FIELD_IDS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -7781,12 +8555,14 @@ export type ViewGrantOrderBy = | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC'; + | 'WITH_GRANT_OPTION_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; export type ViewRuleOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7811,12 +8587,16 @@ export type TableModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' | 'NODE_TYPE_ASC' | 'NODE_TYPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'FIELDS_ASC' @@ -7843,6 +8623,104 @@ export type TableTemplateModuleOrderBy = | 'NODE_TYPE_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type SecureTableProvisionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'NODE_DATA_ASC' + | 'NODE_DATA_DESC' + | 'GRANT_ROLES_ASC' + | 'GRANT_ROLES_DESC' + | 'GRANT_PRIVILEGES_ASC' + | 'GRANT_PRIVILEGES_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'POLICY_PRIVILEGES_ASC' + | 'POLICY_PRIVILEGES_DESC' + | 'POLICY_ROLE_ASC' + | 'POLICY_ROLE_DESC' + | 'POLICY_PERMISSIVE_ASC' + | 'POLICY_PERMISSIVE_DESC' + | 'POLICY_NAME_ASC' + | 'POLICY_NAME_DESC' + | 'POLICY_DATA_ASC' + | 'POLICY_DATA_DESC' + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; +export type RelationProvisionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'RELATION_TYPE_ASC' + | 'RELATION_TYPE_DESC' + | 'SOURCE_TABLE_ID_ASC' + | 'SOURCE_TABLE_ID_DESC' + | 'TARGET_TABLE_ID_ASC' + | 'TARGET_TABLE_ID_DESC' + | 'FIELD_NAME_ASC' + | 'FIELD_NAME_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'JUNCTION_TABLE_ID_ASC' + | 'JUNCTION_TABLE_ID_DESC' + | 'JUNCTION_TABLE_NAME_ASC' + | 'JUNCTION_TABLE_NAME_DESC' + | 'JUNCTION_SCHEMA_ID_ASC' + | 'JUNCTION_SCHEMA_ID_DESC' + | 'SOURCE_FIELD_NAME_ASC' + | 'SOURCE_FIELD_NAME_DESC' + | 'TARGET_FIELD_NAME_ASC' + | 'TARGET_FIELD_NAME_DESC' + | 'USE_COMPOSITE_KEY_ASC' + | 'USE_COMPOSITE_KEY_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'NODE_DATA_ASC' + | 'NODE_DATA_DESC' + | 'GRANT_ROLES_ASC' + | 'GRANT_ROLES_DESC' + | 'GRANT_PRIVILEGES_ASC' + | 'GRANT_PRIVILEGES_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'POLICY_PRIVILEGES_ASC' + | 'POLICY_PRIVILEGES_DESC' + | 'POLICY_ROLE_ASC' + | 'POLICY_ROLE_DESC' + | 'POLICY_PERMISSIVE_ASC' + | 'POLICY_PERMISSIVE_DESC' + | 'POLICY_NAME_ASC' + | 'POLICY_NAME_DESC' + | 'POLICY_DATA_ASC' + | 'POLICY_DATA_DESC' + | 'OUT_FIELD_ID_ASC' + | 'OUT_FIELD_ID_DESC' + | 'OUT_JUNCTION_TABLE_ID_ASC' + | 'OUT_JUNCTION_TABLE_ID_DESC' + | 'OUT_SOURCE_FIELD_ID_ASC' + | 'OUT_SOURCE_FIELD_ID_DESC' + | 'OUT_TARGET_FIELD_ID_ASC' + | 'OUT_TARGET_FIELD_ID_DESC'; export type SchemaGrantOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7859,6 +8737,24 @@ export type SchemaGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type DefaultPrivilegeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; export type ApiSchemaOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7943,40 +8839,6 @@ export type SiteThemeOrderBy = | 'SITE_ID_DESC' | 'THEME_ASC' | 'THEME_DESC'; -export type ProcedureOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ARGNAMES_ASC' - | 'ARGNAMES_DESC' - | 'ARGTYPES_ASC' - | 'ARGTYPES_DESC' - | 'ARGDEFAULTS_ASC' - | 'ARGDEFAULTS_DESC' - | 'LANG_NAME_ASC' - | 'LANG_NAME_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type TriggerFunctionOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -8507,8 +9369,6 @@ export type ProfilesModuleOrderBy = | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8792,7 +9652,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgMemberOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -8861,6 +9723,48 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; +export type OrgChartEdgeGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppLimitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9017,14 +9921,6 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppPermissionDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; export type RefOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9053,6 +9949,14 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type AppPermissionDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC'; export type RoleTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9071,26 +9975,6 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; export type CryptoAddressOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9109,7 +9993,7 @@ export type CryptoAddressOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = +export type AppLimitDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' @@ -9117,10 +10001,18 @@ export type MembershipTypeOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type ConnectedAccountOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9161,24 +10053,18 @@ export type PhoneNumberOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type NodeTypeRegistryOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9201,6 +10087,24 @@ export type NodeTypeRegistryOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppMembershipDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; export type CommitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9245,24 +10149,6 @@ export type OrgMembershipDefaultOrderBy = | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9301,6 +10187,24 @@ export type AppLevelOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type EmailOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_PRIMARY_ASC' + | 'IS_PRIMARY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type SqlMigrationOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9361,6 +10265,28 @@ export type AstMigrationOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type UserOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'USERNAME_ASC' + | 'USERNAME_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC' + | 'SEARCH_TSV_ASC' + | 'SEARCH_TSV_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC'; export type AppMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9394,29 +10320,9 @@ export type AppMembershipOrderBy = | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type UserOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type HierarchyModuleOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9462,6 +10368,46 @@ export type HierarchyModuleOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateOrgGetManagersRecordInput { + clientMutationId?: string; + orgGetManagersRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetManagersRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; + orgGetManagersRecordPatch: OrgGetManagersRecordPatch; +} +export interface DeleteOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + orgGetSubordinatesRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetSubordinatesRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; + orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; +} +export interface DeleteOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateGetAllRecordInput { clientMutationId?: string; getAllRecord: { @@ -9909,43 +10855,13 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateLimitFunctionInput { - clientMutationId?: string; - limitFunction: { - databaseId?: string; - tableId: string; - name?: string; - label?: string; - description?: string; - data?: Record; - security?: number; - }; -} -export interface LimitFunctionPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: Record | null; - security?: number | null; -} -export interface UpdateLimitFunctionInput { - clientMutationId?: string; - id: string; - limitFunctionPatch: LimitFunctionPatch; -} -export interface DeleteLimitFunctionInput { - clientMutationId?: string; - id: string; -} export interface CreatePolicyInput { clientMutationId?: string; policy: { databaseId?: string; tableId: string; name?: string; - roleName?: string; + granteeName?: string; privilege?: string; permissive?: boolean; disabled?: boolean; @@ -9962,7 +10878,7 @@ export interface PolicyPatch { databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -10025,16 +10941,18 @@ export interface CreateTableGrantInput { databaseId?: string; tableId: string; privilege: string; - roleName: string; + granteeName: string; fieldIds?: string[]; + isGrant?: boolean; }; } export interface TableGrantPatch { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; } export interface UpdateTableGrantInput { clientMutationId?: string; @@ -10192,17 +11110,19 @@ export interface CreateViewGrantInput { viewGrant: { databaseId?: string; viewId: string; - roleName: string; + granteeName: string; privilege: string; withGrantOption?: boolean; + isGrant?: boolean; }; } export interface ViewGrantPatch { databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } export interface UpdateViewGrantInput { clientMutationId?: string; @@ -10243,18 +11163,22 @@ export interface CreateTableModuleInput { clientMutationId?: string; tableModule: { databaseId: string; - privateSchemaId?: string; - tableId: string; + schemaId?: string; + tableId?: string; + tableName?: string; nodeType: string; + useRls?: boolean; data?: Record; fields?: string[]; }; } export interface TableModulePatch { databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: Record | null; fields?: string | null; } @@ -10299,6 +11223,124 @@ export interface DeleteTableTemplateModuleInput { clientMutationId?: string; id: string; } +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodeType?: string; + useRls?: boolean; + nodeData?: Record; + grantRoles?: string[]; + grantPrivileges?: Record; + policyType?: string; + policyPrivileges?: string[]; + policyRole?: string; + policyPermissive?: boolean; + policyName?: string; + policyData?: Record; + outFields?: string[]; + }; +} +export interface SecureTableProvisionPatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + useRls?: boolean | null; + nodeData?: Record | null; + grantRoles?: string | null; + grantPrivileges?: Record | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: Record | null; + outFields?: string | null; +} +export interface UpdateSecureTableProvisionInput { + clientMutationId?: string; + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; +} +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + id: string; +} +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + nodeType?: string; + nodeData?: Record; + grantRoles?: string[]; + grantPrivileges?: Record; + policyType?: string; + policyPrivileges?: string[]; + policyRole?: string; + policyPermissive?: boolean; + policyName?: string; + policyData?: Record; + outFieldId?: string; + outJunctionTableId?: string; + outSourceFieldId?: string; + outTargetFieldId?: string; + }; +} +export interface RelationProvisionPatch { + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + nodeType?: string | null; + nodeData?: Record | null; + grantRoles?: string | null; + grantPrivileges?: Record | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface UpdateRelationProvisionInput { + clientMutationId?: string; + id: string; + relationProvisionPatch: RelationProvisionPatch; +} +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -10321,6 +11363,34 @@ export interface DeleteSchemaGrantInput { clientMutationId?: string; id: string; } +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + defaultPrivilege: { + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; + }; +} +export interface DefaultPrivilegePatch { + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface UpdateDefaultPrivilegeInput { + clientMutationId?: string; + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; +} +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -10465,46 +11535,6 @@ export interface DeleteSiteThemeInput { clientMutationId?: string; id: string; } -export interface CreateProcedureInput { - clientMutationId?: string; - procedure: { - databaseId?: string; - name: string; - argnames?: string[]; - argtypes?: string[]; - argdefaults?: string[]; - langName?: string; - definition?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ProcedurePatch { - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string | null; -} -export interface UpdateProcedureInput { - clientMutationId?: string; - id: string; - procedurePatch: ProcedurePatch; -} -export interface DeleteProcedureInput { - clientMutationId?: string; - id: string; -} export interface CreateTriggerFunctionInput { clientMutationId?: string; triggerFunction: { @@ -11207,7 +12237,6 @@ export interface CreateProfilesModuleInput { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; - bitlen?: number; membershipType: number; entityTableId?: string; actorTableId?: string; @@ -11228,7 +12257,6 @@ export interface ProfilesModulePatch { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -11582,6 +12610,7 @@ export interface CreateOrgMembershipInput { granted?: string; actorId: string; entityId: string; + profileId?: string; }; } export interface OrgMembershipPatch { @@ -11597,6 +12626,7 @@ export interface OrgMembershipPatch { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -11703,6 +12733,62 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; +} +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + orgChartEdgeGrant: { + entityId: string; + childId: string; + parentId?: string; + grantorId: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgeGrantPatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -11915,24 +13001,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateRefInput { clientMutationId?: string; ref: { @@ -11979,6 +13047,24 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultInput { + clientMutationId?: string; + appPermissionDefault: { + permissions?: string; + }; +} +export interface AppPermissionDefaultPatch { + permissions?: string | null; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +export interface DeleteAppPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateRoleTypeInput { clientMutationId?: string; roleType: { @@ -12017,6 +13103,30 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -12057,52 +13167,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateConnectedAccountInput { clientMutationId?: string; connectedAccount: { @@ -12155,29 +13219,27 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; + membershipType: { + name: string; + description: string; + prefix: string; }; } -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; } -export interface UpdateAppMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateNodeTypeRegistryInput { clientMutationId?: string; @@ -12209,6 +13271,30 @@ export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; name: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -12269,30 +13355,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateAuditLogInput { clientMutationId?: string; auditLog: { @@ -12345,6 +13407,30 @@ export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} export interface CreateSqlMigrationInput { clientMutationId?: string; sqlMigration: { @@ -12421,6 +13507,33 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + searchTsvRank?: number | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -12436,6 +13549,7 @@ export interface CreateAppMembershipInput { permissions?: string; granted?: string; actorId: string; + profileId?: string; }; } export interface AppMembershipPatch { @@ -12451,6 +13565,7 @@ export interface AppMembershipPatch { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -12461,33 +13576,6 @@ export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - searchTsvRank?: number | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} export interface CreateHierarchyModuleInput { clientMutationId?: string; hierarchyModule: { @@ -12550,10 +13638,8 @@ export const connectionFieldsMap = { foreignKeyConstraints: 'ForeignKeyConstraint', fullTextSearches: 'FullTextSearch', indices: 'Index', - limitFunctions: 'LimitFunction', policies: 'Policy', primaryKeyConstraints: 'PrimaryKeyConstraint', - procedures: 'Procedure', schemaGrants: 'SchemaGrant', tableGrants: 'TableGrant', triggerFunctions: 'TriggerFunction', @@ -12562,6 +13648,7 @@ export const connectionFieldsMap = { views: 'View', viewGrants: 'ViewGrant', viewRules: 'ViewRule', + defaultPrivileges: 'DefaultPrivilege', apis: 'Api', apiModules: 'ApiModule', apiSchemas: 'ApiSchema', @@ -12595,12 +13682,15 @@ export const connectionFieldsMap = { usersModules: 'UsersModule', uuidModules: 'UuidModule', tableTemplateModules: 'TableTemplateModule', + secureTableProvisions: 'SecureTableProvision', + relationProvisions: 'RelationProvision', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { tables: 'Table', schemaGrants: 'SchemaGrant', views: 'View', + defaultPrivileges: 'DefaultPrivilege', apiSchemas: 'ApiSchema', tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', @@ -12611,7 +13701,6 @@ export const connectionFieldsMap = { foreignKeyConstraints: 'ForeignKeyConstraint', fullTextSearches: 'FullTextSearch', indices: 'Index', - limitFunctions: 'LimitFunction', policies: 'Policy', primaryKeyConstraints: 'PrimaryKeyConstraint', tableGrants: 'TableGrant', @@ -12622,6 +13711,9 @@ export const connectionFieldsMap = { tableModules: 'TableModule', tableTemplateModulesByOwnerTableId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', + secureTableProvisions: 'SecureTableProvision', + relationProvisionsBySourceTableId: 'RelationProvision', + relationProvisionsByTargetTableId: 'RelationProvision', }, View: { viewTables: 'ViewTable', @@ -12654,6 +13746,13 @@ export const connectionFieldsMap = { orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', orgGrantsByEntityId: 'OrgGrant', orgGrantsByGrantorId: 'OrgGrant', + parentOrgChartEdges: 'OrgChartEdge', + orgChartEdgesByEntityId: 'OrgChartEdge', + childOrgChartEdges: 'OrgChartEdge', + parentOrgChartEdgeGrants: 'OrgChartEdgeGrant', + orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', + orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', + childOrgChartEdgeGrants: 'OrgChartEdgeGrant', appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', @@ -13743,51 +14842,6 @@ export type DeleteIndexPayloadSelect = { select: IndexEdgeSelect; }; }; -export interface CreateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was created by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type CreateLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; -export interface UpdateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was updated by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type UpdateLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; -export interface DeleteLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was deleted by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type DeleteLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; export interface CreatePolicyPayload { clientMutationId?: string | null; /** The `Policy` that was created by this mutation. */ @@ -14283,6 +15337,96 @@ export type DeleteTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; +export interface CreateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type CreateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface UpdateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type UpdateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface DeleteSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type DeleteSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type CreateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type UpdateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type DeleteRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -14328,6 +15472,51 @@ export type DeleteSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type CreateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type UpdateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type DeleteDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -14598,51 +15787,6 @@ export type DeleteSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; -export interface CreateProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was created by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type CreateProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; -export interface UpdateProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was updated by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type UpdateProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; -export interface DeleteProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was deleted by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type DeleteProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; export interface CreateTriggerFunctionPayload { clientMutationId?: string | null; /** The `TriggerFunction` that was created by this mutation. */ @@ -16218,61 +17362,151 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateAppLimitPayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateAppLimitPayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteAppLimitPayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteAppLimitPayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface CreateOrgLimitPayload { +export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export type CreateOrgLimitPayloadSelect = { +export type CreateOrgChartEdgeGrantPayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type UpdateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type DeleteOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type CreateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; }; orgLimitEdge?: { select: OrgLimitEdgeSelect; @@ -16578,51 +17812,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -16713,6 +17902,51 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; +export interface CreateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type CreateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type UpdateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type DeleteAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -16803,6 +18037,51 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type DeleteCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ @@ -16893,96 +18172,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; export interface CreateConnectedAccountPayload { clientMutationId?: string | null; /** The `ConnectedAccount` that was created by this mutation. */ @@ -17073,49 +18262,49 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateNodeTypeRegistryPayload { @@ -17163,6 +18352,51 @@ export type DeleteNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -17253,51 +18487,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ @@ -17384,8 +18573,53 @@ export type DeleteAppLevelPayloadSelect = { appLevel?: { select: AppLevelSelect; }; - appLevelEdge?: { - select: AppLevelEdgeSelect; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; }; }; export interface CreateSqlMigrationPayload { @@ -17410,51 +18644,6 @@ export type CreateAstMigrationPayloadSelect = { select: AstMigrationSelect; }; }; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -17500,6 +18689,51 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type CreateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; export interface CreateHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was created by this mutation. */ @@ -17696,18 +18930,30 @@ export type SignUpRecordSelect = { isVerified?: boolean; totpEnabled?: boolean; }; +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -17824,18 +19070,6 @@ export type IndexEdgeSelect = { select: IndexSelect; }; }; -/** A `LimitFunction` edge in the connection. */ -export interface LimitFunctionEdge { - cursor?: string | null; - /** The `LimitFunction` at the end of the edge. */ - node?: LimitFunction | null; -} -export type LimitFunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: LimitFunctionSelect; - }; -}; /** A `Policy` edge in the connection. */ export interface PolicyEdge { cursor?: string | null; @@ -17968,6 +19202,30 @@ export type TableTemplateModuleEdgeSelect = { select: TableTemplateModuleSelect; }; }; +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} +export type SecureTableProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: SecureTableProvisionSelect; + }; +}; +/** A `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} +export type RelationProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: RelationProvisionSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -17980,6 +19238,18 @@ export type SchemaGrantEdgeSelect = { select: SchemaGrantSelect; }; }; +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +export type DefaultPrivilegeEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultPrivilegeSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -18052,18 +19322,6 @@ export type SiteThemeEdgeSelect = { select: SiteThemeSelect; }; }; -/** A `Procedure` edge in the connection. */ -export interface ProcedureEdge { - cursor?: string | null; - /** The `Procedure` at the end of the edge. */ - node?: Procedure | null; -} -export type ProcedureEdgeSelect = { - cursor?: boolean; - node?: { - select: ProcedureSelect; - }; -}; /** A `TriggerFunction` edge in the connection. */ export interface TriggerFunctionEdge { cursor?: string | null; @@ -18484,6 +19742,30 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} +export type OrgChartEdgeEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeSelect; + }; +}; +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +export type OrgChartEdgeGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeGrantSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -18580,18 +19862,6 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -18616,6 +19886,18 @@ export type StoreEdgeSelect = { select: StoreSelect; }; }; +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { + cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -18640,6 +19922,18 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -18664,30 +19958,6 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; /** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { cursor?: string | null; @@ -18712,16 +19982,16 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `NodeTypeRegistry` edge in the connection. */ @@ -18736,6 +20006,18 @@ export type NodeTypeRegistryEdgeSelect = { select: NodeTypeRegistrySelect; }; }; +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +export type AppMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipDefaultSelect; + }; +}; /** A `Commit` edge in the connection. */ export interface CommitEdge { cursor?: string | null; @@ -18760,18 +20042,6 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; @@ -18796,16 +20066,16 @@ export type AppLevelEdgeSelect = { select: AppLevelSelect; }; }; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } -export type AppMembershipEdgeSelect = { +export type EmailEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: EmailSelect; }; }; /** A `User` edge in the connection. */ @@ -18820,6 +20090,18 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { + cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; /** A `HierarchyModule` edge in the connection. */ export interface HierarchyModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/public/orm/models/defaultPrivilege.ts b/sdk/constructive-react/src/public/orm/models/defaultPrivilege.ts new file mode 100644 index 000000000..73079ad7f --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/defaultPrivilege.ts @@ -0,0 +1,236 @@ +/** + * DefaultPrivilege model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DefaultPrivilege, + DefaultPrivilegeWithRelations, + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy, + CreateDefaultPrivilegeInput, + UpdateDefaultPrivilegeInput, + DefaultPrivilegePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DefaultPrivilegeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivileges: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DefaultPrivilegeFilter', + 'DefaultPrivilegeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivileges', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivileges: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: args?.where, + }, + 'DefaultPrivilegeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivileges', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivilege: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DefaultPrivilegeFilter', + 'DefaultPrivilegeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivilege', + document, + variables, + transform: (data: { + defaultPrivileges?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + defaultPrivilege: data.defaultPrivileges?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DefaultPrivilege', + 'createDefaultPrivilege', + 'defaultPrivilege', + args.select, + args.data, + 'CreateDefaultPrivilegeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'createDefaultPrivilege', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DefaultPrivilegePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DefaultPrivilege', + 'updateDefaultPrivilege', + 'defaultPrivilege', + args.select, + args.where.id, + args.data, + 'UpdateDefaultPrivilegeInput', + 'id', + 'defaultPrivilegePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'updateDefaultPrivilege', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DefaultPrivilege', + 'deleteDefaultPrivilege', + 'defaultPrivilege', + args.where.id, + 'DeleteDefaultPrivilegeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'deleteDefaultPrivilege', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/index.ts b/sdk/constructive-react/src/public/orm/models/index.ts index b76148dfe..69c875e89 100644 --- a/sdk/constructive-react/src/public/orm/models/index.ts +++ b/sdk/constructive-react/src/public/orm/models/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; +export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; @@ -16,7 +18,6 @@ export { FieldModel } from './field'; export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { IndexModel } from './indexModel'; -export { LimitFunctionModel } from './limitFunction'; export { PolicyModel } from './policy'; export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { TableGrantModel } from './tableGrant'; @@ -28,14 +29,16 @@ export { ViewGrantModel } from './viewGrant'; export { ViewRuleModel } from './viewRule'; export { TableModuleModel } from './tableModule'; export { TableTemplateModuleModel } from './tableTemplateModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; +export { RelationProvisionModel } from './relationProvision'; export { SchemaGrantModel } from './schemaGrant'; +export { DefaultPrivilegeModel } from './defaultPrivilege'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; export { SiteThemeModel } from './siteTheme'; -export { ProcedureModel } from './procedure'; export { TriggerFunctionModel } from './triggerFunction'; export { ApiModel } from './api'; export { SiteModel } from './site'; @@ -71,6 +74,8 @@ export { OrgMemberModel } from './orgMember'; export { OrgAdminGrantModel } from './orgAdminGrant'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; export { AppStepModel } from './appStep'; @@ -79,26 +84,26 @@ export { InviteModel } from './invite'; export { ClaimedInviteModel } from './claimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; export { RefModel } from './ref'; export { StoreModel } from './store'; +export { AppPermissionDefaultModel } from './appPermissionDefault'; export { RoleTypeModel } from './roleType'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { CryptoAddressModel } from './cryptoAddress'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { CryptoAddressModel } from './cryptoAddress'; -export { MembershipTypeModel } from './membershipType'; export { ConnectedAccountModel } from './connectedAccount'; export { PhoneNumberModel } from './phoneNumber'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; export { CommitModel } from './commit'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { EmailModel } from './email'; export { AuditLogModel } from './auditLog'; export { AppLevelModel } from './appLevel'; +export { EmailModel } from './email'; export { SqlMigrationModel } from './sqlMigration'; export { AstMigrationModel } from './astMigration'; -export { AppMembershipModel } from './appMembership'; export { UserModel } from './user'; +export { AppMembershipModel } from './appMembership'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-react/src/public/orm/models/limitFunction.ts b/sdk/constructive-react/src/public/orm/models/limitFunction.ts deleted file mode 100644 index 9df58af2a..000000000 --- a/sdk/constructive-react/src/public/orm/models/limitFunction.ts +++ /dev/null @@ -1,236 +0,0 @@ -/** - * LimitFunction model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - LimitFunction, - LimitFunctionWithRelations, - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy, - CreateLimitFunctionInput, - UpdateLimitFunctionInput, - LimitFunctionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class LimitFunctionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - limitFunctions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'LimitFunction', - 'limitFunctions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'LimitFunctionFilter', - 'LimitFunctionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunctions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - limitFunctions: { - nodes: InferSelectResult[]; - }; - }> { - const { document, variables } = buildFindFirstDocument( - 'LimitFunction', - 'limitFunctions', - args.select, - { - where: args?.where, - }, - 'LimitFunctionFilter', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunctions', - document, - variables, - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - limitFunction: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'LimitFunction', - 'limitFunctions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'LimitFunctionFilter', - 'LimitFunctionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunction', - document, - variables, - transform: (data: { - limitFunctions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - limitFunction: data.limitFunctions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createLimitFunction: { - limitFunction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'LimitFunction', - 'createLimitFunction', - 'limitFunction', - args.select, - args.data, - 'CreateLimitFunctionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'createLimitFunction', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - LimitFunctionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateLimitFunction: { - limitFunction: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'LimitFunction', - 'updateLimitFunction', - 'limitFunction', - args.select, - args.where.id, - args.data, - 'UpdateLimitFunctionInput', - 'id', - 'limitFunctionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'updateLimitFunction', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteLimitFunction: { - limitFunction: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'LimitFunction', - 'deleteLimitFunction', - 'limitFunction', - args.where.id, - 'DeleteLimitFunctionInput', - 'id', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'deleteLimitFunction', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgChartEdge.ts b/sdk/constructive-react/src/public/orm/models/orgChartEdge.ts new file mode 100644 index 000000000..3ff845429 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgChartEdge.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdge model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgChartEdge, + OrgChartEdgeWithRelations, + OrgChartEdgeSelect, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, + CreateOrgChartEdgeInput, + UpdateOrgChartEdgeInput, + OrgChartEdgePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdges: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdges: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdge: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdge', + document, + variables, + transform: (data: { + orgChartEdges?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdge', + 'createOrgChartEdge', + 'orgChartEdge', + args.select, + args.data, + 'CreateOrgChartEdgeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'createOrgChartEdge', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdge', + 'updateOrgChartEdge', + 'orgChartEdge', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeInput', + 'id', + 'orgChartEdgePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'updateOrgChartEdge', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdge', + 'deleteOrgChartEdge', + 'orgChartEdge', + args.where.id, + 'DeleteOrgChartEdgeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'deleteOrgChartEdge', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts new file mode 100644 index 000000000..40dba3391 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdgeGrant model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgChartEdgeGrant, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, + CreateOrgChartEdgeGrantInput, + UpdateOrgChartEdgeGrantInput, + OrgChartEdgeGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrant', + document, + variables, + transform: (data: { + orgChartEdgeGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdgeGrant', + 'createOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.data, + 'CreateOrgChartEdgeGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'createOrgChartEdgeGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgeGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdgeGrant', + 'updateOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeGrantInput', + 'id', + 'orgChartEdgeGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'updateOrgChartEdgeGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdgeGrant', + 'deleteOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.where.id, + 'DeleteOrgChartEdgeGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'deleteOrgChartEdgeGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts b/sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts new file mode 100644 index 000000000..9a0cefa8a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts @@ -0,0 +1,127 @@ +/** + * OrgGetManagersRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgGetManagersRecord, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, + CreateOrgGetManagersRecordInput, + UpdateOrgGetManagersRecordInput, + OrgGetManagersRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetManagersRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgGetManagersRecordFilter', + 'OrgGetManagersRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + }, + 'OrgGetManagersRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetManagersRecord', + 'createOrgGetManagersRecord', + 'orgGetManagersRecord', + args.select, + args.data, + 'CreateOrgGetManagersRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetManagersRecord', + fieldName: 'createOrgGetManagersRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts new file mode 100644 index 000000000..5eeec50ca --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts @@ -0,0 +1,129 @@ +/** + * OrgGetSubordinatesRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgGetSubordinatesRecord, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, + CreateOrgGetSubordinatesRecordInput, + UpdateOrgGetSubordinatesRecordInput, + OrgGetSubordinatesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetSubordinatesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgGetSubordinatesRecordFilter', + 'OrgGetSubordinatesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + }, + 'OrgGetSubordinatesRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetSubordinatesRecord', + 'createOrgGetSubordinatesRecord', + 'orgGetSubordinatesRecord', + args.select, + args.data, + 'CreateOrgGetSubordinatesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'createOrgGetSubordinatesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/procedure.ts b/sdk/constructive-react/src/public/orm/models/procedure.ts deleted file mode 100644 index 6725b1577..000000000 --- a/sdk/constructive-react/src/public/orm/models/procedure.ts +++ /dev/null @@ -1,236 +0,0 @@ -/** - * Procedure model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - Procedure, - ProcedureWithRelations, - ProcedureSelect, - ProcedureFilter, - ProcedureOrderBy, - CreateProcedureInput, - UpdateProcedureInput, - ProcedurePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class ProcedureModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - procedures: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Procedure', - 'procedures', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'ProcedureFilter', - 'ProcedureOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Procedure', - fieldName: 'procedures', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - procedures: { - nodes: InferSelectResult[]; - }; - }> { - const { document, variables } = buildFindFirstDocument( - 'Procedure', - 'procedures', - args.select, - { - where: args?.where, - }, - 'ProcedureFilter', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Procedure', - fieldName: 'procedures', - document, - variables, - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - procedure: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Procedure', - 'procedures', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'ProcedureFilter', - 'ProcedureOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Procedure', - fieldName: 'procedure', - document, - variables, - transform: (data: { - procedures?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - procedure: data.procedures?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createProcedure: { - procedure: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Procedure', - 'createProcedure', - 'procedure', - args.select, - args.data, - 'CreateProcedureInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Procedure', - fieldName: 'createProcedure', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - ProcedurePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateProcedure: { - procedure: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Procedure', - 'updateProcedure', - 'procedure', - args.select, - args.where.id, - args.data, - 'UpdateProcedureInput', - 'id', - 'procedurePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Procedure', - fieldName: 'updateProcedure', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteProcedure: { - procedure: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Procedure', - 'deleteProcedure', - 'procedure', - args.where.id, - 'DeleteProcedureInput', - 'id', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Procedure', - fieldName: 'deleteProcedure', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/relationProvision.ts b/sdk/constructive-react/src/public/orm/models/relationProvision.ts new file mode 100644 index 000000000..83dcb30fd --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/relationProvision.ts @@ -0,0 +1,236 @@ +/** + * RelationProvision model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + RelationProvision, + RelationProvisionWithRelations, + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy, + CreateRelationProvisionInput, + UpdateRelationProvisionInput, + RelationProvisionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RelationProvisionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvisions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'RelationProvisionFilter', + 'RelationProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvisions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvisions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: args?.where, + }, + 'RelationProvisionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvisions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvision: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RelationProvisionFilter', + 'RelationProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvision', + document, + variables, + transform: (data: { + relationProvisions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + relationProvision: data.relationProvisions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RelationProvision', + 'createRelationProvision', + 'relationProvision', + args.select, + args.data, + 'CreateRelationProvisionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'createRelationProvision', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RelationProvisionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RelationProvision', + 'updateRelationProvision', + 'relationProvision', + args.select, + args.where.id, + args.data, + 'UpdateRelationProvisionInput', + 'id', + 'relationProvisionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'updateRelationProvision', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RelationProvision', + 'deleteRelationProvision', + 'relationProvision', + args.where.id, + 'DeleteRelationProvisionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'deleteRelationProvision', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/secureTableProvision.ts b/sdk/constructive-react/src/public/orm/models/secureTableProvision.ts new file mode 100644 index 000000000..713dc44c8 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/secureTableProvision.ts @@ -0,0 +1,238 @@ +/** + * SecureTableProvision model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + SecureTableProvision, + SecureTableProvisionWithRelations, + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy, + CreateSecureTableProvisionInput, + UpdateSecureTableProvisionInput, + SecureTableProvisionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SecureTableProvisionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvisions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'SecureTableProvisionFilter', + 'SecureTableProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvisions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvisions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: args?.where, + }, + 'SecureTableProvisionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvisions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvision: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SecureTableProvisionFilter', + 'SecureTableProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvision', + document, + variables, + transform: (data: { + secureTableProvisions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secureTableProvision: data.secureTableProvisions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SecureTableProvision', + 'createSecureTableProvision', + 'secureTableProvision', + args.select, + args.data, + 'CreateSecureTableProvisionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'createSecureTableProvision', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SecureTableProvisionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SecureTableProvision', + 'updateSecureTableProvision', + 'secureTableProvision', + args.select, + args.where.id, + args.data, + 'UpdateSecureTableProvisionInput', + 'id', + 'secureTableProvisionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'updateSecureTableProvision', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SecureTableProvision', + 'deleteSecureTableProvision', + 'secureTableProvision', + args.where.id, + 'DeleteSecureTableProvisionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'deleteSecureTableProvision', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/query/index.ts b/sdk/constructive-react/src/public/orm/query/index.ts index 468211e98..12a89b785 100644 --- a/sdk/constructive-react/src/public/orm/query/index.ts +++ b/sdk/constructive-react/src/public/orm/query/index.ts @@ -32,6 +32,12 @@ export interface RevParseVariables { storeId?: string; refname?: string; } +export interface OrgIsManagerOfVariables { + pEntityId?: string; + pManagerId?: string; + pUserId?: string; + pMaxDepth?: number; +} export interface AppPermissionsGetMaskVariables { ids?: string[]; } @@ -301,6 +307,47 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + orgIsManagerOf: ( + args: OrgIsManagerOfVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgIsManagerOf: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'OrgIsManagerOf', + fieldName: 'orgIsManagerOf', + ...buildCustomDocument( + 'query', + 'OrgIsManagerOf', + 'orgIsManagerOf', + options?.select, + args, + [ + { + name: 'pEntityId', + type: 'UUID', + }, + { + name: 'pManagerId', + type: 'UUID', + }, + { + name: 'pUserId', + type: 'UUID', + }, + { + name: 'pMaxDepth', + type: 'Int', + }, + ], + connectionFieldsMap, + undefined + ), + }), appPermissionsGetMask: ( args: AppPermissionsGetMaskVariables, options?: { diff --git a/sdk/constructive-react/src/public/orm/skills/api.md b/sdk/constructive-react/src/public/orm/skills/api.md deleted file mode 100644 index 4fbea1f24..000000000 --- a/sdk/constructive-react/src/public/orm/skills/api.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-api - - - -ORM operations for Api records - -## Usage - -```typescript -db.api.findMany({ select: { id: true } }).execute() -db.api.findOne({ id: '', select: { id: true } }).execute() -db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute() -db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.api.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all api records - -```typescript -const items = await db.api.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a api - -```typescript -const item = await db.api.create({ - data: { databaseId: 'value', name: 'value', dbname: 'value', roleName: 'value', anonRole: 'value', isPublic: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/apiModule.md b/sdk/constructive-react/src/public/orm/skills/apiModule.md deleted file mode 100644 index bc5e1a7b6..000000000 --- a/sdk/constructive-react/src/public/orm/skills/apiModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-apiModule - - - -ORM operations for ApiModule records - -## Usage - -```typescript -db.apiModule.findMany({ select: { id: true } }).execute() -db.apiModule.findOne({ id: '', select: { id: true } }).execute() -db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute() -db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.apiModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiModule records - -```typescript -const items = await db.apiModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a apiModule - -```typescript -const item = await db.apiModule.create({ - data: { databaseId: 'value', apiId: 'value', name: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/apiSchema.md b/sdk/constructive-react/src/public/orm/skills/apiSchema.md deleted file mode 100644 index 965a1cded..000000000 --- a/sdk/constructive-react/src/public/orm/skills/apiSchema.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-apiSchema - - - -ORM operations for ApiSchema records - -## Usage - -```typescript -db.apiSchema.findMany({ select: { id: true } }).execute() -db.apiSchema.findOne({ id: '', select: { id: true } }).execute() -db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute() -db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.apiSchema.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiSchema records - -```typescript -const items = await db.apiSchema.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a apiSchema - -```typescript -const item = await db.apiSchema.create({ - data: { databaseId: 'value', schemaId: 'value', apiId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/app.md b/sdk/constructive-react/src/public/orm/skills/app.md deleted file mode 100644 index aa0d12b64..000000000 --- a/sdk/constructive-react/src/public/orm/skills/app.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-app - - - -ORM operations for App records - -## Usage - -```typescript -db.app.findMany({ select: { id: true } }).execute() -db.app.findOne({ id: '', select: { id: true } }).execute() -db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute() -db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.app.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all app records - -```typescript -const items = await db.app.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a app - -```typescript -const item = await db.app.create({ - data: { databaseId: 'value', siteId: 'value', name: 'value', appImage: 'value', appStoreLink: 'value', appStoreId: 'value', appIdPrefix: 'value', playStoreLink: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appAchievement.md b/sdk/constructive-react/src/public/orm/skills/appAchievement.md deleted file mode 100644 index 92ab466a3..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appAchievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAchievement - - - -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. - -## Usage - -```typescript -db.appAchievement.findMany({ select: { id: true } }).execute() -db.appAchievement.findOne({ id: '', select: { id: true } }).execute() -db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appAchievement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAchievement records - -```typescript -const items = await db.appAchievement.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appAchievement - -```typescript -const item = await db.appAchievement.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appAdminGrant.md b/sdk/constructive-react/src/public/orm/skills/appAdminGrant.md deleted file mode 100644 index 6b585abee..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAdminGrant - - - -ORM operations for AppAdminGrant records - -## Usage - -```typescript -db.appAdminGrant.findMany({ select: { id: true } }).execute() -db.appAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAdminGrant records - -```typescript -const items = await db.appAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appAdminGrant - -```typescript -const item = await db.appAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appGrant.md b/sdk/constructive-react/src/public/orm/skills/appGrant.md deleted file mode 100644 index 017771262..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appGrant - - - -ORM operations for AppGrant records - -## Usage - -```typescript -db.appGrant.findMany({ select: { id: true } }).execute() -db.appGrant.findOne({ id: '', select: { id: true } }).execute() -db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appGrant records - -```typescript -const items = await db.appGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appGrant - -```typescript -const item = await db.appGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appLevel.md b/sdk/constructive-react/src/public/orm/skills/appLevel.md deleted file mode 100644 index 3677ecc37..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appLevel.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevel - - - -Levels for achievement - -## Usage - -```typescript -db.appLevel.findMany({ select: { id: true } }).execute() -db.appLevel.findOne({ id: '', select: { id: true } }).execute() -db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() -db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevel.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevel records - -```typescript -const items = await db.appLevel.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevel - -```typescript -const item = await db.appLevel.create({ - data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md b/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md deleted file mode 100644 index 28df77ff5..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevelRequirement - - - -Requirements to achieve a level - -## Usage - -```typescript -db.appLevelRequirement.findMany({ select: { id: true } }).execute() -db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() -db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() -db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevelRequirement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelRequirement records - -```typescript -const items = await db.appLevelRequirement.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevelRequirement - -```typescript -const item = await db.appLevelRequirement.create({ - data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appLimit.md b/sdk/constructive-react/src/public/orm/skills/appLimit.md deleted file mode 100644 index 50fa2b37f..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimit - - - -ORM operations for AppLimit records - -## Usage - -```typescript -db.appLimit.findMany({ select: { id: true } }).execute() -db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() -db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimit records - -```typescript -const items = await db.appLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimit - -```typescript -const item = await db.appLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appLimitDefault.md b/sdk/constructive-react/src/public/orm/skills/appLimitDefault.md deleted file mode 100644 index eb070a028..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimitDefault - - - -ORM operations for AppLimitDefault records - -## Usage - -```typescript -db.appLimitDefault.findMany({ select: { id: true } }).execute() -db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitDefault records - -```typescript -const items = await db.appLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitDefault - -```typescript -const item = await db.appLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appMembership.md b/sdk/constructive-react/src/public/orm/skills/appMembership.md deleted file mode 100644 index 07e8f9763..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembership - - - -ORM operations for AppMembership records - -## Usage - -```typescript -db.appMembership.findMany({ select: { id: true } }).execute() -db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() -db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembership records - -```typescript -const items = await db.appMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembership - -```typescript -const item = await db.appMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appMembershipDefault.md b/sdk/constructive-react/src/public/orm/skills/appMembershipDefault.md deleted file mode 100644 index 82c322958..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembershipDefault - - - -ORM operations for AppMembershipDefault records - -## Usage - -```typescript -db.appMembershipDefault.findMany({ select: { id: true } }).execute() -db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() -db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembershipDefault records - -```typescript -const items = await db.appMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembershipDefault - -```typescript -const item = await db.appMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appOwnerGrant.md b/sdk/constructive-react/src/public/orm/skills/appOwnerGrant.md deleted file mode 100644 index 89c574dd7..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appOwnerGrant - - - -ORM operations for AppOwnerGrant records - -## Usage - -```typescript -db.appOwnerGrant.findMany({ select: { id: true } }).execute() -db.appOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appOwnerGrant records - -```typescript -const items = await db.appOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appOwnerGrant - -```typescript -const item = await db.appOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appPermission.md b/sdk/constructive-react/src/public/orm/skills/appPermission.md deleted file mode 100644 index a497f7b8a..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermission - - - -ORM operations for AppPermission records - -## Usage - -```typescript -db.appPermission.findMany({ select: { id: true } }).execute() -db.appPermission.findOne({ id: '', select: { id: true } }).execute() -db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermission records - -```typescript -const items = await db.appPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appPermission - -```typescript -const item = await db.appPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionDefault.md b/sdk/constructive-react/src/public/orm/skills/appPermissionDefault.md deleted file mode 100644 index ef8289183..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermissionDefault - - - -ORM operations for AppPermissionDefault records - -## Usage - -```typescript -db.appPermissionDefault.findMany({ select: { id: true } }).execute() -db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefault records - -```typescript -const items = await db.appPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appPermissionDefault - -```typescript -const item = await db.appPermissionDefault.create({ - data: { permissions: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetByMask.md b/sdk/constructive-react/src/public/orm/skills/appPermissionsGetByMask.md deleted file mode 100644 index 369df9f26..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetByMask - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMask.md b/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMask.md deleted file mode 100644 index ceca5548f..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```typescript -db.query.appPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMask - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMaskByNames.md deleted file mode 100644 index c3f40dddc..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.appPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-react/src/public/orm/skills/appPermissionsGetPaddedMask.md deleted file mode 100644 index accce0eed..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/appStep.md b/sdk/constructive-react/src/public/orm/skills/appStep.md deleted file mode 100644 index 3c349de1f..000000000 --- a/sdk/constructive-react/src/public/orm/skills/appStep.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appStep - - - -The user achieving a requirement for a level. Log table that has every single step ever taken. - -## Usage - -```typescript -db.appStep.findMany({ select: { id: true } }).execute() -db.appStep.findOne({ id: '', select: { id: true } }).execute() -db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appStep.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appStep records - -```typescript -const items = await db.appStep.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appStep - -```typescript -const item = await db.appStep.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/applyRls.md b/sdk/constructive-react/src/public/orm/skills/applyRls.md deleted file mode 100644 index 4716da759..000000000 --- a/sdk/constructive-react/src/public/orm/skills/applyRls.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-applyRls - - - -Execute the applyRls mutation - -## Usage - -```typescript -db.mutation.applyRls({ input: '' }).execute() -``` - -## Examples - -### Run applyRls - -```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/astMigration.md b/sdk/constructive-react/src/public/orm/skills/astMigration.md deleted file mode 100644 index 96c82138c..000000000 --- a/sdk/constructive-react/src/public/orm/skills/astMigration.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-astMigration - - - -ORM operations for AstMigration records - -## Usage - -```typescript -db.astMigration.findMany({ select: { id: true } }).execute() -db.astMigration.findOne({ id: '', select: { id: true } }).execute() -db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() -db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.astMigration.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all astMigration records - -```typescript -const items = await db.astMigration.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a astMigration - -```typescript -const item = await db.astMigration.create({ - data: { databaseId: 'value', name: 'value', requires: 'value', payload: 'value', deploys: 'value', deploy: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/auditLog.md b/sdk/constructive-react/src/public/orm/skills/auditLog.md deleted file mode 100644 index d7eed269a..000000000 --- a/sdk/constructive-react/src/public/orm/skills/auditLog.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-auditLog - - - -ORM operations for AuditLog records - -## Usage - -```typescript -db.auditLog.findMany({ select: { id: true } }).execute() -db.auditLog.findOne({ id: '', select: { id: true } }).execute() -db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() -db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() -db.auditLog.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all auditLog records - -```typescript -const items = await db.auditLog.findMany({ - select: { id: true, event: true } -}).execute(); -``` - -### Create a auditLog - -```typescript -const item = await db.auditLog.create({ - data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/bootstrapUser.md b/sdk/constructive-react/src/public/orm/skills/bootstrapUser.md deleted file mode 100644 index 08fff3805..000000000 --- a/sdk/constructive-react/src/public/orm/skills/bootstrapUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-bootstrapUser - - - -Execute the bootstrapUser mutation - -## Usage - -```typescript -db.mutation.bootstrapUser({ input: '' }).execute() -``` - -## Examples - -### Run bootstrapUser - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/checkConstraint.md b/sdk/constructive-react/src/public/orm/skills/checkConstraint.md deleted file mode 100644 index 1e13d4f10..000000000 --- a/sdk/constructive-react/src/public/orm/skills/checkConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-checkConstraint - - - -ORM operations for CheckConstraint records - -## Usage - -```typescript -db.checkConstraint.findMany({ select: { id: true } }).execute() -db.checkConstraint.findOne({ id: '', select: { id: true } }).execute() -db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.checkConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all checkConstraint records - -```typescript -const items = await db.checkConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a checkConstraint - -```typescript -const item = await db.checkConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', expr: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/checkPassword.md b/sdk/constructive-react/src/public/orm/skills/checkPassword.md deleted file mode 100644 index 1c5c3d8ba..000000000 --- a/sdk/constructive-react/src/public/orm/skills/checkPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-checkPassword - - - -Execute the checkPassword mutation - -## Usage - -```typescript -db.mutation.checkPassword({ input: '' }).execute() -``` - -## Examples - -### Run checkPassword - -```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/claimedInvite.md b/sdk/constructive-react/src/public/orm/skills/claimedInvite.md deleted file mode 100644 index 3d5de6b3b..000000000 --- a/sdk/constructive-react/src/public/orm/skills/claimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-claimedInvite - - - -ORM operations for ClaimedInvite records - -## Usage - -```typescript -db.claimedInvite.findMany({ select: { id: true } }).execute() -db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() -db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.claimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all claimedInvite records - -```typescript -const items = await db.claimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a claimedInvite - -```typescript -const item = await db.claimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/commit.md b/sdk/constructive-react/src/public/orm/skills/commit.md deleted file mode 100644 index 85ded9d62..000000000 --- a/sdk/constructive-react/src/public/orm/skills/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -db.commit.findMany({ select: { id: true } }).execute() -db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() -db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() -db.commit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all commit records - -```typescript -const items = await db.commit.findMany({ - select: { id: true, message: true } -}).execute(); -``` - -### Create a commit - -```typescript -const item = await db.commit.create({ - data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/confirmDeleteAccount.md b/sdk/constructive-react/src/public/orm/skills/confirmDeleteAccount.md deleted file mode 100644 index 4d76c3194..000000000 --- a/sdk/constructive-react/src/public/orm/skills/confirmDeleteAccount.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-confirmDeleteAccount - - - -Execute the confirmDeleteAccount mutation - -## Usage - -```typescript -db.mutation.confirmDeleteAccount({ input: '' }).execute() -``` - -## Examples - -### Run confirmDeleteAccount - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/connectedAccount.md b/sdk/constructive-react/src/public/orm/skills/connectedAccount.md deleted file mode 100644 index ff7e10281..000000000 --- a/sdk/constructive-react/src/public/orm/skills/connectedAccount.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-connectedAccount - - - -ORM operations for ConnectedAccount records - -## Usage - -```typescript -db.connectedAccount.findMany({ select: { id: true } }).execute() -db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() -db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.connectedAccount.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccount records - -```typescript -const items = await db.connectedAccount.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a connectedAccount - -```typescript -const item = await db.connectedAccount.create({ - data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/connectedAccountsModule.md b/sdk/constructive-react/src/public/orm/skills/connectedAccountsModule.md deleted file mode 100644 index 5a0a95552..000000000 --- a/sdk/constructive-react/src/public/orm/skills/connectedAccountsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-connectedAccountsModule - - - -ORM operations for ConnectedAccountsModule records - -## Usage - -```typescript -db.connectedAccountsModule.findMany({ select: { id: true } }).execute() -db.connectedAccountsModule.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.connectedAccountsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccountsModule records - -```typescript -const items = await db.connectedAccountsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a connectedAccountsModule - -```typescript -const item = await db.connectedAccountsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/createUserDatabase.md b/sdk/constructive-react/src/public/orm/skills/createUserDatabase.md deleted file mode 100644 index aeaeb3f50..000000000 --- a/sdk/constructive-react/src/public/orm/skills/createUserDatabase.md +++ /dev/null @@ -1,35 +0,0 @@ -# orm-createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include levels/achievements (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```typescript -db.mutation.createUserDatabase({ input: '' }).execute() -``` - -## Examples - -### Run createUserDatabase - -```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/cryptoAddress.md b/sdk/constructive-react/src/public/orm/skills/cryptoAddress.md deleted file mode 100644 index 70e896572..000000000 --- a/sdk/constructive-react/src/public/orm/skills/cryptoAddress.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAddress - - - -ORM operations for CryptoAddress records - -## Usage - -```typescript -db.cryptoAddress.findMany({ select: { id: true } }).execute() -db.cryptoAddress.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.cryptoAddress.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddress records - -```typescript -const items = await db.cryptoAddress.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a cryptoAddress - -```typescript -const item = await db.cryptoAddress.create({ - data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/cryptoAddressesModule.md b/sdk/constructive-react/src/public/orm/skills/cryptoAddressesModule.md deleted file mode 100644 index 1eb3867b9..000000000 --- a/sdk/constructive-react/src/public/orm/skills/cryptoAddressesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAddressesModule - - - -ORM operations for CryptoAddressesModule records - -## Usage - -```typescript -db.cryptoAddressesModule.findMany({ select: { id: true } }).execute() -db.cryptoAddressesModule.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute() -db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.cryptoAddressesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddressesModule records - -```typescript -const items = await db.cryptoAddressesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a cryptoAddressesModule - -```typescript -const item = await db.cryptoAddressesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', cryptoNetwork: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/cryptoAuthModule.md b/sdk/constructive-react/src/public/orm/skills/cryptoAuthModule.md deleted file mode 100644 index 2cb20a2ec..000000000 --- a/sdk/constructive-react/src/public/orm/skills/cryptoAuthModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAuthModule - - - -ORM operations for CryptoAuthModule records - -## Usage - -```typescript -db.cryptoAuthModule.findMany({ select: { id: true } }).execute() -db.cryptoAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute() -db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.cryptoAuthModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAuthModule records - -```typescript -const items = await db.cryptoAuthModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a cryptoAuthModule - -```typescript -const item = await db.cryptoAuthModule.create({ - data: { databaseId: 'value', schemaId: 'value', usersTableId: 'value', secretsTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', addressesTableId: 'value', userField: 'value', cryptoNetwork: 'value', signInRequestChallenge: 'value', signInRecordFailure: 'value', signUpWithKey: 'value', signInWithChallenge: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/currentIpAddress.md b/sdk/constructive-react/src/public/orm/skills/currentIpAddress.md deleted file mode 100644 index 63d2d9969..000000000 --- a/sdk/constructive-react/src/public/orm/skills/currentIpAddress.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentIpAddress - - - -Execute the currentIpAddress query - -## Usage - -```typescript -db.query.currentIpAddress().execute() -``` - -## Examples - -### Run currentIpAddress - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/currentUser.md b/sdk/constructive-react/src/public/orm/skills/currentUser.md deleted file mode 100644 index ca907fcb4..000000000 --- a/sdk/constructive-react/src/public/orm/skills/currentUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUser - - - -Execute the currentUser query - -## Usage - -```typescript -db.query.currentUser().execute() -``` - -## Examples - -### Run currentUser - -```typescript -const result = await db.query.currentUser().execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/currentUserAgent.md b/sdk/constructive-react/src/public/orm/skills/currentUserAgent.md deleted file mode 100644 index e5ba1e850..000000000 --- a/sdk/constructive-react/src/public/orm/skills/currentUserAgent.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserAgent - - - -Execute the currentUserAgent query - -## Usage - -```typescript -db.query.currentUserAgent().execute() -``` - -## Examples - -### Run currentUserAgent - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/currentUserId.md b/sdk/constructive-react/src/public/orm/skills/currentUserId.md deleted file mode 100644 index c27ebc8c5..000000000 --- a/sdk/constructive-react/src/public/orm/skills/currentUserId.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserId - - - -Execute the currentUserId query - -## Usage - -```typescript -db.query.currentUserId().execute() -``` - -## Examples - -### Run currentUserId - -```typescript -const result = await db.query.currentUserId().execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/database.md b/sdk/constructive-react/src/public/orm/skills/database.md deleted file mode 100644 index cc4593c1d..000000000 --- a/sdk/constructive-react/src/public/orm/skills/database.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-database - - - -ORM operations for Database records - -## Usage - -```typescript -db.database.findMany({ select: { id: true } }).execute() -db.database.findOne({ id: '', select: { id: true } }).execute() -db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute() -db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.database.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all database records - -```typescript -const items = await db.database.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a database - -```typescript -const item = await db.database.create({ - data: { ownerId: 'value', schemaHash: 'value', name: 'value', label: 'value', hash: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md b/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md deleted file mode 100644 index 89a929c4f..000000000 --- a/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-databaseProvisionModule - - - -Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. - -## Usage - -```typescript -db.databaseProvisionModule.findMany({ select: { id: true } }).execute() -db.databaseProvisionModule.findOne({ id: '', select: { id: true } }).execute() -db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute() -db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute() -db.databaseProvisionModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all databaseProvisionModule records - -```typescript -const items = await db.databaseProvisionModule.findMany({ - select: { id: true, databaseName: true } -}).execute(); -``` - -### Create a databaseProvisionModule - -```typescript -const item = await db.databaseProvisionModule.create({ - data: { databaseName: 'value', ownerId: 'value', subdomain: 'value', domain: 'value', modules: 'value', options: 'value', bootstrapUser: 'value', status: 'value', errorMessage: 'value', databaseId: 'value', completedAt: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/defaultIdsModule.md b/sdk/constructive-react/src/public/orm/skills/defaultIdsModule.md deleted file mode 100644 index 23189ab90..000000000 --- a/sdk/constructive-react/src/public/orm/skills/defaultIdsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-defaultIdsModule - - - -ORM operations for DefaultIdsModule records - -## Usage - -```typescript -db.defaultIdsModule.findMany({ select: { id: true } }).execute() -db.defaultIdsModule.findOne({ id: '', select: { id: true } }).execute() -db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute() -db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.defaultIdsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all defaultIdsModule records - -```typescript -const items = await db.defaultIdsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a defaultIdsModule - -```typescript -const item = await db.defaultIdsModule.create({ - data: { databaseId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/denormalizedTableField.md b/sdk/constructive-react/src/public/orm/skills/denormalizedTableField.md deleted file mode 100644 index 4d81ed52e..000000000 --- a/sdk/constructive-react/src/public/orm/skills/denormalizedTableField.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-denormalizedTableField - - - -ORM operations for DenormalizedTableField records - -## Usage - -```typescript -db.denormalizedTableField.findMany({ select: { id: true } }).execute() -db.denormalizedTableField.findOne({ id: '', select: { id: true } }).execute() -db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute() -db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.denormalizedTableField.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all denormalizedTableField records - -```typescript -const items = await db.denormalizedTableField.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a denormalizedTableField - -```typescript -const item = await db.denormalizedTableField.create({ - data: { databaseId: 'value', tableId: 'value', fieldId: 'value', setIds: 'value', refTableId: 'value', refFieldId: 'value', refIds: 'value', useUpdates: 'value', updateDefaults: 'value', funcName: 'value', funcOrder: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/domain.md b/sdk/constructive-react/src/public/orm/skills/domain.md deleted file mode 100644 index 382a92135..000000000 --- a/sdk/constructive-react/src/public/orm/skills/domain.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-domain - - - -ORM operations for Domain records - -## Usage - -```typescript -db.domain.findMany({ select: { id: true } }).execute() -db.domain.findOne({ id: '', select: { id: true } }).execute() -db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute() -db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.domain.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all domain records - -```typescript -const items = await db.domain.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a domain - -```typescript -const item = await db.domain.create({ - data: { databaseId: 'value', apiId: 'value', siteId: 'value', subdomain: 'value', domain: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/email.md b/sdk/constructive-react/src/public/orm/skills/email.md deleted file mode 100644 index 9bc21e74f..000000000 --- a/sdk/constructive-react/src/public/orm/skills/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-email - - - -ORM operations for Email records - -## Usage - -```typescript -db.email.findMany({ select: { id: true } }).execute() -db.email.findOne({ id: '', select: { id: true } }).execute() -db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.email.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all email records - -```typescript -const items = await db.email.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a email - -```typescript -const item = await db.email.create({ - data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/emailsModule.md b/sdk/constructive-react/src/public/orm/skills/emailsModule.md deleted file mode 100644 index 2634c1661..000000000 --- a/sdk/constructive-react/src/public/orm/skills/emailsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-emailsModule - - - -ORM operations for EmailsModule records - -## Usage - -```typescript -db.emailsModule.findMany({ select: { id: true } }).execute() -db.emailsModule.findOne({ id: '', select: { id: true } }).execute() -db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.emailsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all emailsModule records - -```typescript -const items = await db.emailsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a emailsModule - -```typescript -const item = await db.emailsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/encryptedSecretsModule.md b/sdk/constructive-react/src/public/orm/skills/encryptedSecretsModule.md deleted file mode 100644 index af02ae8c9..000000000 --- a/sdk/constructive-react/src/public/orm/skills/encryptedSecretsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-encryptedSecretsModule - - - -ORM operations for EncryptedSecretsModule records - -## Usage - -```typescript -db.encryptedSecretsModule.findMany({ select: { id: true } }).execute() -db.encryptedSecretsModule.findOne({ id: '', select: { id: true } }).execute() -db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.encryptedSecretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all encryptedSecretsModule records - -```typescript -const items = await db.encryptedSecretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a encryptedSecretsModule - -```typescript -const item = await db.encryptedSecretsModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/extendTokenExpires.md b/sdk/constructive-react/src/public/orm/skills/extendTokenExpires.md deleted file mode 100644 index d587afacb..000000000 --- a/sdk/constructive-react/src/public/orm/skills/extendTokenExpires.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-extendTokenExpires - - - -Execute the extendTokenExpires mutation - -## Usage - -```typescript -db.mutation.extendTokenExpires({ input: '' }).execute() -``` - -## Examples - -### Run extendTokenExpires - -```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/field.md b/sdk/constructive-react/src/public/orm/skills/field.md deleted file mode 100644 index e22588cfc..000000000 --- a/sdk/constructive-react/src/public/orm/skills/field.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-field - - - -ORM operations for Field records - -## Usage - -```typescript -db.field.findMany({ select: { id: true } }).execute() -db.field.findOne({ id: '', select: { id: true } }).execute() -db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute() -db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.field.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all field records - -```typescript -const items = await db.field.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a field - -```typescript -const item = await db.field.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', isRequired: 'value', defaultValue: 'value', defaultValueAst: 'value', isHidden: 'value', type: 'value', fieldOrder: 'value', regexp: 'value', chk: 'value', chkExpr: 'value', min: 'value', max: 'value', tags: 'value', category: 'value', module: 'value', scope: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/fieldModule.md b/sdk/constructive-react/src/public/orm/skills/fieldModule.md deleted file mode 100644 index c4cbbbce9..000000000 --- a/sdk/constructive-react/src/public/orm/skills/fieldModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-fieldModule - - - -ORM operations for FieldModule records - -## Usage - -```typescript -db.fieldModule.findMany({ select: { id: true } }).execute() -db.fieldModule.findOne({ id: '', select: { id: true } }).execute() -db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute() -db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.fieldModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all fieldModule records - -```typescript -const items = await db.fieldModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a fieldModule - -```typescript -const item = await db.fieldModule.create({ - data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', fieldId: 'value', nodeType: 'value', data: 'value', triggers: 'value', functions: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/foreignKeyConstraint.md b/sdk/constructive-react/src/public/orm/skills/foreignKeyConstraint.md deleted file mode 100644 index fa445e8f4..000000000 --- a/sdk/constructive-react/src/public/orm/skills/foreignKeyConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-foreignKeyConstraint - - - -ORM operations for ForeignKeyConstraint records - -## Usage - -```typescript -db.foreignKeyConstraint.findMany({ select: { id: true } }).execute() -db.foreignKeyConstraint.findOne({ id: '', select: { id: true } }).execute() -db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.foreignKeyConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all foreignKeyConstraint records - -```typescript -const items = await db.foreignKeyConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a foreignKeyConstraint - -```typescript -const item = await db.foreignKeyConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', refTableId: 'value', refFieldIds: 'value', deleteAction: 'value', updateAction: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/forgotPassword.md b/sdk/constructive-react/src/public/orm/skills/forgotPassword.md deleted file mode 100644 index 38c59f662..000000000 --- a/sdk/constructive-react/src/public/orm/skills/forgotPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-forgotPassword - - - -Execute the forgotPassword mutation - -## Usage - -```typescript -db.mutation.forgotPassword({ input: '' }).execute() -``` - -## Examples - -### Run forgotPassword - -```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/freezeObjects.md b/sdk/constructive-react/src/public/orm/skills/freezeObjects.md deleted file mode 100644 index b3f195547..000000000 --- a/sdk/constructive-react/src/public/orm/skills/freezeObjects.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```typescript -db.mutation.freezeObjects({ input: '' }).execute() -``` - -## Examples - -### Run freezeObjects - -```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/fullTextSearch.md b/sdk/constructive-react/src/public/orm/skills/fullTextSearch.md deleted file mode 100644 index 996c517da..000000000 --- a/sdk/constructive-react/src/public/orm/skills/fullTextSearch.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-fullTextSearch - - - -ORM operations for FullTextSearch records - -## Usage - -```typescript -db.fullTextSearch.findMany({ select: { id: true } }).execute() -db.fullTextSearch.findOne({ id: '', select: { id: true } }).execute() -db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute() -db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.fullTextSearch.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all fullTextSearch records - -```typescript -const items = await db.fullTextSearch.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a fullTextSearch - -```typescript -const item = await db.fullTextSearch.create({ - data: { databaseId: 'value', tableId: 'value', fieldId: 'value', fieldIds: 'value', weights: 'value', langs: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/getAllObjectsFromRoot.md b/sdk/constructive-react/src/public/orm/skills/getAllObjectsFromRoot.md deleted file mode 100644 index 71c5db4db..000000000 --- a/sdk/constructive-react/src/public/orm/skills/getAllObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getAllObjectsFromRoot - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/getAllRecord.md b/sdk/constructive-react/src/public/orm/skills/getAllRecord.md deleted file mode 100644 index 9c61daad2..000000000 --- a/sdk/constructive-react/src/public/orm/skills/getAllRecord.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-getAllRecord - - - -ORM operations for GetAllRecord records - -## Usage - -```typescript -db.getAllRecord.findMany({ select: { id: true } }).execute() -db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() -db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() -db.getAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all getAllRecord records - -```typescript -const items = await db.getAllRecord.findMany({ - select: { id: true, path: true } -}).execute(); -``` - -### Create a getAllRecord - -```typescript -const item = await db.getAllRecord.create({ - data: { path: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/getObjectAtPath.md b/sdk/constructive-react/src/public/orm/skills/getObjectAtPath.md deleted file mode 100644 index 820b6d5fc..000000000 --- a/sdk/constructive-react/src/public/orm/skills/getObjectAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() -``` - -## Examples - -### Run getObjectAtPath - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/getPathObjectsFromRoot.md b/sdk/constructive-react/src/public/orm/skills/getPathObjectsFromRoot.md deleted file mode 100644 index 954943d90..000000000 --- a/sdk/constructive-react/src/public/orm/skills/getPathObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getPathObjectsFromRoot - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/hierarchyModule.md b/sdk/constructive-react/src/public/orm/skills/hierarchyModule.md deleted file mode 100644 index c6ba413a2..000000000 --- a/sdk/constructive-react/src/public/orm/skills/hierarchyModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-hierarchyModule - - - -ORM operations for HierarchyModule records - -## Usage - -```typescript -db.hierarchyModule.findMany({ select: { id: true } }).execute() -db.hierarchyModule.findOne({ id: '', select: { id: true } }).execute() -db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute() -db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.hierarchyModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all hierarchyModule records - -```typescript -const items = await db.hierarchyModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a hierarchyModule - -```typescript -const item = await db.hierarchyModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', chartEdgesTableId: 'value', chartEdgesTableName: 'value', hierarchySprtTableId: 'value', hierarchySprtTableName: 'value', chartEdgeGrantsTableId: 'value', chartEdgeGrantsTableName: 'value', entityTableId: 'value', usersTableId: 'value', prefix: 'value', privateSchemaName: 'value', sprtTableName: 'value', rebuildHierarchyFunction: 'value', getSubordinatesFunction: 'value', getManagersFunction: 'value', isManagerOfFunction: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/index.md b/sdk/constructive-react/src/public/orm/skills/index.md deleted file mode 100644 index 0a848a2e1..000000000 --- a/sdk/constructive-react/src/public/orm/skills/index.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-index - - - -ORM operations for Index records - -## Usage - -```typescript -db.index.findMany({ select: { id: true } }).execute() -db.index.findOne({ id: '', select: { id: true } }).execute() -db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.index.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all index records - -```typescript -const items = await db.index.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a index - -```typescript -const item = await db.index.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', fieldIds: 'value', includeFieldIds: 'value', accessMethod: 'value', indexParams: 'value', whereClause: 'value', isUnique: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/initEmptyRepo.md b/sdk/constructive-react/src/public/orm/skills/initEmptyRepo.md deleted file mode 100644 index 43a46841f..000000000 --- a/sdk/constructive-react/src/public/orm/skills/initEmptyRepo.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-initEmptyRepo - - - -Execute the initEmptyRepo mutation - -## Usage - -```typescript -db.mutation.initEmptyRepo({ input: '' }).execute() -``` - -## Examples - -### Run initEmptyRepo - -```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/insertNodeAtPath.md b/sdk/constructive-react/src/public/orm/skills/insertNodeAtPath.md deleted file mode 100644 index 2e9db15a0..000000000 --- a/sdk/constructive-react/src/public/orm/skills/insertNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-insertNodeAtPath - - - -Execute the insertNodeAtPath mutation - -## Usage - -```typescript -db.mutation.insertNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run insertNodeAtPath - -```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/invite.md b/sdk/constructive-react/src/public/orm/skills/invite.md deleted file mode 100644 index 727a2107e..000000000 --- a/sdk/constructive-react/src/public/orm/skills/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-invite - - - -ORM operations for Invite records - -## Usage - -```typescript -db.invite.findMany({ select: { id: true } }).execute() -db.invite.findOne({ id: '', select: { id: true } }).execute() -db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() -db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.invite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invite records - -```typescript -const items = await db.invite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a invite - -```typescript -const item = await db.invite.create({ - data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/invitesModule.md b/sdk/constructive-react/src/public/orm/skills/invitesModule.md deleted file mode 100644 index 64bdeacaa..000000000 --- a/sdk/constructive-react/src/public/orm/skills/invitesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-invitesModule - - - -ORM operations for InvitesModule records - -## Usage - -```typescript -db.invitesModule.findMany({ select: { id: true } }).execute() -db.invitesModule.findOne({ id: '', select: { id: true } }).execute() -db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute() -db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.invitesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invitesModule records - -```typescript -const items = await db.invitesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a invitesModule - -```typescript -const item = await db.invitesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', emailsTableId: 'value', usersTableId: 'value', invitesTableId: 'value', claimedInvitesTableId: 'value', invitesTableName: 'value', claimedInvitesTableName: 'value', submitInviteCodeFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/levelsModule.md b/sdk/constructive-react/src/public/orm/skills/levelsModule.md deleted file mode 100644 index 50a907813..000000000 --- a/sdk/constructive-react/src/public/orm/skills/levelsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-levelsModule - - - -ORM operations for LevelsModule records - -## Usage - -```typescript -db.levelsModule.findMany({ select: { id: true } }).execute() -db.levelsModule.findOne({ id: '', select: { id: true } }).execute() -db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() -db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.levelsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all levelsModule records - -```typescript -const items = await db.levelsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a levelsModule - -```typescript -const item = await db.levelsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', stepsTableId: 'value', stepsTableName: 'value', achievementsTableId: 'value', achievementsTableName: 'value', levelsTableId: 'value', levelsTableName: 'value', levelRequirementsTableId: 'value', levelRequirementsTableName: 'value', completedStep: 'value', incompletedStep: 'value', tgAchievement: 'value', tgAchievementToggle: 'value', tgAchievementToggleBoolean: 'value', tgAchievementBoolean: 'value', upsertAchievement: 'value', tgUpdateAchievements: 'value', stepsRequired: 'value', levelAchieved: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/limitFunction.md b/sdk/constructive-react/src/public/orm/skills/limitFunction.md deleted file mode 100644 index 7db5044ee..000000000 --- a/sdk/constructive-react/src/public/orm/skills/limitFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-limitFunction - - - -ORM operations for LimitFunction records - -## Usage - -```typescript -db.limitFunction.findMany({ select: { id: true } }).execute() -db.limitFunction.findOne({ id: '', select: { id: true } }).execute() -db.limitFunction.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }, select: { id: true } }).execute() -db.limitFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.limitFunction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all limitFunction records - -```typescript -const items = await db.limitFunction.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a limitFunction - -```typescript -const item = await db.limitFunction.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', data: 'value', security: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/limitsModule.md b/sdk/constructive-react/src/public/orm/skills/limitsModule.md deleted file mode 100644 index 6f9cccea1..000000000 --- a/sdk/constructive-react/src/public/orm/skills/limitsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-limitsModule - - - -ORM operations for LimitsModule records - -## Usage - -```typescript -db.limitsModule.findMany({ select: { id: true } }).execute() -db.limitsModule.findOne({ id: '', select: { id: true } }).execute() -db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() -db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.limitsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all limitsModule records - -```typescript -const items = await db.limitsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a limitsModule - -```typescript -const item = await db.limitsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', limitIncrementFunction: 'value', limitDecrementFunction: 'value', limitIncrementTrigger: 'value', limitDecrementTrigger: 'value', limitUpdateTrigger: 'value', limitCheckFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/membershipType.md b/sdk/constructive-react/src/public/orm/skills/membershipType.md deleted file mode 100644 index 898d85107..000000000 --- a/sdk/constructive-react/src/public/orm/skills/membershipType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipType - - - -ORM operations for MembershipType records - -## Usage - -```typescript -db.membershipType.findMany({ select: { id: true } }).execute() -db.membershipType.findOne({ id: '', select: { id: true } }).execute() -db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() -db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.membershipType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipType records - -```typescript -const items = await db.membershipType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a membershipType - -```typescript -const item = await db.membershipType.create({ - data: { name: 'value', description: 'value', prefix: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/membershipTypesModule.md b/sdk/constructive-react/src/public/orm/skills/membershipTypesModule.md deleted file mode 100644 index 17b77bb4b..000000000 --- a/sdk/constructive-react/src/public/orm/skills/membershipTypesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipTypesModule - - - -ORM operations for MembershipTypesModule records - -## Usage - -```typescript -db.membershipTypesModule.findMany({ select: { id: true } }).execute() -db.membershipTypesModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.membershipTypesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipTypesModule records - -```typescript -const items = await db.membershipTypesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a membershipTypesModule - -```typescript -const item = await db.membershipTypesModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/membershipsModule.md b/sdk/constructive-react/src/public/orm/skills/membershipsModule.md deleted file mode 100644 index 6851144a5..000000000 --- a/sdk/constructive-react/src/public/orm/skills/membershipsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipsModule - - - -ORM operations for MembershipsModule records - -## Usage - -```typescript -db.membershipsModule.findMany({ select: { id: true } }).execute() -db.membershipsModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }, select: { id: true } }).execute() -db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.membershipsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipsModule records - -```typescript -const items = await db.membershipsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a membershipsModule - -```typescript -const item = await db.membershipsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', membershipsTableId: 'value', membershipsTableName: 'value', membersTableId: 'value', membersTableName: 'value', membershipDefaultsTableId: 'value', membershipDefaultsTableName: 'value', grantsTableId: 'value', grantsTableName: 'value', actorTableId: 'value', limitsTableId: 'value', defaultLimitsTableId: 'value', permissionsTableId: 'value', defaultPermissionsTableId: 'value', sprtTableId: 'value', adminGrantsTableId: 'value', adminGrantsTableName: 'value', ownerGrantsTableId: 'value', ownerGrantsTableName: 'value', membershipType: 'value', entityTableId: 'value', entityTableOwnerId: 'value', prefix: 'value', actorMaskCheck: 'value', actorPermCheck: 'value', entityIdsByMask: 'value', entityIdsByPerm: 'value', entityIdsFunction: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md b/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md deleted file mode 100644 index 0024949c1..000000000 --- a/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-nodeTypeRegistry - - - -Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). - -## Usage - -```typescript -db.nodeTypeRegistry.findMany({ select: { id: true } }).execute() -db.nodeTypeRegistry.findOne({ name: '', select: { id: true } }).execute() -db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { id: true } }).execute() -db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { id: true } }).execute() -db.nodeTypeRegistry.delete({ where: { name: '' } }).execute() -``` - -## Examples - -### List all nodeTypeRegistry records - -```typescript -const items = await db.nodeTypeRegistry.findMany({ - select: { name: true, slug: true } -}).execute(); -``` - -### Create a nodeTypeRegistry - -```typescript -const item = await db.nodeTypeRegistry.create({ - data: { slug: 'value', category: 'value', displayName: 'value', description: 'value', parameterSchema: 'value', tags: 'value' }, - select: { name: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/object.md b/sdk/constructive-react/src/public/orm/skills/object.md deleted file mode 100644 index e006a0b5a..000000000 --- a/sdk/constructive-react/src/public/orm/skills/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-object - - - -ORM operations for Object records - -## Usage - -```typescript -db.object.findMany({ select: { id: true } }).execute() -db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() -db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() -db.object.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all object records - -```typescript -const items = await db.object.findMany({ - select: { id: true, hashUuid: true } -}).execute(); -``` - -### Create a object - -```typescript -const item = await db.object.create({ - data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/oneTimeToken.md b/sdk/constructive-react/src/public/orm/skills/oneTimeToken.md deleted file mode 100644 index 2ac3f962d..000000000 --- a/sdk/constructive-react/src/public/orm/skills/oneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```typescript -db.mutation.oneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run oneTimeToken - -```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgAdminGrant.md b/sdk/constructive-react/src/public/orm/skills/orgAdminGrant.md deleted file mode 100644 index 675b76741..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgAdminGrant - - - -ORM operations for OrgAdminGrant records - -## Usage - -```typescript -db.orgAdminGrant.findMany({ select: { id: true } }).execute() -db.orgAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgAdminGrant records - -```typescript -const items = await db.orgAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgAdminGrant - -```typescript -const item = await db.orgAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgClaimedInvite.md b/sdk/constructive-react/src/public/orm/skills/orgClaimedInvite.md deleted file mode 100644 index 5693e2856..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgClaimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgClaimedInvite - - - -ORM operations for OrgClaimedInvite records - -## Usage - -```typescript -db.orgClaimedInvite.findMany({ select: { id: true } }).execute() -db.orgClaimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgClaimedInvite records - -```typescript -const items = await db.orgClaimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a orgClaimedInvite - -```typescript -const item = await db.orgClaimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgGrant.md b/sdk/constructive-react/src/public/orm/skills/orgGrant.md deleted file mode 100644 index ac4c4b896..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgGrant - - - -ORM operations for OrgGrant records - -## Usage - -```typescript -db.orgGrant.findMany({ select: { id: true } }).execute() -db.orgGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgGrant records - -```typescript -const items = await db.orgGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgGrant - -```typescript -const item = await db.orgGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgInvite.md b/sdk/constructive-react/src/public/orm/skills/orgInvite.md deleted file mode 100644 index ea7ff346d..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgInvite - - - -ORM operations for OrgInvite records - -## Usage - -```typescript -db.orgInvite.findMany({ select: { id: true } }).execute() -db.orgInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() -db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.orgInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgInvite records - -```typescript -const items = await db.orgInvite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a orgInvite - -```typescript -const item = await db.orgInvite.create({ - data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgLimit.md b/sdk/constructive-react/src/public/orm/skills/orgLimit.md deleted file mode 100644 index 19681fddf..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimit - - - -ORM operations for OrgLimit records - -## Usage - -```typescript -db.orgLimit.findMany({ select: { id: true } }).execute() -db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() -db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimit records - -```typescript -const items = await db.orgLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimit - -```typescript -const item = await db.orgLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgLimitDefault.md b/sdk/constructive-react/src/public/orm/skills/orgLimitDefault.md deleted file mode 100644 index 4a4e505bd..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimitDefault - - - -ORM operations for OrgLimitDefault records - -## Usage - -```typescript -db.orgLimitDefault.findMany({ select: { id: true } }).execute() -db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitDefault records - -```typescript -const items = await db.orgLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitDefault - -```typescript -const item = await db.orgLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgMember.md b/sdk/constructive-react/src/public/orm/skills/orgMember.md deleted file mode 100644 index 2aadbafd3..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgMember.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMember - - - -ORM operations for OrgMember records - -## Usage - -```typescript -db.orgMember.findMany({ select: { id: true } }).execute() -db.orgMember.findOne({ id: '', select: { id: true } }).execute() -db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() -db.orgMember.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMember records - -```typescript -const items = await db.orgMember.findMany({ - select: { id: true, isAdmin: true } -}).execute(); -``` - -### Create a orgMember - -```typescript -const item = await db.orgMember.create({ - data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgMembership.md b/sdk/constructive-react/src/public/orm/skills/orgMembership.md deleted file mode 100644 index b98b850b2..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembership - - - -ORM operations for OrgMembership records - -## Usage - -```typescript -db.orgMembership.findMany({ select: { id: true } }).execute() -db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembership records - -```typescript -const items = await db.orgMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembership - -```typescript -const item = await db.orgMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgMembershipDefault.md b/sdk/constructive-react/src/public/orm/skills/orgMembershipDefault.md deleted file mode 100644 index cd8146f14..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembershipDefault - - - -ORM operations for OrgMembershipDefault records - -## Usage - -```typescript -db.orgMembershipDefault.findMany({ select: { id: true } }).execute() -db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembershipDefault records - -```typescript -const items = await db.orgMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembershipDefault - -```typescript -const item = await db.orgMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgOwnerGrant.md b/sdk/constructive-react/src/public/orm/skills/orgOwnerGrant.md deleted file mode 100644 index 8a490261b..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgOwnerGrant - - - -ORM operations for OrgOwnerGrant records - -## Usage - -```typescript -db.orgOwnerGrant.findMany({ select: { id: true } }).execute() -db.orgOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgOwnerGrant records - -```typescript -const items = await db.orgOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgOwnerGrant - -```typescript -const item = await db.orgOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermission.md b/sdk/constructive-react/src/public/orm/skills/orgPermission.md deleted file mode 100644 index 1f18add5d..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermission - - - -ORM operations for OrgPermission records - -## Usage - -```typescript -db.orgPermission.findMany({ select: { id: true } }).execute() -db.orgPermission.findOne({ id: '', select: { id: true } }).execute() -db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermission records - -```typescript -const items = await db.orgPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgPermission - -```typescript -const item = await db.orgPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionDefault.md b/sdk/constructive-react/src/public/orm/skills/orgPermissionDefault.md deleted file mode 100644 index 8d8e20afc..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermissionDefault - - - -ORM operations for OrgPermissionDefault records - -## Usage - -```typescript -db.orgPermissionDefault.findMany({ select: { id: true } }).execute() -db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefault records - -```typescript -const items = await db.orgPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgPermissionDefault - -```typescript -const item = await db.orgPermissionDefault.create({ - data: { permissions: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetByMask.md b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetByMask.md deleted file mode 100644 index 437f5c98b..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetByMask - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMask.md b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMask.md deleted file mode 100644 index c626883ad..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```typescript -db.query.orgPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMask - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMaskByNames.md deleted file mode 100644 index f67397dcc..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetPaddedMask.md deleted file mode 100644 index a67198a29..000000000 --- a/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/permissionsModule.md b/sdk/constructive-react/src/public/orm/skills/permissionsModule.md deleted file mode 100644 index 4b11e8d55..000000000 --- a/sdk/constructive-react/src/public/orm/skills/permissionsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-permissionsModule - - - -ORM operations for PermissionsModule records - -## Usage - -```typescript -db.permissionsModule.findMany({ select: { id: true } }).execute() -db.permissionsModule.findOne({ id: '', select: { id: true } }).execute() -db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute() -db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.permissionsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all permissionsModule records - -```typescript -const items = await db.permissionsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a permissionsModule - -```typescript -const item = await db.permissionsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', prefix: 'value', getPaddedMask: 'value', getMask: 'value', getByMask: 'value', getMaskByName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/phoneNumber.md b/sdk/constructive-react/src/public/orm/skills/phoneNumber.md deleted file mode 100644 index 2a77480fa..000000000 --- a/sdk/constructive-react/src/public/orm/skills/phoneNumber.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-phoneNumber - - - -ORM operations for PhoneNumber records - -## Usage - -```typescript -db.phoneNumber.findMany({ select: { id: true } }).execute() -db.phoneNumber.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.phoneNumber.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumber records - -```typescript -const items = await db.phoneNumber.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a phoneNumber - -```typescript -const item = await db.phoneNumber.create({ - data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/phoneNumbersModule.md b/sdk/constructive-react/src/public/orm/skills/phoneNumbersModule.md deleted file mode 100644 index 309f0bc88..000000000 --- a/sdk/constructive-react/src/public/orm/skills/phoneNumbersModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-phoneNumbersModule - - - -ORM operations for PhoneNumbersModule records - -## Usage - -```typescript -db.phoneNumbersModule.findMany({ select: { id: true } }).execute() -db.phoneNumbersModule.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.phoneNumbersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumbersModule records - -```typescript -const items = await db.phoneNumbersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a phoneNumbersModule - -```typescript -const item = await db.phoneNumbersModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/policy.md b/sdk/constructive-react/src/public/orm/skills/policy.md deleted file mode 100644 index c31b2d4dd..000000000 --- a/sdk/constructive-react/src/public/orm/skills/policy.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-policy - - - -ORM operations for Policy records - -## Usage - -```typescript -db.policy.findMany({ select: { id: true } }).execute() -db.policy.findOne({ id: '', select: { id: true } }).execute() -db.policy.create({ data: { databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.policy.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all policy records - -```typescript -const items = await db.policy.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a policy - -```typescript -const item = await db.policy.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', roleName: 'value', privilege: 'value', permissive: 'value', disabled: 'value', policyType: 'value', data: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/primaryKeyConstraint.md b/sdk/constructive-react/src/public/orm/skills/primaryKeyConstraint.md deleted file mode 100644 index 65e798742..000000000 --- a/sdk/constructive-react/src/public/orm/skills/primaryKeyConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-primaryKeyConstraint - - - -ORM operations for PrimaryKeyConstraint records - -## Usage - -```typescript -db.primaryKeyConstraint.findMany({ select: { id: true } }).execute() -db.primaryKeyConstraint.findOne({ id: '', select: { id: true } }).execute() -db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.primaryKeyConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all primaryKeyConstraint records - -```typescript -const items = await db.primaryKeyConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a primaryKeyConstraint - -```typescript -const item = await db.primaryKeyConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/procedure.md b/sdk/constructive-react/src/public/orm/skills/procedure.md deleted file mode 100644 index 838b474d3..000000000 --- a/sdk/constructive-react/src/public/orm/skills/procedure.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-procedure - - - -ORM operations for Procedure records - -## Usage - -```typescript -db.procedure.findMany({ select: { id: true } }).execute() -db.procedure.findOne({ id: '', select: { id: true } }).execute() -db.procedure.create({ data: { databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.procedure.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.procedure.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all procedure records - -```typescript -const items = await db.procedure.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a procedure - -```typescript -const item = await db.procedure.create({ - data: { databaseId: 'value', name: 'value', argnames: 'value', argtypes: 'value', argdefaults: 'value', langName: 'value', definition: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/profilesModule.md b/sdk/constructive-react/src/public/orm/skills/profilesModule.md deleted file mode 100644 index b6a9caa1a..000000000 --- a/sdk/constructive-react/src/public/orm/skills/profilesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-profilesModule - - - -ORM operations for ProfilesModule records - -## Usage - -```typescript -db.profilesModule.findMany({ select: { id: true } }).execute() -db.profilesModule.findOne({ id: '', select: { id: true } }).execute() -db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() -db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.profilesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all profilesModule records - -```typescript -const items = await db.profilesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a profilesModule - -```typescript -const item = await db.profilesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', profilePermissionsTableId: 'value', profilePermissionsTableName: 'value', profileGrantsTableId: 'value', profileGrantsTableName: 'value', profileDefinitionGrantsTableId: 'value', profileDefinitionGrantsTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', permissionsTableId: 'value', membershipsTableId: 'value', prefix: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/provisionDatabaseWithUser.md b/sdk/constructive-react/src/public/orm/skills/provisionDatabaseWithUser.md deleted file mode 100644 index 447ffb844..000000000 --- a/sdk/constructive-react/src/public/orm/skills/provisionDatabaseWithUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-provisionDatabaseWithUser - - - -Execute the provisionDatabaseWithUser mutation - -## Usage - -```typescript -db.mutation.provisionDatabaseWithUser({ input: '' }).execute() -``` - -## Examples - -### Run provisionDatabaseWithUser - -```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/ref.md b/sdk/constructive-react/src/public/orm/skills/ref.md deleted file mode 100644 index 3165ec41e..000000000 --- a/sdk/constructive-react/src/public/orm/skills/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -db.ref.findMany({ select: { id: true } }).execute() -db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() -db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.ref.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all ref records - -```typescript -const items = await db.ref.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a ref - -```typescript -const item = await db.ref.create({ - data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/removeNodeAtPath.md b/sdk/constructive-react/src/public/orm/skills/removeNodeAtPath.md deleted file mode 100644 index 116c41c0a..000000000 --- a/sdk/constructive-react/src/public/orm/skills/removeNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```typescript -db.mutation.removeNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run removeNodeAtPath - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/resetPassword.md b/sdk/constructive-react/src/public/orm/skills/resetPassword.md deleted file mode 100644 index fe676ada5..000000000 --- a/sdk/constructive-react/src/public/orm/skills/resetPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-resetPassword - - - -Execute the resetPassword mutation - -## Usage - -```typescript -db.mutation.resetPassword({ input: '' }).execute() -``` - -## Examples - -### Run resetPassword - -```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/revParse.md b/sdk/constructive-react/src/public/orm/skills/revParse.md deleted file mode 100644 index 0a1830ff8..000000000 --- a/sdk/constructive-react/src/public/orm/skills/revParse.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-revParse - - - -Execute the revParse query - -## Usage - -```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() -``` - -## Examples - -### Run revParse - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/rlsModule.md b/sdk/constructive-react/src/public/orm/skills/rlsModule.md deleted file mode 100644 index 2d97f0fe6..000000000 --- a/sdk/constructive-react/src/public/orm/skills/rlsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-rlsModule - - - -ORM operations for RlsModule records - -## Usage - -```typescript -db.rlsModule.findMany({ select: { id: true } }).execute() -db.rlsModule.findOne({ id: '', select: { id: true } }).execute() -db.rlsModule.create({ data: { databaseId: '', apiId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute() -db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.rlsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all rlsModule records - -```typescript -const items = await db.rlsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a rlsModule - -```typescript -const item = await db.rlsModule.create({ - data: { databaseId: 'value', apiId: 'value', schemaId: 'value', privateSchemaId: 'value', sessionCredentialsTableId: 'value', sessionsTableId: 'value', usersTableId: 'value', authenticate: 'value', authenticateStrict: 'value', currentRole: 'value', currentRoleId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/roleType.md b/sdk/constructive-react/src/public/orm/skills/roleType.md deleted file mode 100644 index 261296f03..000000000 --- a/sdk/constructive-react/src/public/orm/skills/roleType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-roleType - - - -ORM operations for RoleType records - -## Usage - -```typescript -db.roleType.findMany({ select: { id: true } }).execute() -db.roleType.findOne({ id: '', select: { id: true } }).execute() -db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() -db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.roleType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all roleType records - -```typescript -const items = await db.roleType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a roleType - -```typescript -const item = await db.roleType.create({ - data: { name: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/schema.md b/sdk/constructive-react/src/public/orm/skills/schema.md deleted file mode 100644 index d02fb12ca..000000000 --- a/sdk/constructive-react/src/public/orm/skills/schema.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-schema - - - -ORM operations for Schema records - -## Usage - -```typescript -db.schema.findMany({ select: { id: true } }).execute() -db.schema.findOne({ id: '', select: { id: true } }).execute() -db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute() -db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.schema.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all schema records - -```typescript -const items = await db.schema.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a schema - -```typescript -const item = await db.schema.create({ - data: { databaseId: 'value', name: 'value', schemaName: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value', isPublic: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/schemaGrant.md b/sdk/constructive-react/src/public/orm/skills/schemaGrant.md deleted file mode 100644 index 296f97ae4..000000000 --- a/sdk/constructive-react/src/public/orm/skills/schemaGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-schemaGrant - - - -ORM operations for SchemaGrant records - -## Usage - -```typescript -db.schemaGrant.findMany({ select: { id: true } }).execute() -db.schemaGrant.findOne({ id: '', select: { id: true } }).execute() -db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute() -db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.schemaGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all schemaGrant records - -```typescript -const items = await db.schemaGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a schemaGrant - -```typescript -const item = await db.schemaGrant.create({ - data: { databaseId: 'value', schemaId: 'value', granteeName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/secretsModule.md b/sdk/constructive-react/src/public/orm/skills/secretsModule.md deleted file mode 100644 index e2e1a03a7..000000000 --- a/sdk/constructive-react/src/public/orm/skills/secretsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-secretsModule - - - -ORM operations for SecretsModule records - -## Usage - -```typescript -db.secretsModule.findMany({ select: { id: true } }).execute() -db.secretsModule.findOne({ id: '', select: { id: true } }).execute() -db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.secretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all secretsModule records - -```typescript -const items = await db.secretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a secretsModule - -```typescript -const item = await db.secretsModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/sendAccountDeletionEmail.md b/sdk/constructive-react/src/public/orm/skills/sendAccountDeletionEmail.md deleted file mode 100644 index aaf0470b5..000000000 --- a/sdk/constructive-react/src/public/orm/skills/sendAccountDeletionEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendAccountDeletionEmail - - - -Execute the sendAccountDeletionEmail mutation - -## Usage - -```typescript -db.mutation.sendAccountDeletionEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendAccountDeletionEmail - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/sendVerificationEmail.md b/sdk/constructive-react/src/public/orm/skills/sendVerificationEmail.md deleted file mode 100644 index 2f0cfea9a..000000000 --- a/sdk/constructive-react/src/public/orm/skills/sendVerificationEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendVerificationEmail - - - -Execute the sendVerificationEmail mutation - -## Usage - -```typescript -db.mutation.sendVerificationEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendVerificationEmail - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/sessionsModule.md b/sdk/constructive-react/src/public/orm/skills/sessionsModule.md deleted file mode 100644 index df8c99266..000000000 --- a/sdk/constructive-react/src/public/orm/skills/sessionsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-sessionsModule - - - -ORM operations for SessionsModule records - -## Usage - -```typescript -db.sessionsModule.findMany({ select: { id: true } }).execute() -db.sessionsModule.findOne({ id: '', select: { id: true } }).execute() -db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute() -db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.sessionsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sessionsModule records - -```typescript -const items = await db.sessionsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a sessionsModule - -```typescript -const item = await db.sessionsModule.create({ - data: { databaseId: 'value', schemaId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', authSettingsTableId: 'value', usersTableId: 'value', sessionsDefaultExpiration: 'value', sessionsTable: 'value', sessionCredentialsTable: 'value', authSettingsTable: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/setAndCommit.md b/sdk/constructive-react/src/public/orm/skills/setAndCommit.md deleted file mode 100644 index a5fa6e0d9..000000000 --- a/sdk/constructive-react/src/public/orm/skills/setAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setAndCommit - - - -Execute the setAndCommit mutation - -## Usage - -```typescript -db.mutation.setAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setAndCommit - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/setDataAtPath.md b/sdk/constructive-react/src/public/orm/skills/setDataAtPath.md deleted file mode 100644 index 7f09dab97..000000000 --- a/sdk/constructive-react/src/public/orm/skills/setDataAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setDataAtPath - - - -Execute the setDataAtPath mutation - -## Usage - -```typescript -db.mutation.setDataAtPath({ input: '' }).execute() -``` - -## Examples - -### Run setDataAtPath - -```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/setFieldOrder.md b/sdk/constructive-react/src/public/orm/skills/setFieldOrder.md deleted file mode 100644 index 7a221b219..000000000 --- a/sdk/constructive-react/src/public/orm/skills/setFieldOrder.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setFieldOrder - - - -Execute the setFieldOrder mutation - -## Usage - -```typescript -db.mutation.setFieldOrder({ input: '' }).execute() -``` - -## Examples - -### Run setFieldOrder - -```typescript -const result = await db.mutation.setFieldOrder({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/setPassword.md b/sdk/constructive-react/src/public/orm/skills/setPassword.md deleted file mode 100644 index bbf15b68d..000000000 --- a/sdk/constructive-react/src/public/orm/skills/setPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPassword - - - -Execute the setPassword mutation - -## Usage - -```typescript -db.mutation.setPassword({ input: '' }).execute() -``` - -## Examples - -### Run setPassword - -```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/setPropsAndCommit.md b/sdk/constructive-react/src/public/orm/skills/setPropsAndCommit.md deleted file mode 100644 index 7248c0e1c..000000000 --- a/sdk/constructive-react/src/public/orm/skills/setPropsAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```typescript -db.mutation.setPropsAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setPropsAndCommit - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/signIn.md b/sdk/constructive-react/src/public/orm/skills/signIn.md deleted file mode 100644 index d49334136..000000000 --- a/sdk/constructive-react/src/public/orm/skills/signIn.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signIn - - - -Execute the signIn mutation - -## Usage - -```typescript -db.mutation.signIn({ input: '' }).execute() -``` - -## Examples - -### Run signIn - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/signInOneTimeToken.md b/sdk/constructive-react/src/public/orm/skills/signInOneTimeToken.md deleted file mode 100644 index 9a87fd088..000000000 --- a/sdk/constructive-react/src/public/orm/skills/signInOneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```typescript -db.mutation.signInOneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run signInOneTimeToken - -```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/signOut.md b/sdk/constructive-react/src/public/orm/skills/signOut.md deleted file mode 100644 index 7ada67374..000000000 --- a/sdk/constructive-react/src/public/orm/skills/signOut.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signOut - - - -Execute the signOut mutation - -## Usage - -```typescript -db.mutation.signOut({ input: '' }).execute() -``` - -## Examples - -### Run signOut - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/signUp.md b/sdk/constructive-react/src/public/orm/skills/signUp.md deleted file mode 100644 index 8c999d2b8..000000000 --- a/sdk/constructive-react/src/public/orm/skills/signUp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signUp - - - -Execute the signUp mutation - -## Usage - -```typescript -db.mutation.signUp({ input: '' }).execute() -``` - -## Examples - -### Run signUp - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/site.md b/sdk/constructive-react/src/public/orm/skills/site.md deleted file mode 100644 index 93aa35cdd..000000000 --- a/sdk/constructive-react/src/public/orm/skills/site.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-site - - - -ORM operations for Site records - -## Usage - -```typescript -db.site.findMany({ select: { id: true } }).execute() -db.site.findOne({ id: '', select: { id: true } }).execute() -db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute() -db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.site.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all site records - -```typescript -const items = await db.site.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a site - -```typescript -const item = await db.site.create({ - data: { databaseId: 'value', title: 'value', description: 'value', ogImage: 'value', favicon: 'value', appleTouchIcon: 'value', logo: 'value', dbname: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/siteMetadatum.md b/sdk/constructive-react/src/public/orm/skills/siteMetadatum.md deleted file mode 100644 index b1aaf8017..000000000 --- a/sdk/constructive-react/src/public/orm/skills/siteMetadatum.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-siteMetadatum - - - -ORM operations for SiteMetadatum records - -## Usage - -```typescript -db.siteMetadatum.findMany({ select: { id: true } }).execute() -db.siteMetadatum.findOne({ id: '', select: { id: true } }).execute() -db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute() -db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteMetadatum.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteMetadatum records - -```typescript -const items = await db.siteMetadatum.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteMetadatum - -```typescript -const item = await db.siteMetadatum.create({ - data: { databaseId: 'value', siteId: 'value', title: 'value', description: 'value', ogImage: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/siteModule.md b/sdk/constructive-react/src/public/orm/skills/siteModule.md deleted file mode 100644 index 94a650431..000000000 --- a/sdk/constructive-react/src/public/orm/skills/siteModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-siteModule - - - -ORM operations for SiteModule records - -## Usage - -```typescript -db.siteModule.findMany({ select: { id: true } }).execute() -db.siteModule.findOne({ id: '', select: { id: true } }).execute() -db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute() -db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteModule records - -```typescript -const items = await db.siteModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteModule - -```typescript -const item = await db.siteModule.create({ - data: { databaseId: 'value', siteId: 'value', name: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/siteTheme.md b/sdk/constructive-react/src/public/orm/skills/siteTheme.md deleted file mode 100644 index 4b58181c8..000000000 --- a/sdk/constructive-react/src/public/orm/skills/siteTheme.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-siteTheme - - - -ORM operations for SiteTheme records - -## Usage - -```typescript -db.siteTheme.findMany({ select: { id: true } }).execute() -db.siteTheme.findOne({ id: '', select: { id: true } }).execute() -db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute() -db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteTheme.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteTheme records - -```typescript -const items = await db.siteTheme.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteTheme - -```typescript -const item = await db.siteTheme.create({ - data: { databaseId: 'value', siteId: 'value', theme: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/sqlMigration.md b/sdk/constructive-react/src/public/orm/skills/sqlMigration.md deleted file mode 100644 index f02f86fd5..000000000 --- a/sdk/constructive-react/src/public/orm/skills/sqlMigration.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-sqlMigration - - - -ORM operations for SqlMigration records - -## Usage - -```typescript -db.sqlMigration.findMany({ select: { id: true } }).execute() -db.sqlMigration.findOne({ id: '', select: { id: true } }).execute() -db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() -db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.sqlMigration.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sqlMigration records - -```typescript -const items = await db.sqlMigration.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a sqlMigration - -```typescript -const item = await db.sqlMigration.create({ - data: { name: 'value', databaseId: 'value', deploy: 'value', deps: 'value', payload: 'value', content: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/stepsAchieved.md b/sdk/constructive-react/src/public/orm/skills/stepsAchieved.md deleted file mode 100644 index bce806fd4..000000000 --- a/sdk/constructive-react/src/public/orm/skills/stepsAchieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```typescript -db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() -``` - -## Examples - -### Run stepsAchieved - -```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/stepsRequired.md b/sdk/constructive-react/src/public/orm/skills/stepsRequired.md deleted file mode 100644 index 8ea0ad638..000000000 --- a/sdk/constructive-react/src/public/orm/skills/stepsRequired.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run stepsRequired - -```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/store.md b/sdk/constructive-react/src/public/orm/skills/store.md deleted file mode 100644 index 1a9bfc8a5..000000000 --- a/sdk/constructive-react/src/public/orm/skills/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -db.store.findMany({ select: { id: true } }).execute() -db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() -db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.store.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all store records - -```typescript -const items = await db.store.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a store - -```typescript -const item = await db.store.create({ - data: { name: 'value', databaseId: 'value', hash: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/submitInviteCode.md b/sdk/constructive-react/src/public/orm/skills/submitInviteCode.md deleted file mode 100644 index ae946fe75..000000000 --- a/sdk/constructive-react/src/public/orm/skills/submitInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```typescript -db.mutation.submitInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitInviteCode - -```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/submitOrgInviteCode.md b/sdk/constructive-react/src/public/orm/skills/submitOrgInviteCode.md deleted file mode 100644 index 0ceff0ee1..000000000 --- a/sdk/constructive-react/src/public/orm/skills/submitOrgInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitOrgInviteCode - - - -Execute the submitOrgInviteCode mutation - -## Usage - -```typescript -db.mutation.submitOrgInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitOrgInviteCode - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/table.md b/sdk/constructive-react/src/public/orm/skills/table.md deleted file mode 100644 index eae9607ea..000000000 --- a/sdk/constructive-react/src/public/orm/skills/table.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-table - - - -ORM operations for Table records - -## Usage - -```typescript -db.table.findMany({ select: { id: true } }).execute() -db.table.findOne({ id: '', select: { id: true } }).execute() -db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }, select: { id: true } }).execute() -db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.table.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all table records - -```typescript -const items = await db.table.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a table - -```typescript -const item = await db.table.create({ - data: { databaseId: 'value', schemaId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', useRls: 'value', timestamps: 'value', peoplestamps: 'value', pluralName: 'value', singularName: 'value', tags: 'value', inheritsId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/tableGrant.md b/sdk/constructive-react/src/public/orm/skills/tableGrant.md deleted file mode 100644 index e31fcb8ff..000000000 --- a/sdk/constructive-react/src/public/orm/skills/tableGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-tableGrant - - - -ORM operations for TableGrant records - -## Usage - -```typescript -db.tableGrant.findMany({ select: { id: true } }).execute() -db.tableGrant.findOne({ id: '', select: { id: true } }).execute() -db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute() -db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableGrant records - -```typescript -const items = await db.tableGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableGrant - -```typescript -const item = await db.tableGrant.create({ - data: { databaseId: 'value', tableId: 'value', privilege: 'value', roleName: 'value', fieldIds: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/tableModule.md b/sdk/constructive-react/src/public/orm/skills/tableModule.md deleted file mode 100644 index 38fa64d39..000000000 --- a/sdk/constructive-react/src/public/orm/skills/tableModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-tableModule - - - -ORM operations for TableModule records - -## Usage - -```typescript -db.tableModule.findMany({ select: { id: true } }).execute() -db.tableModule.findOne({ id: '', select: { id: true } }).execute() -db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute() -db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableModule records - -```typescript -const items = await db.tableModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableModule - -```typescript -const item = await db.tableModule.create({ - data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', nodeType: 'value', data: 'value', fields: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/tableTemplateModule.md b/sdk/constructive-react/src/public/orm/skills/tableTemplateModule.md deleted file mode 100644 index f829a0de9..000000000 --- a/sdk/constructive-react/src/public/orm/skills/tableTemplateModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-tableTemplateModule - - - -ORM operations for TableTemplateModule records - -## Usage - -```typescript -db.tableTemplateModule.findMany({ select: { id: true } }).execute() -db.tableTemplateModule.findOne({ id: '', select: { id: true } }).execute() -db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute() -db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableTemplateModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableTemplateModule records - -```typescript -const items = await db.tableTemplateModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableTemplateModule - -```typescript -const item = await db.tableTemplateModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', nodeType: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/trigger.md b/sdk/constructive-react/src/public/orm/skills/trigger.md deleted file mode 100644 index ef4d73ecc..000000000 --- a/sdk/constructive-react/src/public/orm/skills/trigger.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-trigger - - - -ORM operations for Trigger records - -## Usage - -```typescript -db.trigger.findMany({ select: { id: true } }).execute() -db.trigger.findOne({ id: '', select: { id: true } }).execute() -db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.trigger.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all trigger records - -```typescript -const items = await db.trigger.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a trigger - -```typescript -const item = await db.trigger.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', event: 'value', functionName: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/triggerFunction.md b/sdk/constructive-react/src/public/orm/skills/triggerFunction.md deleted file mode 100644 index 739e3f267..000000000 --- a/sdk/constructive-react/src/public/orm/skills/triggerFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-triggerFunction - - - -ORM operations for TriggerFunction records - -## Usage - -```typescript -db.triggerFunction.findMany({ select: { id: true } }).execute() -db.triggerFunction.findOne({ id: '', select: { id: true } }).execute() -db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute() -db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.triggerFunction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all triggerFunction records - -```typescript -const items = await db.triggerFunction.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a triggerFunction - -```typescript -const item = await db.triggerFunction.create({ - data: { databaseId: 'value', name: 'value', code: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/uniqueConstraint.md b/sdk/constructive-react/src/public/orm/skills/uniqueConstraint.md deleted file mode 100644 index 8724c6983..000000000 --- a/sdk/constructive-react/src/public/orm/skills/uniqueConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-uniqueConstraint - - - -ORM operations for UniqueConstraint records - -## Usage - -```typescript -db.uniqueConstraint.findMany({ select: { id: true } }).execute() -db.uniqueConstraint.findOne({ id: '', select: { id: true } }).execute() -db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.uniqueConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all uniqueConstraint records - -```typescript -const items = await db.uniqueConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a uniqueConstraint - -```typescript -const item = await db.uniqueConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/updateNodeAtPath.md b/sdk/constructive-react/src/public/orm/skills/updateNodeAtPath.md deleted file mode 100644 index d1a7bbf95..000000000 --- a/sdk/constructive-react/src/public/orm/skills/updateNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```typescript -db.mutation.updateNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run updateNodeAtPath - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/user.md b/sdk/constructive-react/src/public/orm/skills/user.md deleted file mode 100644 index e80b99583..000000000 --- a/sdk/constructive-react/src/public/orm/skills/user.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-user - - - -ORM operations for User records - -## Usage - -```typescript -db.user.findMany({ select: { id: true } }).execute() -db.user.findOne({ id: '', select: { id: true } }).execute() -db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() -db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() -db.user.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all user records - -```typescript -const items = await db.user.findMany({ - select: { id: true, username: true } -}).execute(); -``` - -### Create a user - -```typescript -const item = await db.user.create({ - data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/userAuthModule.md b/sdk/constructive-react/src/public/orm/skills/userAuthModule.md deleted file mode 100644 index 4b022d732..000000000 --- a/sdk/constructive-react/src/public/orm/skills/userAuthModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-userAuthModule - - - -ORM operations for UserAuthModule records - -## Usage - -```typescript -db.userAuthModule.findMany({ select: { id: true } }).execute() -db.userAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }, select: { id: true } }).execute() -db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.userAuthModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all userAuthModule records - -```typescript -const items = await db.userAuthModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a userAuthModule - -```typescript -const item = await db.userAuthModule.create({ - data: { databaseId: 'value', schemaId: 'value', emailsTableId: 'value', usersTableId: 'value', secretsTableId: 'value', encryptedTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', auditsTableId: 'value', auditsTableName: 'value', signInFunction: 'value', signUpFunction: 'value', signOutFunction: 'value', setPasswordFunction: 'value', resetPasswordFunction: 'value', forgotPasswordFunction: 'value', sendVerificationEmailFunction: 'value', verifyEmailFunction: 'value', verifyPasswordFunction: 'value', checkPasswordFunction: 'value', sendAccountDeletionEmailFunction: 'value', deleteAccountFunction: 'value', signInOneTimeTokenFunction: 'value', oneTimeTokenFunction: 'value', extendTokenExpires: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/usersModule.md b/sdk/constructive-react/src/public/orm/skills/usersModule.md deleted file mode 100644 index 320d49201..000000000 --- a/sdk/constructive-react/src/public/orm/skills/usersModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-usersModule - - - -ORM operations for UsersModule records - -## Usage - -```typescript -db.usersModule.findMany({ select: { id: true } }).execute() -db.usersModule.findOne({ id: '', select: { id: true } }).execute() -db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute() -db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.usersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all usersModule records - -```typescript -const items = await db.usersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a usersModule - -```typescript -const item = await db.usersModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value', typeTableId: 'value', typeTableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/uuidModule.md b/sdk/constructive-react/src/public/orm/skills/uuidModule.md deleted file mode 100644 index 3f2a19a32..000000000 --- a/sdk/constructive-react/src/public/orm/skills/uuidModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-uuidModule - - - -ORM operations for UuidModule records - -## Usage - -```typescript -db.uuidModule.findMany({ select: { id: true } }).execute() -db.uuidModule.findOne({ id: '', select: { id: true } }).execute() -db.uuidModule.create({ data: { databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '' }, select: { id: true } }).execute() -db.uuidModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.uuidModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all uuidModule records - -```typescript -const items = await db.uuidModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a uuidModule - -```typescript -const item = await db.uuidModule.create({ - data: { databaseId: 'value', schemaId: 'value', uuidFunction: 'value', uuidSeed: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/verifyEmail.md b/sdk/constructive-react/src/public/orm/skills/verifyEmail.md deleted file mode 100644 index c9a3f4ac1..000000000 --- a/sdk/constructive-react/src/public/orm/skills/verifyEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyEmail - - - -Execute the verifyEmail mutation - -## Usage - -```typescript -db.mutation.verifyEmail({ input: '' }).execute() -``` - -## Examples - -### Run verifyEmail - -```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/verifyPassword.md b/sdk/constructive-react/src/public/orm/skills/verifyPassword.md deleted file mode 100644 index 10b75c518..000000000 --- a/sdk/constructive-react/src/public/orm/skills/verifyPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyPassword - - - -Execute the verifyPassword mutation - -## Usage - -```typescript -db.mutation.verifyPassword({ input: '' }).execute() -``` - -## Examples - -### Run verifyPassword - -```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/verifyTotp.md b/sdk/constructive-react/src/public/orm/skills/verifyTotp.md deleted file mode 100644 index 5541069f3..000000000 --- a/sdk/constructive-react/src/public/orm/skills/verifyTotp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyTotp - - - -Execute the verifyTotp mutation - -## Usage - -```typescript -db.mutation.verifyTotp({ input: '' }).execute() -``` - -## Examples - -### Run verifyTotp - -```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/view.md b/sdk/constructive-react/src/public/orm/skills/view.md deleted file mode 100644 index c2db2a347..000000000 --- a/sdk/constructive-react/src/public/orm/skills/view.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-view - - - -ORM operations for View records - -## Usage - -```typescript -db.view.findMany({ select: { id: true } }).execute() -db.view.findOne({ id: '', select: { id: true } }).execute() -db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.view.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all view records - -```typescript -const items = await db.view.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a view - -```typescript -const item = await db.view.create({ - data: { databaseId: 'value', schemaId: 'value', name: 'value', tableId: 'value', viewType: 'value', data: 'value', filterType: 'value', filterData: 'value', securityInvoker: 'value', isReadOnly: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/viewGrant.md b/sdk/constructive-react/src/public/orm/skills/viewGrant.md deleted file mode 100644 index 062399792..000000000 --- a/sdk/constructive-react/src/public/orm/skills/viewGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-viewGrant - - - -ORM operations for ViewGrant records - -## Usage - -```typescript -db.viewGrant.findMany({ select: { id: true } }).execute() -db.viewGrant.findOne({ id: '', select: { id: true } }).execute() -db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute() -db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.viewGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewGrant records - -```typescript -const items = await db.viewGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a viewGrant - -```typescript -const item = await db.viewGrant.create({ - data: { databaseId: 'value', viewId: 'value', roleName: 'value', privilege: 'value', withGrantOption: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/viewRule.md b/sdk/constructive-react/src/public/orm/skills/viewRule.md deleted file mode 100644 index e6bd8f1ab..000000000 --- a/sdk/constructive-react/src/public/orm/skills/viewRule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-viewRule - - - -DO INSTEAD rules for views (e.g., read-only enforcement) - -## Usage - -```typescript -db.viewRule.findMany({ select: { id: true } }).execute() -db.viewRule.findOne({ id: '', select: { id: true } }).execute() -db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute() -db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.viewRule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewRule records - -```typescript -const items = await db.viewRule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a viewRule - -```typescript -const item = await db.viewRule.create({ - data: { databaseId: 'value', viewId: 'value', name: 'value', event: 'value', action: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/orm/skills/viewTable.md b/sdk/constructive-react/src/public/orm/skills/viewTable.md deleted file mode 100644 index d3adc9f0e..000000000 --- a/sdk/constructive-react/src/public/orm/skills/viewTable.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-viewTable - - - -Junction table linking views to their joined tables for referential integrity - -## Usage - -```typescript -db.viewTable.findMany({ select: { id: true } }).execute() -db.viewTable.findOne({ id: '', select: { id: true } }).execute() -db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute() -db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute() -db.viewTable.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewTable records - -```typescript -const items = await db.viewTable.findMany({ - select: { id: true, viewId: true } -}).execute(); -``` - -### Create a viewTable - -```typescript -const item = await db.viewTable.create({ - data: { viewId: 'value', tableId: 'value', joinOrder: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index 26e9be0bd..211a47a11 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -35,6 +35,7 @@ import type { Database, DatabaseProvisionModule, DefaultIdsModule, + DefaultPrivilege, DenormalizedTableField, Domain, Email, @@ -50,7 +51,6 @@ import type { Invite, InvitesModule, LevelsModule, - LimitFunction, LimitsModule, MembershipType, MembershipTypesModule, @@ -58,7 +58,11 @@ import type { NodeTypeRegistry, Object, OrgAdminGrant, + OrgChartEdge, + OrgChartEdgeGrant, OrgClaimedInvite, + OrgGetManagersRecord, + OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgLimit, @@ -74,14 +78,15 @@ import type { PhoneNumbersModule, Policy, PrimaryKeyConstraint, - Procedure, ProfilesModule, Ref, + RelationProvision, RlsModule, RoleType, Schema, SchemaGrant, SecretsModule, + SecureTableProvision, SessionsModule, Site, SiteMetadatum, @@ -211,19 +216,6 @@ export type IndexOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `LimitFunction`. */ -export type LimitFunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; /** Methods to use when ordering `Policy`. */ export type PolicyOrderBy = | 'NATURAL' @@ -329,10 +321,12 @@ export type ViewGrantOrderBy = | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC'; + | 'PRIVILEGE_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; /** Methods to use when ordering `ViewRule`. */ export type ViewRuleOrderBy = | 'NATURAL' @@ -393,6 +387,34 @@ export type TableTemplateModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'NODE_TYPE_ASC' | 'NODE_TYPE_DESC'; +/** Methods to use when ordering `SecureTableProvision`. */ +export type SecureTableProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC'; +/** Methods to use when ordering `RelationProvision`. */ +export type RelationProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'RELATION_TYPE_ASC' + | 'RELATION_TYPE_DESC' + | 'SOURCE_TABLE_ID_ASC' + | 'SOURCE_TABLE_ID_DESC' + | 'TARGET_TABLE_ID_ASC' + | 'TARGET_TABLE_ID_DESC'; /** Methods to use when ordering `Table`. */ export type TableOrderBy = | 'NATURAL' @@ -425,6 +447,25 @@ export type SchemaGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `DefaultPrivilege`. */ +export type DefaultPrivilegeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; /** Methods to use when ordering `ApiModule`. */ export type ApiModuleOrderBy = | 'NATURAL' @@ -435,7 +476,9 @@ export type ApiModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'API_ID_ASC' - | 'API_ID_DESC'; + | 'API_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; /** Methods to use when ordering `ApiSchema`. */ export type ApiSchemaOrderBy = | 'NATURAL' @@ -516,21 +559,6 @@ export type SchemaOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Procedure`. */ -export type ProcedureOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `TriggerFunction`. */ export type TriggerFunctionOrderBy = | 'NATURAL' @@ -870,7 +898,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `OrgMember`. */ export type OrgMemberOrderBy = | 'NATURAL' @@ -929,6 +959,38 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgChartEdge`. */ +export type OrgChartEdgeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC'; +/** Methods to use when ordering `OrgChartEdgeGrant`. */ +export type OrgChartEdgeGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC'; /** Methods to use when ordering `AppLimit`. */ export type AppLimitOrderBy = | 'NATURAL' @@ -1057,13 +1119,6 @@ export type OrgClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppPermissionDefault`. */ -export type AppPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC'; /** Methods to use when ordering `Ref`. */ export type RefOrderBy = | 'NATURAL' @@ -1084,24 +1139,15 @@ export type StoreOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `RoleType`. */ -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -/** Methods to use when ordering `OrgPermissionDefault`. */ -export type OrgPermissionDefaultOrderBy = +/** Methods to use when ordering `AppPermissionDefault`. */ +export type AppPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC'; -/** Methods to use when ordering `AppLimitDefault`. */ -export type AppLimitDefaultOrderBy = +/** Methods to use when ordering `RoleType`. */ +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1109,15 +1155,13 @@ export type AppLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = +/** Methods to use when ordering `OrgPermissionDefault`. */ +export type OrgPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; + | 'ID_DESC'; /** Methods to use when ordering `CryptoAddress`. */ export type CryptoAddressOrderBy = | 'NATURAL' @@ -1131,8 +1175,17 @@ export type CryptoAddressOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = +/** Methods to use when ordering `AppLimitDefault`. */ +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +/** Methods to use when ordering `OrgLimitDefault`. */ +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1168,6 +1221,26 @@ export type PhoneNumberOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `MembershipType`. */ +export type MembershipTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +/** Methods to use when ordering `NodeTypeRegistry`. */ +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC'; /** Methods to use when ordering `AppPermission`. */ export type AppPermissionOrderBy = | 'NATURAL' @@ -1205,17 +1278,6 @@ export type AppMembershipDefaultOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC'; -/** Methods to use when ordering `NodeTypeRegistry`. */ -export type NodeTypeRegistryOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC'; /** Methods to use when ordering `Object`. */ export type ObjectOrderBy = | 'NATURAL' @@ -1253,19 +1315,6 @@ export type OrgMembershipDefaultOrderBy = | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `Email`. */ -export type EmailOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppLevelRequirement`. */ export type AppLevelRequirementOrderBy = | 'NATURAL' @@ -1305,6 +1354,19 @@ export type AppLevelOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Email`. */ +export type EmailOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `SqlMigration`. */ export type SqlMigrationOrderBy = | 'NATURAL' @@ -1349,6 +1411,23 @@ export type AstMigrationOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `User`. */ +export type UserOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'USERNAME_ASC' + | 'USERNAME_DESC' + | 'SEARCH_TSV_ASC' + | 'SEARCH_TSV_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC'; /** Methods to use when ordering `AppMembership`. */ export type AppMembershipOrderBy = | 'NATURAL' @@ -1369,24 +1448,9 @@ export type AppMembershipOrderBy = | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -/** Methods to use when ordering `User`. */ -export type UserOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `HierarchyModule`. */ export type HierarchyModuleOrderBy = | 'NATURAL' @@ -1818,53 +1882,6 @@ export interface IndexFilter { /** Negates the expression. */ not?: IndexFilter; } -/** - * A condition to be used against `LimitFunction` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface LimitFunctionCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `databaseId` field. */ - databaseId?: string; - /** Checks for equality with the object’s `tableId` field. */ - tableId?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `label` field. */ - label?: string; - /** Checks for equality with the object’s `description` field. */ - description?: string; - /** Checks for equality with the object’s `data` field. */ - data?: unknown; - /** Checks for equality with the object’s `security` field. */ - security?: number; -} -/** A filter to be used against `LimitFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface LimitFunctionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `security` field. */ - security?: IntFilter; - /** Checks for all expressions in this list. */ - and?: LimitFunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: LimitFunctionFilter[]; - /** Negates the expression. */ - not?: LimitFunctionFilter; -} /** A condition to be used against `Policy` object types. All fields are tested for equality and combined with a logical ‘and.’ */ export interface PolicyCondition { /** Checks for equality with the object’s `id` field. */ @@ -1875,8 +1892,8 @@ export interface PolicyCondition { tableId?: string; /** Checks for equality with the object’s `name` field. */ name?: string; - /** Checks for equality with the object’s `roleName` field. */ - roleName?: string; + /** Checks for equality with the object’s `granteeName` field. */ + granteeName?: string; /** Checks for equality with the object’s `privilege` field. */ privilege?: string; /** Checks for equality with the object’s `permissive` field. */ @@ -1912,8 +1929,8 @@ export interface PolicyFilter { tableId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; /** Filter by the object’s `privilege` field. */ privilege?: StringFilter; /** Filter by the object’s `permissive` field. */ @@ -2025,10 +2042,12 @@ export interface TableGrantCondition { tableId?: string; /** Checks for equality with the object’s `privilege` field. */ privilege?: string; - /** Checks for equality with the object’s `roleName` field. */ - roleName?: string; + /** Checks for equality with the object’s `granteeName` field. */ + granteeName?: string; /** Checks for equality with the object’s `fieldIds` field. */ fieldIds?: string[]; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; /** Checks for equality with the object’s `createdAt` field. */ createdAt?: string; /** Checks for equality with the object’s `updatedAt` field. */ @@ -2044,10 +2063,12 @@ export interface TableGrantFilter { tableId?: UUIDFilter; /** Filter by the object’s `privilege` field. */ privilege?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; /** Filter by the object’s `fieldIds` field. */ fieldIds?: UUIDListFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -2236,12 +2257,14 @@ export interface ViewGrantCondition { databaseId?: string; /** Checks for equality with the object’s `viewId` field. */ viewId?: string; - /** Checks for equality with the object’s `roleName` field. */ - roleName?: string; + /** Checks for equality with the object’s `granteeName` field. */ + granteeName?: string; /** Checks for equality with the object’s `privilege` field. */ privilege?: string; /** Checks for equality with the object’s `withGrantOption` field. */ withGrantOption?: boolean; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; } /** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ export interface ViewGrantFilter { @@ -2251,12 +2274,14 @@ export interface ViewGrantFilter { databaseId?: UUIDFilter; /** Filter by the object’s `viewId` field. */ viewId?: UUIDFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; /** Filter by the object’s `privilege` field. */ privilege?: StringFilter; /** Filter by the object’s `withGrantOption` field. */ withGrantOption?: BooleanFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; /** Checks for all expressions in this list. */ and?: ViewGrantFilter[]; /** Checks for any expressions in this list. */ @@ -2388,12 +2413,16 @@ export interface TableModuleCondition { id?: string; /** Checks for equality with the object’s `databaseId` field. */ databaseId?: string; - /** Checks for equality with the object’s `privateSchemaId` field. */ - privateSchemaId?: string; + /** Checks for equality with the object’s `schemaId` field. */ + schemaId?: string; /** Checks for equality with the object’s `tableId` field. */ tableId?: string; + /** Checks for equality with the object’s `tableName` field. */ + tableName?: string; /** Checks for equality with the object’s `nodeType` field. */ nodeType?: string; + /** Checks for equality with the object’s `useRls` field. */ + useRls?: boolean; /** Checks for equality with the object’s `data` field. */ data?: unknown; /** Checks for equality with the object’s `fields` field. */ @@ -2405,12 +2434,16 @@ export interface TableModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; /** Filter by the object’s `nodeType` field. */ nodeType?: StringFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; /** Filter by the object’s `fields` field. */ @@ -2473,6 +2506,216 @@ export interface TableTemplateModuleFilter { /** Negates the expression. */ not?: TableTemplateModuleFilter; } +/** + * A condition to be used against `SecureTableProvision` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface SecureTableProvisionCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `schemaId` field. */ + schemaId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `tableName` field. */ + tableName?: string; + /** Checks for equality with the object’s `nodeType` field. */ + nodeType?: string; + /** Checks for equality with the object’s `useRls` field. */ + useRls?: boolean; + /** Checks for equality with the object’s `nodeData` field. */ + nodeData?: unknown; + /** Checks for equality with the object’s `grantRoles` field. */ + grantRoles?: string[]; + /** Checks for equality with the object’s `grantPrivileges` field. */ + grantPrivileges?: unknown; + /** Checks for equality with the object’s `policyType` field. */ + policyType?: string; + /** Checks for equality with the object’s `policyPrivileges` field. */ + policyPrivileges?: string[]; + /** Checks for equality with the object’s `policyRole` field. */ + policyRole?: string; + /** Checks for equality with the object’s `policyPermissive` field. */ + policyPermissive?: boolean; + /** Checks for equality with the object’s `policyName` field. */ + policyName?: string; + /** Checks for equality with the object’s `policyData` field. */ + policyData?: unknown; + /** Checks for equality with the object’s `outFields` field. */ + outFields?: string[]; +} +/** A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ +export interface SecureTableProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `nodeType` field. */ + nodeType?: StringFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `nodeData` field. */ + nodeData?: JSONFilter; + /** Filter by the object’s `grantRoles` field. */ + grantRoles?: StringListFilter; + /** Filter by the object’s `grantPrivileges` field. */ + grantPrivileges?: JSONFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `policyPrivileges` field. */ + policyPrivileges?: StringListFilter; + /** Filter by the object’s `policyRole` field. */ + policyRole?: StringFilter; + /** Filter by the object’s `policyPermissive` field. */ + policyPermissive?: BooleanFilter; + /** Filter by the object’s `policyName` field. */ + policyName?: StringFilter; + /** Filter by the object’s `policyData` field. */ + policyData?: JSONFilter; + /** Filter by the object’s `outFields` field. */ + outFields?: UUIDListFilter; + /** Checks for all expressions in this list. */ + and?: SecureTableProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: SecureTableProvisionFilter[]; + /** Negates the expression. */ + not?: SecureTableProvisionFilter; +} +/** + * A condition to be used against `RelationProvision` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface RelationProvisionCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `relationType` field. */ + relationType?: string; + /** Checks for equality with the object’s `sourceTableId` field. */ + sourceTableId?: string; + /** Checks for equality with the object’s `targetTableId` field. */ + targetTableId?: string; + /** Checks for equality with the object’s `fieldName` field. */ + fieldName?: string; + /** Checks for equality with the object’s `deleteAction` field. */ + deleteAction?: string; + /** Checks for equality with the object’s `isRequired` field. */ + isRequired?: boolean; + /** Checks for equality with the object’s `junctionTableId` field. */ + junctionTableId?: string; + /** Checks for equality with the object’s `junctionTableName` field. */ + junctionTableName?: string; + /** Checks for equality with the object’s `junctionSchemaId` field. */ + junctionSchemaId?: string; + /** Checks for equality with the object’s `sourceFieldName` field. */ + sourceFieldName?: string; + /** Checks for equality with the object’s `targetFieldName` field. */ + targetFieldName?: string; + /** Checks for equality with the object’s `useCompositeKey` field. */ + useCompositeKey?: boolean; + /** Checks for equality with the object’s `nodeType` field. */ + nodeType?: string; + /** Checks for equality with the object’s `nodeData` field. */ + nodeData?: unknown; + /** Checks for equality with the object’s `grantRoles` field. */ + grantRoles?: string[]; + /** Checks for equality with the object’s `grantPrivileges` field. */ + grantPrivileges?: unknown; + /** Checks for equality with the object’s `policyType` field. */ + policyType?: string; + /** Checks for equality with the object’s `policyPrivileges` field. */ + policyPrivileges?: string[]; + /** Checks for equality with the object’s `policyRole` field. */ + policyRole?: string; + /** Checks for equality with the object’s `policyPermissive` field. */ + policyPermissive?: boolean; + /** Checks for equality with the object’s `policyName` field. */ + policyName?: string; + /** Checks for equality with the object’s `policyData` field. */ + policyData?: unknown; + /** Checks for equality with the object’s `outFieldId` field. */ + outFieldId?: string; + /** Checks for equality with the object’s `outJunctionTableId` field. */ + outJunctionTableId?: string; + /** Checks for equality with the object’s `outSourceFieldId` field. */ + outSourceFieldId?: string; + /** Checks for equality with the object’s `outTargetFieldId` field. */ + outTargetFieldId?: string; +} +/** A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ +export interface RelationProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `relationType` field. */ + relationType?: StringFilter; + /** Filter by the object’s `sourceTableId` field. */ + sourceTableId?: UUIDFilter; + /** Filter by the object’s `targetTableId` field. */ + targetTableId?: UUIDFilter; + /** Filter by the object’s `fieldName` field. */ + fieldName?: StringFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `junctionTableId` field. */ + junctionTableId?: UUIDFilter; + /** Filter by the object’s `junctionTableName` field. */ + junctionTableName?: StringFilter; + /** Filter by the object’s `junctionSchemaId` field. */ + junctionSchemaId?: UUIDFilter; + /** Filter by the object’s `sourceFieldName` field. */ + sourceFieldName?: StringFilter; + /** Filter by the object’s `targetFieldName` field. */ + targetFieldName?: StringFilter; + /** Filter by the object’s `useCompositeKey` field. */ + useCompositeKey?: BooleanFilter; + /** Filter by the object’s `nodeType` field. */ + nodeType?: StringFilter; + /** Filter by the object’s `nodeData` field. */ + nodeData?: JSONFilter; + /** Filter by the object’s `grantRoles` field. */ + grantRoles?: StringListFilter; + /** Filter by the object’s `grantPrivileges` field. */ + grantPrivileges?: JSONFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `policyPrivileges` field. */ + policyPrivileges?: StringListFilter; + /** Filter by the object’s `policyRole` field. */ + policyRole?: StringFilter; + /** Filter by the object’s `policyPermissive` field. */ + policyPermissive?: BooleanFilter; + /** Filter by the object’s `policyName` field. */ + policyName?: StringFilter; + /** Filter by the object’s `policyData` field. */ + policyData?: JSONFilter; + /** Filter by the object’s `outFieldId` field. */ + outFieldId?: UUIDFilter; + /** Filter by the object’s `outJunctionTableId` field. */ + outJunctionTableId?: UUIDFilter; + /** Filter by the object’s `outSourceFieldId` field. */ + outSourceFieldId?: UUIDFilter; + /** Filter by the object’s `outTargetFieldId` field. */ + outTargetFieldId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RelationProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: RelationProvisionFilter[]; + /** Negates the expression. */ + not?: RelationProvisionFilter; +} /** A condition to be used against `Table` object types. All fields are tested for equality and combined with a logical ‘and.’ */ export interface TableCondition { /** Checks for equality with the object’s `id` field. */ @@ -2600,6 +2843,49 @@ export interface SchemaGrantFilter { /** Negates the expression. */ not?: SchemaGrantFilter; } +/** + * A condition to be used against `DefaultPrivilege` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface DefaultPrivilegeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `schemaId` field. */ + schemaId?: string; + /** Checks for equality with the object’s `objectType` field. */ + objectType?: string; + /** Checks for equality with the object’s `privilege` field. */ + privilege?: string; + /** Checks for equality with the object’s `granteeName` field. */ + granteeName?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; +} +/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DefaultPrivilegeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `objectType` field. */ + objectType?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DefaultPrivilegeFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultPrivilegeFilter[]; + /** Negates the expression. */ + not?: DefaultPrivilegeFilter; +} /** * A condition to be used against `ApiModule` object types. All fields are tested * for equality and combined with a logical ‘and.’ @@ -2983,81 +3269,6 @@ export interface SchemaFilter { /** Negates the expression. */ not?: SchemaFilter; } -/** - * A condition to be used against `Procedure` object types. All fields are tested - * for equality and combined with a logical ‘and.’ - */ -export interface ProcedureCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `databaseId` field. */ - databaseId?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `argnames` field. */ - argnames?: string[]; - /** Checks for equality with the object’s `argtypes` field. */ - argtypes?: string[]; - /** Checks for equality with the object’s `argdefaults` field. */ - argdefaults?: string[]; - /** Checks for equality with the object’s `langName` field. */ - langName?: string; - /** Checks for equality with the object’s `definition` field. */ - definition?: string; - /** Checks for equality with the object’s `smartTags` field. */ - smartTags?: unknown; - /** Checks for equality with the object’s `category` field. */ - category?: ObjectCategory; - /** Checks for equality with the object’s `module` field. */ - module?: string; - /** Checks for equality with the object’s `scope` field. */ - scope?: number; - /** Checks for equality with the object’s `tags` field. */ - tags?: string[]; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `Procedure` object types. All fields are combined with a logical ‘and.’ */ -export interface ProcedureFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `argnames` field. */ - argnames?: StringListFilter; - /** Filter by the object’s `argtypes` field. */ - argtypes?: StringListFilter; - /** Filter by the object’s `argdefaults` field. */ - argdefaults?: StringListFilter; - /** Filter by the object’s `langName` field. */ - langName?: StringFilter; - /** Filter by the object’s `definition` field. */ - definition?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ProcedureFilter[]; - /** Checks for any expressions in this list. */ - or?: ProcedureFilter[]; - /** Negates the expression. */ - not?: ProcedureFilter; -} /** * A condition to be used against `TriggerFunction` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -4369,8 +4580,6 @@ export interface ProfilesModuleCondition { profileDefinitionGrantsTableId?: string; /** Checks for equality with the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: string; - /** Checks for equality with the object’s `bitlen` field. */ - bitlen?: number; /** Checks for equality with the object’s `membershipType` field. */ membershipType?: number; /** Checks for equality with the object’s `entityTableId` field. */ @@ -4410,8 +4619,6 @@ export interface ProfilesModuleFilter { profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5103,6 +5310,8 @@ export interface OrgMembershipCondition { actorId?: string; /** Checks for equality with the object’s `entityId` field. */ entityId?: string; + /** Checks for equality with the object’s `profileId` field. */ + profileId?: string; } /** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMembershipFilter { @@ -5136,6 +5345,8 @@ export interface OrgMembershipFilter { actorId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipFilter[]; /** Checks for any expressions in this list. */ @@ -5307,6 +5518,104 @@ export interface OrgGrantFilter { /** Negates the expression. */ not?: OrgGrantFilter; } +/** + * A condition to be used against `OrgChartEdge` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgChartEdgeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `childId` field. */ + childId?: string; + /** Checks for equality with the object’s `parentId` field. */ + parentId?: string; + /** Checks for equality with the object’s `positionTitle` field. */ + positionTitle?: string; + /** Checks for equality with the object’s `positionLevel` field. */ + positionLevel?: number; +} +/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeFilter; +} +/** + * A condition to be used against `OrgChartEdgeGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgChartEdgeGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `childId` field. */ + childId?: string; + /** Checks for equality with the object’s `parentId` field. */ + parentId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `positionTitle` field. */ + positionTitle?: string; + /** Checks for equality with the object’s `positionLevel` field. */ + positionLevel?: number; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeGrantFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeGrantFilter; +} /** * A condition to be used against `AppLimit` object types. All fields are tested * for equality and combined with a logical ‘and.’ @@ -5738,31 +6047,8 @@ export interface OrgClaimedInviteFilter { /** Negates the expression. */ not?: OrgClaimedInviteFilter; } -/** - * A condition to be used against `AppPermissionDefault` object types. All fields - * are tested for equality and combined with a logical ‘and.’ - */ -export interface AppPermissionDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `permissions` field. */ - permissions?: string; -} -/** A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; -} -/** A condition to be used against `Ref` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface RefCondition { +/** A condition to be used against `Ref` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface RefCondition { /** Checks for equality with the object’s `id` field. */ id?: string; /** Checks for equality with the object’s `name` field. */ @@ -5825,6 +6111,29 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } +/** + * A condition to be used against `AppPermissionDefault` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface AppPermissionDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; +} +/** A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultFilter; +} /** * A condition to be used against `RoleType` object types. All fields are tested * for equality and combined with a logical ‘and.’ @@ -5875,60 +6184,6 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } -/** - * A condition to be used against `AppLimitDefault` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface AppLimitDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `max` field. */ - max?: number; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; -} -/** - * A condition to be used against `OrgLimitDefault` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface OrgLimitDefaultCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `max` field. */ - max?: number; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; -} /** * A condition to be used against `CryptoAddress` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -5973,35 +6228,58 @@ export interface CryptoAddressFilter { not?: CryptoAddressFilter; } /** - * A condition to be used against `MembershipType` object types. All fields are + * A condition to be used against `AppLimitDefault` object types. All fields are * tested for equality and combined with a logical ‘and.’ */ -export interface MembershipTypeCondition { +export interface AppLimitDefaultCondition { /** Checks for equality with the object’s `id` field. */ - id?: number; + id?: string; /** Checks for equality with the object’s `name` field. */ name?: string; - /** Checks for equality with the object’s `description` field. */ - description?: string; - /** Checks for equality with the object’s `prefix` field. */ - prefix?: string; + /** Checks for equality with the object’s `max` field. */ + max?: number; } -/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypeFilter { +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: AppLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: AppLimitDefaultFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: AppLimitDefaultFilter; +} +/** + * A condition to be used against `OrgLimitDefault` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgLimitDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `max` field. */ + max?: number; +} +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; } /** * A condition to be used against `ConnectedAccount` object types. All fields are @@ -6097,6 +6375,88 @@ export interface PhoneNumberFilter { /** Negates the expression. */ not?: PhoneNumberFilter; } +/** + * A condition to be used against `MembershipType` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface MembershipTypeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: number; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `prefix` field. */ + prefix?: string; +} +/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} +/** + * A condition to be used against `NodeTypeRegistry` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface NodeTypeRegistryCondition { + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `slug` field. */ + slug?: string; + /** Checks for equality with the object’s `category` field. */ + category?: string; + /** Checks for equality with the object’s `displayName` field. */ + displayName?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `parameterSchema` field. */ + parameterSchema?: unknown; + /** Checks for equality with the object’s `tags` field. */ + tags?: string[]; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; +} +/** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} /** * A condition to be used against `AppPermission` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -6210,57 +6570,6 @@ export interface AppMembershipDefaultFilter { /** Negates the expression. */ not?: AppMembershipDefaultFilter; } -/** - * A condition to be used against `NodeTypeRegistry` object types. All fields are - * tested for equality and combined with a logical ‘and.’ - */ -export interface NodeTypeRegistryCondition { - /** Checks for equality with the object’s `name` field. */ - name?: string; - /** Checks for equality with the object’s `slug` field. */ - slug?: string; - /** Checks for equality with the object’s `category` field. */ - category?: string; - /** Checks for equality with the object’s `displayName` field. */ - displayName?: string; - /** Checks for equality with the object’s `description` field. */ - description?: string; - /** Checks for equality with the object’s `parameterSchema` field. */ - parameterSchema?: unknown; - /** Checks for equality with the object’s `tags` field. */ - tags?: string[]; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ -export interface NodeTypeRegistryFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parameterSchema` field. */ - parameterSchema?: JSONFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: NodeTypeRegistryFilter[]; - /** Checks for any expressions in this list. */ - or?: NodeTypeRegistryFilter[]; - /** Negates the expression. */ - not?: NodeTypeRegistryFilter; -} /** A condition to be used against `Object` object types. All fields are tested for equality and combined with a logical ‘and.’ */ export interface ObjectCondition { /** Checks for equality with the object’s `id` field. */ @@ -6400,46 +6709,6 @@ export interface OrgMembershipDefaultFilter { /** Negates the expression. */ not?: OrgMembershipDefaultFilter; } -/** A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface EmailCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `ownerId` field. */ - ownerId?: string; - /** Checks for equality with the object’s `email` field. */ - email?: ConstructiveInternalTypeEmail; - /** Checks for equality with the object’s `isVerified` field. */ - isVerified?: boolean; - /** Checks for equality with the object’s `isPrimary` field. */ - isPrimary?: boolean; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; -} -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; -} /** * A condition to be used against `AppLevelRequirement` object types. All fields * are tested for equality and combined with a logical ‘and.’ @@ -6654,6 +6923,46 @@ export interface AppLevelFilter { /** Negates the expression. */ not?: AppLevelFilter; } +/** A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface EmailCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `ownerId` field. */ + ownerId?: string; + /** Checks for equality with the object’s `email` field. */ + email?: ConstructiveInternalTypeEmail; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: boolean; + /** Checks for equality with the object’s `isPrimary` field. */ + isPrimary?: boolean; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; +} +/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isPrimary` field. */ + isPrimary?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: EmailFilter[]; + /** Checks for any expressions in this list. */ + or?: EmailFilter[]; + /** Negates the expression. */ + not?: EmailFilter; +} /** * A condition to be used against `SqlMigration` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -6786,6 +7095,52 @@ export interface AstMigrationFilter { /** Negates the expression. */ not?: AstMigrationFilter; } +/** A condition to be used against `User` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface UserCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `username` field. */ + username?: string; + /** Checks for equality with the object’s `displayName` field. */ + displayName?: string; + /** Checks for equality with the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImage; + /** Checks for equality with the object’s `searchTsv` field. */ + searchTsv?: string; + /** Checks for equality with the object’s `type` field. */ + type?: number; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; + /** Full-text search on the `search_tsv` tsvector column using `websearch_to_tsquery`. */ + fullTextSearchTsv?: string; +} +/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ +export interface UserFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `username` field. */ + username?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `searchTsv` field. */ + searchTsv?: FullTextFilter; + /** Filter by the object’s `type` field. */ + type?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: UserFilter[]; + /** Checks for any expressions in this list. */ + or?: UserFilter[]; + /** Negates the expression. */ + not?: UserFilter; +} /** * A condition to be used against `AppMembership` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -6821,6 +7176,8 @@ export interface AppMembershipCondition { granted?: string; /** Checks for equality with the object’s `actorId` field. */ actorId?: string; + /** Checks for equality with the object’s `profileId` field. */ + profileId?: string; } /** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ export interface AppMembershipFilter { @@ -6854,6 +7211,8 @@ export interface AppMembershipFilter { granted?: BitStringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ @@ -6861,52 +7220,6 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } -/** A condition to be used against `User` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export interface UserCondition { - /** Checks for equality with the object’s `id` field. */ - id?: string; - /** Checks for equality with the object’s `username` field. */ - username?: string; - /** Checks for equality with the object’s `displayName` field. */ - displayName?: string; - /** Checks for equality with the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImage; - /** Checks for equality with the object’s `searchTsv` field. */ - searchTsv?: string; - /** Checks for equality with the object’s `type` field. */ - type?: number; - /** Checks for equality with the object’s `createdAt` field. */ - createdAt?: string; - /** Checks for equality with the object’s `updatedAt` field. */ - updatedAt?: string; - /** Full-text search on the `search_tsv` tsvector column using `websearch_to_tsquery`. */ - fullTextSearchTsv?: string; -} -/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ -export interface UserFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `username` field. */ - username?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: UserFilter[]; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Negates the expression. */ - not?: UserFilter; -} /** * A condition to be used against `HierarchyModule` object types. All fields are * tested for equality and combined with a logical ‘and.’ @@ -7219,23 +7532,15 @@ export interface CreateApiSchemaInput { } /** An input for mutations affecting `ApiSchema` */ export interface ApiSchemaInput { + /** Unique identifier for this API-schema mapping */ id?: string; + /** Reference to the metaschema database */ databaseId: string; + /** Metaschema schema being exposed through the API */ schemaId: string; + /** API that exposes this schema */ apiId: string; } -export interface CreateSiteThemeInput { - clientMutationId?: string; - /** The `SiteTheme` to be created by this mutation. */ - siteTheme: SiteThemeInput; -} -/** An input for mutations affecting `SiteTheme` */ -export interface SiteThemeInput { - id?: string; - databaseId: string; - siteId: string; - theme: unknown; -} export interface CreateOrgMemberInput { clientMutationId?: string; /** The `OrgMember` to be created by this mutation. */ @@ -7244,19 +7549,28 @@ export interface CreateOrgMemberInput { /** An input for mutations affecting `OrgMember` */ export interface OrgMemberInput { id?: string; + /** Whether this member has admin privileges */ isAdmin?: boolean; + /** References the user who is a member */ actorId: string; + /** References the entity (org or group) this member belongs to */ entityId: string; } -export interface CreateAppPermissionDefaultInput { +export interface CreateSiteThemeInput { clientMutationId?: string; - /** The `AppPermissionDefault` to be created by this mutation. */ - appPermissionDefault: AppPermissionDefaultInput; + /** The `SiteTheme` to be created by this mutation. */ + siteTheme: SiteThemeInput; } -/** An input for mutations affecting `AppPermissionDefault` */ -export interface AppPermissionDefaultInput { +/** An input for mutations affecting `SiteTheme` */ +export interface SiteThemeInput { + /** Unique identifier for this theme record */ id?: string; - permissions?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this theme belongs to */ + siteId: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme: unknown; } export interface CreateRefInput { clientMutationId?: string; @@ -7290,32 +7604,6 @@ export interface StoreInput { hash?: string; createdAt?: string; } -export interface CreateApiModuleInput { - clientMutationId?: string; - /** The `ApiModule` to be created by this mutation. */ - apiModule: ApiModuleInput; -} -/** An input for mutations affecting `ApiModule` */ -export interface ApiModuleInput { - id?: string; - databaseId: string; - apiId: string; - name: string; - data: unknown; -} -export interface CreateSiteModuleInput { - clientMutationId?: string; - /** The `SiteModule` to be created by this mutation. */ - siteModule: SiteModuleInput; -} -/** An input for mutations affecting `SiteModule` */ -export interface SiteModuleInput { - id?: string; - databaseId: string; - siteId: string; - name: string; - data: unknown; -} export interface CreateEncryptedSecretsModuleInput { clientMutationId?: string; /** The `EncryptedSecretsModule` to be created by this mutation. */ @@ -7368,26 +7656,52 @@ export interface UuidModuleInput { uuidFunction?: string; uuidSeed: string; } -export interface CreateRoleTypeInput { +export interface CreateAppPermissionDefaultInput { clientMutationId?: string; - /** The `RoleType` to be created by this mutation. */ - roleType: RoleTypeInput; + /** The `AppPermissionDefault` to be created by this mutation. */ + appPermissionDefault: AppPermissionDefaultInput; } -/** An input for mutations affecting `RoleType` */ -export interface RoleTypeInput { - id: number; +/** An input for mutations affecting `AppPermissionDefault` */ +export interface AppPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + /** The `ApiModule` to be created by this mutation. */ + apiModule: ApiModuleInput; +} +/** An input for mutations affecting `ApiModule` */ +export interface ApiModuleInput { + /** Unique identifier for this API module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** API this module configuration belongs to */ + apiId: string; + /** Module name (e.g. auth, uploads, webhooks) */ name: string; + /** JSON configuration data for this module */ + data: unknown; } -export interface CreateOrgPermissionDefaultInput { +export interface CreateSiteModuleInput { clientMutationId?: string; - /** The `OrgPermissionDefault` to be created by this mutation. */ - orgPermissionDefault: OrgPermissionDefaultInput; + /** The `SiteModule` to be created by this mutation. */ + siteModule: SiteModuleInput; } -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { +/** An input for mutations affecting `SiteModule` */ +export interface SiteModuleInput { + /** Unique identifier for this site module record */ id?: string; - permissions?: string; - entityId: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this module configuration belongs to */ + siteId: string; + /** Module name (e.g. user_auth_module, analytics) */ + name: string; + /** JSON configuration data for this module */ + data: unknown; } export interface CreateSchemaGrantInput { clientMutationId?: string; @@ -7417,20 +7731,6 @@ export interface TriggerFunctionInput { createdAt?: string; updatedAt?: string; } -export interface CreateViewGrantInput { - clientMutationId?: string; - /** The `ViewGrant` to be created by this mutation. */ - viewGrant: ViewGrantInput; -} -/** An input for mutations affecting `ViewGrant` */ -export interface ViewGrantInput { - id?: string; - databaseId?: string; - viewId: string; - roleName: string; - privilege: string; - withGrantOption?: boolean; -} export interface CreateViewRuleInput { clientMutationId?: string; /** The `ViewRule` to be created by this mutation. */ @@ -7455,7 +7755,9 @@ export interface CreateAppAdminGrantInput { /** An input for mutations affecting `AppAdminGrant` */ export interface AppAdminGrantInput { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId: string; grantorId?: string; createdAt?: string; @@ -7469,33 +7771,66 @@ export interface CreateAppOwnerGrantInput { /** An input for mutations affecting `AppOwnerGrant` */ export interface AppOwnerGrantInput { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - /** The `AppLimitDefault` to be created by this mutation. */ - appLimitDefault: AppLimitDefaultInput; + /** The `RoleType` to be created by this mutation. */ + roleType: RoleTypeInput; } -/** An input for mutations affecting `AppLimitDefault` */ -export interface AppLimitDefaultInput { - id?: string; +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; name: string; - max?: number; } -export interface CreateOrgLimitDefaultInput { +export interface CreateOrgPermissionDefaultInput { clientMutationId?: string; - /** The `OrgLimitDefault` to be created by this mutation. */ - orgLimitDefault: OrgLimitDefaultInput; + /** The `OrgPermissionDefault` to be created by this mutation. */ + orgPermissionDefault: OrgPermissionDefaultInput; } -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { +/** An input for mutations affecting `OrgPermissionDefault` */ +export interface OrgPermissionDefaultInput { id?: string; - name: string; - max?: number; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId: string; +} +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + /** The `DefaultPrivilege` to be created by this mutation. */ + defaultPrivilege: DefaultPrivilegeInput; +} +/** An input for mutations affecting `DefaultPrivilege` */ +export interface DefaultPrivilegeInput { + id?: string; + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; +} +export interface CreateViewGrantInput { + clientMutationId?: string; + /** The `ViewGrant` to be created by this mutation. */ + viewGrant: ViewGrantInput; +} +/** An input for mutations affecting `ViewGrant` */ +export interface ViewGrantInput { + id?: string; + databaseId?: string; + viewId: string; + granteeName: string; + privilege: string; + withGrantOption?: boolean; + isGrant?: boolean; } export interface CreateApiInput { clientMutationId?: string; @@ -7504,12 +7839,19 @@ export interface CreateApiInput { } /** An input for mutations affecting `Api` */ export interface ApiInput { + /** Unique identifier for this API */ id?: string; + /** Reference to the metaschema database this API serves */ databaseId: string; + /** Unique name for this API within its database */ name: string; + /** PostgreSQL database name to connect to */ dbname?: string; + /** PostgreSQL role used for authenticated requests */ roleName?: string; + /** PostgreSQL role used for anonymous/unauthenticated requests */ anonRole?: string; + /** Whether this API is publicly accessible without authentication */ isPublic?: boolean; } export interface CreateConnectedAccountsModuleInput { @@ -7557,21 +7899,6 @@ export interface PhoneNumbersModuleInput { ownerTableId?: string; tableName: string; } -export interface CreateTableModuleInput { - clientMutationId?: string; - /** The `TableModule` to be created by this mutation. */ - tableModule: TableModuleInput; -} -/** An input for mutations affecting `TableModule` */ -export interface TableModuleInput { - id?: string; - databaseId: string; - privateSchemaId?: string; - tableId: string; - nodeType: string; - data?: unknown; - fields?: string[]; -} export interface CreateUsersModuleInput { clientMutationId?: string; /** The `UsersModule` to be created by this mutation. */ @@ -7595,8 +7922,11 @@ export interface CreateOrgAdminGrantInput { /** An input for mutations affecting `OrgAdminGrant` */ export interface OrgAdminGrantInput { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId: string; + /** The entity (org or group) this admin grant applies to */ entityId: string; grantorId?: string; createdAt?: string; @@ -7610,8 +7940,11 @@ export interface CreateOrgOwnerGrantInput { /** An input for mutations affecting `OrgOwnerGrant` */ export interface OrgOwnerGrantInput { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId: string; + /** The entity (org or group) this ownership grant applies to */ entityId: string; grantorId?: string; createdAt?: string; @@ -7626,23 +7959,40 @@ export interface CreateCryptoAddressInput { export interface CryptoAddressInput { id?: string; ownerId?: string; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address: string; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean; createdAt?: string; updatedAt?: string; } -export interface CreateMembershipTypeInput { +export interface CreateAppLimitDefaultInput { clientMutationId?: string; - /** The `MembershipType` to be created by this mutation. */ - membershipType: MembershipTypeInput; + /** The `AppLimitDefault` to be created by this mutation. */ + appLimitDefault: AppLimitDefaultInput; } -/** An input for mutations affecting `MembershipType` */ -export interface MembershipTypeInput { - id: number; +/** An input for mutations affecting `AppLimitDefault` */ +export interface AppLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ name: string; - description: string; - prefix: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + /** The `OrgLimitDefault` to be created by this mutation. */ + orgLimitDefault: OrgLimitDefaultInput; +} +/** An input for mutations affecting `OrgLimitDefault` */ +export interface OrgLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: number; } export interface CreateDatabaseInput { clientMutationId?: string; @@ -7660,38 +8010,6 @@ export interface DatabaseInput { createdAt?: string; updatedAt?: string; } -export interface CreateLimitFunctionInput { - clientMutationId?: string; - /** The `LimitFunction` to be created by this mutation. */ - limitFunction: LimitFunctionInput; -} -/** An input for mutations affecting `LimitFunction` */ -export interface LimitFunctionInput { - id?: string; - databaseId?: string; - tableId: string; - name?: string; - label?: string; - description?: string; - data?: unknown; - security?: number; -} -export interface CreateTableGrantInput { - clientMutationId?: string; - /** The `TableGrant` to be created by this mutation. */ - tableGrant: TableGrantInput; -} -/** An input for mutations affecting `TableGrant` */ -export interface TableGrantInput { - id?: string; - databaseId?: string; - tableId: string; - privilege: string; - roleName: string; - fieldIds?: string[]; - createdAt?: string; - updatedAt?: string; -} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; /** The `CryptoAddressesModule` to be created by this mutation. */ @@ -7723,6 +8041,7 @@ export interface ConnectedAccountInput { identifier: string; /** Additional profile details extracted from this login method */ details: unknown; + /** Whether this connected account has been verified */ isVerified?: boolean; createdAt?: string; updatedAt?: string; @@ -7736,67 +8055,218 @@ export interface CreatePhoneNumberInput { export interface PhoneNumberInput { id?: string; ownerId?: string; + /** Country calling code (e.g. +1, +44) */ cc: string; + /** The phone number without country code */ number: string; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean; + /** Whether this is the user's primary phone number */ isPrimary?: boolean; createdAt?: string; updatedAt?: string; } -export interface CreateAppPermissionInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; } -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; +/** An input for mutations affecting `MembershipType` */ +export interface MembershipTypeInput { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name: string; + /** Description of what this membership type represents */ + description: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix: string; } -export interface CreateOrgPermissionInput { +export interface CreateFieldModuleInput { clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; + /** The `FieldModule` to be created by this mutation. */ + fieldModule: FieldModuleInput; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { +/** An input for mutations affecting `FieldModule` */ +export interface FieldModuleInput { id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; + databaseId: string; + privateSchemaId?: string; + tableId?: string; + fieldId?: string; + nodeType: string; + data?: unknown; + triggers?: string[]; + functions?: string[]; } -export interface CreateAppLimitInput { +export interface CreateTableModuleInput { clientMutationId?: string; - /** The `AppLimit` to be created by this mutation. */ - appLimit: AppLimitInput; + /** The `TableModule` to be created by this mutation. */ + tableModule: TableModuleInput; } -/** An input for mutations affecting `AppLimit` */ -export interface AppLimitInput { +/** An input for mutations affecting `TableModule` */ +export interface TableModuleInput { id?: string; - name?: string; - actorId: string; - num?: number; - max?: number; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodeType: string; + useRls?: boolean; + data?: unknown; + fields?: string[]; } -export interface CreateAppAchievementInput { +export interface CreateTableTemplateModuleInput { clientMutationId?: string; - /** The `AppAchievement` to be created by this mutation. */ - appAchievement: AppAchievementInput; + /** The `TableTemplateModule` to be created by this mutation. */ + tableTemplateModule: TableTemplateModuleInput; } -/** An input for mutations affecting `AppAchievement` */ -export interface AppAchievementInput { +/** An input for mutations affecting `TableTemplateModule` */ +export interface TableTemplateModuleInput { id?: string; - actorId?: string; - name: string; - count?: number; - createdAt?: string; - updatedAt?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + nodeType: string; + data?: unknown; } -export interface CreateAppStepInput { +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + /** The `OrgChartEdgeGrant` to be created by this mutation. */ + orgChartEdgeGrant: OrgChartEdgeGrantInput; +} +/** An input for mutations affecting `OrgChartEdgeGrant` */ +export interface OrgChartEdgeGrantInput { + id?: string; + /** Organization this grant applies to */ + entityId: string; + /** User ID of the subordinate being placed in the hierarchy */ + childId: string; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string; + /** User ID of the admin who performed this grant or revocation */ + grantorId: string; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean; + /** Job title or role name being assigned in this grant */ + positionTitle?: string; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + /** The `NodeTypeRegistry` to be created by this mutation. */ + nodeTypeRegistry: NodeTypeRegistryInput; +} +/** An input for mutations affecting `NodeTypeRegistry` */ +export interface NodeTypeRegistryInput { + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + name: string; + /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ + slug: string; + /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) */ + category: string; + /** Human-readable display name for UI */ + displayName?: string; + /** Description of what this node type does */ + description?: string; + /** JSON Schema defining valid parameters for this node type */ + parameterSchema?: unknown; + /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTableGrantInput { + clientMutationId?: string; + /** The `TableGrant` to be created by this mutation. */ + tableGrant: TableGrantInput; +} +/** An input for mutations affecting `TableGrant` */ +export interface TableGrantInput { + id?: string; + databaseId?: string; + tableId: string; + privilege: string; + granteeName: string; + fieldIds?: string[]; + isGrant?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + /** The `AppPermission` to be created by this mutation. */ + appPermission: AppPermissionInput; +} +/** An input for mutations affecting `AppPermission` */ +export interface AppPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + /** The `OrgPermission` to be created by this mutation. */ + orgPermission: OrgPermissionInput; +} +/** An input for mutations affecting `OrgPermission` */ +export interface OrgPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateAppLimitInput { + clientMutationId?: string; + /** The `AppLimit` to be created by this mutation. */ + appLimit: AppLimitInput; +} +/** An input for mutations affecting `AppLimit` */ +export interface AppLimitInput { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ + max?: number; +} +export interface CreateAppAchievementInput { + clientMutationId?: string; + /** The `AppAchievement` to be created by this mutation. */ + appAchievement: AppAchievementInput; +} +/** An input for mutations affecting `AppAchievement` */ +export interface AppAchievementInput { + id?: string; + actorId?: string; + /** Name identifier of the level requirement being tracked */ + name: string; + /** Cumulative count of completed steps toward this requirement */ + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppStepInput { clientMutationId?: string; /** The `AppStep` to be created by this mutation. */ appStep: AppStepInput; @@ -7805,7 +8275,9 @@ export interface CreateAppStepInput { export interface AppStepInput { id?: string; actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name: string; + /** Number of units completed in this step action */ count?: number; createdAt?: string; updatedAt?: string; @@ -7818,8 +8290,11 @@ export interface CreateClaimedInviteInput { /** An input for mutations affecting `ClaimedInvite` */ export interface ClaimedInviteInput { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -7836,7 +8311,9 @@ export interface AppMembershipDefaultInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean; } export interface CreateSiteMetadatumInput { @@ -7846,71 +8323,19 @@ export interface CreateSiteMetadatumInput { } /** An input for mutations affecting `SiteMetadatum` */ export interface SiteMetadatumInput { + /** Unique identifier for this metadata record */ id?: string; + /** Reference to the metaschema database */ databaseId: string; + /** Site this metadata belongs to */ siteId: string; + /** Page title for SEO (max 120 characters) */ title?: string; + /** Meta description for SEO and social sharing (max 120 characters) */ description?: string; + /** Open Graph image for social media previews */ ogImage?: ConstructiveInternalTypeImage; } -export interface CreateFieldModuleInput { - clientMutationId?: string; - /** The `FieldModule` to be created by this mutation. */ - fieldModule: FieldModuleInput; -} -/** An input for mutations affecting `FieldModule` */ -export interface FieldModuleInput { - id?: string; - databaseId: string; - privateSchemaId?: string; - tableId?: string; - fieldId?: string; - nodeType: string; - data?: unknown; - triggers?: string[]; - functions?: string[]; -} -export interface CreateTableTemplateModuleInput { - clientMutationId?: string; - /** The `TableTemplateModule` to be created by this mutation. */ - tableTemplateModule: TableTemplateModuleInput; -} -/** An input for mutations affecting `TableTemplateModule` */ -export interface TableTemplateModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - nodeType: string; - data?: unknown; -} -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - /** The `NodeTypeRegistry` to be created by this mutation. */ - nodeTypeRegistry: NodeTypeRegistryInput; -} -/** An input for mutations affecting `NodeTypeRegistry` */ -export interface NodeTypeRegistryInput { - /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ - name: string; - /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ - slug: string; - /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types) */ - category: string; - /** Human-readable display name for UI */ - displayName?: string; - /** Description of what this node type does */ - description?: string; - /** JSON Schema defining valid parameters for this node type */ - parameterSchema?: unknown; - /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} export interface CreateObjectInput { clientMutationId?: string; /** The `Object` to be created by this mutation. */ @@ -7975,9 +8400,13 @@ export interface CreateOrgLimitInput { /** An input for mutations affecting `OrgLimit` */ export interface OrgLimitInput { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; entityId: string; } @@ -7989,8 +8418,11 @@ export interface CreateAppGrantInput { /** An input for mutations affecting `AppGrant` */ export interface AppGrantInput { id?: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean; + /** The member receiving or losing the permission grant */ actorId: string; grantorId?: string; createdAt?: string; @@ -8004,13 +8436,37 @@ export interface CreateOrgClaimedInviteInput { /** An input for mutations affecting `OrgClaimedInvite` */ export interface OrgClaimedInviteInput { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; entityId: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + /** The `OrgChartEdge` to be created by this mutation. */ + orgChartEdge: OrgChartEdgeInput; +} +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface CreateDomainInput { clientMutationId?: string; /** The `Domain` to be created by this mutation. */ @@ -8018,13 +8474,38 @@ export interface CreateDomainInput { } /** An input for mutations affecting `Domain` */ export interface DomainInput { + /** Unique identifier for this domain record */ id?: string; + /** Reference to the metaschema database this domain belongs to */ databaseId: string; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ apiId?: string; + /** Site this domain routes to (mutually exclusive with api_id) */ siteId?: string; + /** Subdomain portion of the hostname */ subdomain?: ConstructiveInternalTypeHostname; + /** Root domain of the hostname */ domain?: ConstructiveInternalTypeHostname; } +export interface CreateSessionsModuleInput { + clientMutationId?: string; + /** The `SessionsModule` to be created by this mutation. */ + sessionsModule: SessionsModuleInput; +} +/** An input for mutations affecting `SessionsModule` */ +export interface SessionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; +} export interface CreateOrgGrantInput { clientMutationId?: string; /** The `OrgGrant` to be created by this mutation. */ @@ -8033,9 +8514,13 @@ export interface CreateOrgGrantInput { /** An input for mutations affecting `OrgGrant` */ export interface OrgGrantInput { id?: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean; + /** The member receiving or losing the permission grant */ actorId: string; + /** The entity (org or group) this permission grant applies to */ entityId: string; grantorId?: string; createdAt?: string; @@ -8053,44 +8538,34 @@ export interface OrgMembershipDefaultInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** References the entity these membership defaults apply to */ entityId: string; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean; } -export interface CreateSessionsModuleInput { +export interface CreateRlsModuleInput { clientMutationId?: string; - /** The `SessionsModule` to be created by this mutation. */ - sessionsModule: SessionsModuleInput; + /** The `RlsModule` to be created by this mutation. */ + rlsModule: RlsModuleInput; } -/** An input for mutations affecting `SessionsModule` */ -export interface SessionsModuleInput { +/** An input for mutations affecting `RlsModule` */ +export interface RlsModuleInput { id?: string; databaseId: string; + apiId?: string; schemaId?: string; - sessionsTableId?: string; + privateSchemaId?: string; sessionCredentialsTableId?: string; - authSettingsTableId?: string; + sessionsTableId?: string; usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; -} -export interface CreateEmailInput { - clientMutationId?: string; - /** The `Email` to be created by this mutation. */ - email: EmailInput; -} -/** An input for mutations affecting `Email` */ -export interface EmailInput { - id?: string; - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; } export interface CreateAppLevelRequirementInput { clientMutationId?: string; @@ -8100,10 +8575,15 @@ export interface CreateAppLevelRequirementInput { /** An input for mutations affecting `AppLevelRequirement` */ export interface AppLevelRequirementInput { id?: string; + /** Name identifier of the requirement (matches step names) */ name: string; + /** Name of the level this requirement belongs to */ level: string; + /** Human-readable description of what this requirement entails */ description?: string; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number; + /** Display ordering priority; lower values appear first */ priority?: number; createdAt?: string; updatedAt?: string; @@ -8116,12 +8596,19 @@ export interface CreateAuditLogInput { /** An input for mutations affecting `AuditLog` */ export interface AuditLogInput { id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; + /** User who performed the authentication action */ actorId?: string; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ userAgent?: string; + /** IP address of the client that initiated the auth event */ ipAddress?: string; + /** Whether the authentication attempt succeeded */ success: boolean; + /** Timestamp when the audit event was recorded */ createdAt?: string; } export interface CreateAppLevelInput { @@ -8132,32 +8619,34 @@ export interface CreateAppLevelInput { /** An input for mutations affecting `AppLevel` */ export interface AppLevelInput { id?: string; + /** Unique name of the level */ name: string; + /** Human-readable description of what this level represents */ description?: string; + /** Badge or icon image associated with this level */ image?: ConstructiveInternalTypeImage; + /** Optional owner (actor) who created or manages this level */ ownerId?: string; createdAt?: string; updatedAt?: string; } -export interface CreateRlsModuleInput { +export interface CreateEmailInput { clientMutationId?: string; - /** The `RlsModule` to be created by this mutation. */ - rlsModule: RlsModuleInput; + /** The `Email` to be created by this mutation. */ + email: EmailInput; } -/** An input for mutations affecting `RlsModule` */ -export interface RlsModuleInput { +/** An input for mutations affecting `Email` */ +export interface EmailInput { id?: string; - databaseId: string; - apiId?: string; - schemaId?: string; - privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: string; + ownerId?: string; + /** The email address */ + email: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; } export interface CreateDenormalizedTableFieldInput { clientMutationId?: string; @@ -8299,127 +8788,10 @@ export interface ViewInput { scope?: number; tags?: string[]; } -export interface CreateAstMigrationInput { +export interface CreatePermissionsModuleInput { clientMutationId?: string; - /** The `AstMigration` to be created by this mutation. */ - astMigration: AstMigrationInput; -} -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; - name?: string; - requires?: string[]; - payload?: unknown; - deploys?: string; - deploy?: unknown; - revert?: unknown; - verify?: unknown; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - /** The `AppMembership` to be created by this mutation. */ - appMembership: AppMembershipInput; -} -/** An input for mutations affecting `AppMembership` */ -export interface AppMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - /** The `OrgMembership` to be created by this mutation. */ - orgMembership: OrgMembershipInput; -} -/** An input for mutations affecting `OrgMembership` */ -export interface OrgMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; -} -export interface CreateAppInput { - clientMutationId?: string; - /** The `App` to be created by this mutation. */ - app: AppInput; -} -/** An input for mutations affecting `App` */ -export interface AppInput { - id?: string; - databaseId: string; - siteId: string; - name?: string; - appImage?: ConstructiveInternalTypeImage; - appStoreLink?: ConstructiveInternalTypeUrl; - appStoreId?: string; - appIdPrefix?: string; - playStoreLink?: ConstructiveInternalTypeUrl; -} -export interface CreateSiteInput { - clientMutationId?: string; - /** The `Site` to be created by this mutation. */ - site: SiteInput; -} -/** An input for mutations affecting `Site` */ -export interface SiteInput { - id?: string; - databaseId: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - favicon?: ConstructiveInternalTypeAttachment; - appleTouchIcon?: ConstructiveInternalTypeImage; - logo?: ConstructiveInternalTypeImage; - dbname?: string; -} -export interface CreateUserInput { - clientMutationId?: string; - /** The `User` to be created by this mutation. */ - user: UserInput; -} -/** An input for mutations affecting `User` */ -export interface UserInput { - id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - /** The `PermissionsModule` to be created by this mutation. */ - permissionsModule: PermissionsModuleInput; + /** The `PermissionsModule` to be created by this mutation. */ + permissionsModule: PermissionsModuleInput; } /** An input for mutations affecting `PermissionsModule` */ export interface PermissionsModuleInput { @@ -8441,26 +8813,68 @@ export interface PermissionsModuleInput { getByMask?: string; getMaskByName?: string; } -export interface CreatePrimaryKeyConstraintInput { +export interface CreateSecureTableProvisionInput { clientMutationId?: string; - /** The `PrimaryKeyConstraint` to be created by this mutation. */ - primaryKeyConstraint: PrimaryKeyConstraintInput; + /** The `SecureTableProvision` to be created by this mutation. */ + secureTableProvision: SecureTableProvisionInput; } -/** An input for mutations affecting `PrimaryKeyConstraint` */ -export interface PrimaryKeyConstraintInput { +/** An input for mutations affecting `SecureTableProvision` */ +export interface SecureTableProvisionInput { + /** Unique identifier for this provision row. */ id?: string; + /** The database this provision belongs to. Required. */ + databaseId: string; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: string; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ + useRls?: boolean; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + nodeData?: unknown; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string[]; + /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ + grantPrivileges?: unknown; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string[]; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; +} +export interface CreateAstMigrationInput { + clientMutationId?: string; + /** The `AstMigration` to be created by this mutation. */ + astMigration: AstMigrationInput; +} +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; databaseId?: string; - tableId: string; name?: string; - type?: string; - fieldIds: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; + requires?: string[]; + payload?: unknown; + deploys?: string; + deploy?: unknown; + revert?: unknown; + verify?: unknown; createdAt?: string; - updatedAt?: string; + action?: string; + actionId?: string; + actorId?: string; } export interface CreateTriggerInput { clientMutationId?: string; @@ -8483,20 +8897,19 @@ export interface TriggerInput { createdAt?: string; updatedAt?: string; } -export interface CreateCheckConstraintInput { +export interface CreatePrimaryKeyConstraintInput { clientMutationId?: string; - /** The `CheckConstraint` to be created by this mutation. */ - checkConstraint: CheckConstraintInput; + /** The `PrimaryKeyConstraint` to be created by this mutation. */ + primaryKeyConstraint: PrimaryKeyConstraintInput; } -/** An input for mutations affecting `CheckConstraint` */ -export interface CheckConstraintInput { +/** An input for mutations affecting `PrimaryKeyConstraint` */ +export interface PrimaryKeyConstraintInput { id?: string; databaseId?: string; tableId: string; name?: string; type?: string; fieldIds: string[]; - expr?: unknown; smartTags?: unknown; category?: ObjectCategory; module?: string; @@ -8527,21 +8940,20 @@ export interface UniqueConstraintInput { createdAt?: string; updatedAt?: string; } -export interface CreateProcedureInput { +export interface CreateCheckConstraintInput { clientMutationId?: string; - /** The `Procedure` to be created by this mutation. */ - procedure: ProcedureInput; + /** The `CheckConstraint` to be created by this mutation. */ + checkConstraint: CheckConstraintInput; } -/** An input for mutations affecting `Procedure` */ -export interface ProcedureInput { +/** An input for mutations affecting `CheckConstraint` */ +export interface CheckConstraintInput { id?: string; databaseId?: string; - name: string; - argnames?: string[]; - argtypes?: string[]; - argdefaults?: string[]; - langName?: string; - definition?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: unknown; smartTags?: unknown; category?: ObjectCategory; module?: string; @@ -8561,7 +8973,7 @@ export interface PolicyInput { databaseId?: string; tableId: string; name?: string; - roleName?: string; + granteeName?: string; privilege?: string; permissive?: boolean; disabled?: boolean; @@ -8575,48 +8987,71 @@ export interface PolicyInput { createdAt?: string; updatedAt?: string; } -export interface CreateInviteInput { +export interface CreateAppInput { clientMutationId?: string; - /** The `Invite` to be created by this mutation. */ - invite: InviteInput; + /** The `App` to be created by this mutation. */ + app: AppInput; } -/** An input for mutations affecting `Invite` */ -export interface InviteInput { +/** An input for mutations affecting `App` */ +export interface AppInput { + /** Unique identifier for this app */ id?: string; - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: unknown; - expiresAt?: string; - createdAt?: string; - updatedAt?: string; + /** Reference to the metaschema database this app belongs to */ + databaseId: string; + /** Site this app is associated with (one app per site) */ + siteId: string; + /** Display name of the app */ + name?: string; + /** App icon or promotional image */ + appImage?: ConstructiveInternalTypeImage; + /** URL to the Apple App Store listing */ + appStoreLink?: ConstructiveInternalTypeUrl; + /** Apple App Store application identifier */ + appStoreId?: string; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ + appIdPrefix?: string; + /** URL to the Google Play Store listing */ + playStoreLink?: ConstructiveInternalTypeUrl; } -export interface CreateIndexInput { +export interface CreateSiteInput { clientMutationId?: string; - /** The `Index` to be created by this mutation. */ - index: IndexInput; + /** The `Site` to be created by this mutation. */ + site: SiteInput; } -/** An input for mutations affecting `Index` */ -export interface IndexInput { +/** An input for mutations affecting `Site` */ +export interface SiteInput { + /** Unique identifier for this site */ id?: string; + /** Reference to the metaschema database this site belongs to */ databaseId: string; - tableId: string; - name?: string; - fieldIds?: string[]; - includeFieldIds?: string[]; - accessMethod?: string; - indexParams?: unknown; - whereClause?: unknown; - isUnique?: boolean; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; + /** Display title for the site (max 120 characters) */ + title?: string; + /** Short description of the site (max 120 characters) */ + description?: string; + /** Open Graph image used for social media link previews */ + ogImage?: ConstructiveInternalTypeImage; + /** Browser favicon attachment */ + favicon?: ConstructiveInternalTypeAttachment; + /** Apple touch icon for iOS home screen bookmarks */ + appleTouchIcon?: ConstructiveInternalTypeImage; + /** Primary logo image for the site */ + logo?: ConstructiveInternalTypeImage; + /** PostgreSQL database name this site connects to */ + dbname?: string; +} +export interface CreateUserInput { + clientMutationId?: string; + /** The `User` to be created by this mutation. */ + user: UserInput; +} +/** An input for mutations affecting `User` */ +export interface UserInput { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; createdAt?: string; updatedAt?: string; } @@ -8646,28 +9081,6 @@ export interface LimitsModuleInput { entityTableId?: string; actorTableId?: string; } -export interface CreateSchemaInput { - clientMutationId?: string; - /** The `Schema` to be created by this mutation. */ - schema: SchemaInput; -} -/** An input for mutations affecting `Schema` */ -export interface SchemaInput { - id?: string; - databaseId: string; - name: string; - schemaName: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface CreateProfilesModuleInput { clientMutationId?: string; /** The `ProfilesModule` to be created by this mutation. */ @@ -8687,7 +9100,6 @@ export interface ProfilesModuleInput { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; - bitlen?: number; membershipType: number; entityTableId?: string; actorTableId?: string; @@ -8695,27 +9107,149 @@ export interface ProfilesModuleInput { membershipsTableId?: string; prefix?: string; } -export interface CreateOrgInviteInput { +export interface CreateIndexInput { clientMutationId?: string; - /** The `OrgInvite` to be created by this mutation. */ - orgInvite: OrgInviteInput; + /** The `Index` to be created by this mutation. */ + index: IndexInput; } -/** An input for mutations affecting `OrgInvite` */ -export interface OrgInviteInput { +/** An input for mutations affecting `Index` */ +export interface IndexInput { + id?: string; + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: unknown; + whereClause?: unknown; + isUnique?: boolean; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppMembershipInput { + clientMutationId?: string; + /** The `AppMembership` to be created by this mutation. */ + appMembership: AppMembershipInput; +} +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId: string; + profileId?: string; +} +export interface CreateOrgMembershipInput { + clientMutationId?: string; + /** The `OrgMembership` to be created by this mutation. */ + orgMembership: OrgMembershipInput; +} +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId: string; + /** References the entity (org or group) this membership belongs to */ + entityId: string; + profileId?: string; +} +export interface CreateInviteInput { + clientMutationId?: string; + /** The `Invite` to be created by this mutation. */ + invite: InviteInput; +} +/** An input for mutations affecting `Invite` */ +export interface InviteInput { + id?: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; - receiverId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; - entityId: string; +} +export interface CreateSchemaInput { + clientMutationId?: string; + /** The `Schema` to be created by this mutation. */ + schema: SchemaInput; +} +/** An input for mutations affecting `Schema` */ +export interface SchemaInput { + id?: string; + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; } export interface CreateHierarchyModuleInput { clientMutationId?: string; @@ -8745,6 +9279,38 @@ export interface HierarchyModuleInput { isManagerOfFunction?: string; createdAt?: string; } +export interface CreateOrgInviteInput { + clientMutationId?: string; + /** The `OrgInvite` to be created by this mutation. */ + orgInvite: OrgInviteInput; +} +/** An input for mutations affecting `OrgInvite` */ +export interface OrgInviteInput { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} export interface CreateForeignKeyConstraintInput { clientMutationId?: string; /** The `ForeignKeyConstraint` to be created by this mutation. */ @@ -8898,6 +9464,137 @@ export interface FieldInput { createdAt?: string; updatedAt?: string; } +export interface CreateRelationProvisionInput { + clientMutationId?: string; + /** The `RelationProvision` to be created by this mutation. */ + relationProvision: RelationProvisionInput; +} +/** An input for mutations affecting `RelationProvision` */ +export interface RelationProvisionInput { + /** Unique identifier for this relation provision row. */ + id?: string; + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + databaseId: string; + /** + * The type of relation to create. Uses SuperCase naming matching the node_type_registry: + * - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. + * - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. + * - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. + * - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). + * Each relation type uses a different subset of columns on this table. Required. + */ + relationType: string; + /** + * The source table in the relation. Required. + * - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). + * - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. + * - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). + * - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. + */ + sourceTableId: string; + /** + * The target table in the relation. Required. + * - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). + * - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). + * - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). + * - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. + */ + targetTableId: string; + /** + * FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. + * - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). + * - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). + * For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. + * Ignored for RelationManyToMany — use source_field_name/target_field_name instead. + */ + fieldName?: string; + /** FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). */ + deleteAction?: string; + /** + * Whether the FK field is NOT NULL. Defaults to true. + * - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). + * - RelationHasMany: set to false if the child can exist without a parent. + * - RelationHasOne: typically true. + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + isRequired?: boolean; + /** + * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). + * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. + * - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + junctionTableId?: string; + /** For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. */ + junctionTableName?: string; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + sourceFieldName?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + targetFieldName?: string; + /** + * For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. + * - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. + * - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. + * use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + useCompositeKey?: boolean; + /** + * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. + * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeType?: string; + /** + * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Only used when node_type is set. Structure varies by node_type. Examples: + * - DataId: {"field_name": "id"} (default field name is 'id') + * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} + * - DataDirectOwner: {"owner_field_name": "owner_id"} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeData?: unknown; + /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ + grantRoles?: string[]; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: unknown; + /** + * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. + * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyType?: string; + /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPrivileges?: string[]; + /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ + policyRole?: string; + /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPermissive?: boolean; + /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ + policyName?: string; + /** + * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: + * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} + * - AuthzDirectOwner: {"owner_field": "owner_id"} + * - AuthzMembership: {"membership_type": 2} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyData?: unknown; + /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */ + outFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outJunctionTableId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outSourceFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outTargetFieldId?: string; +} export interface CreateMembershipsModuleInput { clientMutationId?: string; /** The `MembershipsModule` to be created by this mutation. */ @@ -8963,30 +9660,22 @@ export interface ViewTablePatch { } export interface UpdateApiSchemaInput { clientMutationId?: string; + /** Unique identifier for this API-schema mapping */ id: string; /** An object where the defined keys will be set on the `ApiSchema` being updated. */ apiSchemaPatch: ApiSchemaPatch; } /** Represents an update to a `ApiSchema`. Fields that are set will be updated. */ export interface ApiSchemaPatch { + /** Unique identifier for this API-schema mapping */ id?: string; + /** Reference to the metaschema database */ databaseId?: string; + /** Metaschema schema being exposed through the API */ schemaId?: string; + /** API that exposes this schema */ apiId?: string; } -export interface UpdateSiteThemeInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SiteTheme` being updated. */ - siteThemePatch: SiteThemePatch; -} -/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ -export interface SiteThemePatch { - id?: string; - databaseId?: string; - siteId?: string; - theme?: unknown; -} export interface UpdateOrgMemberInput { clientMutationId?: string; id: string; @@ -8996,20 +9685,30 @@ export interface UpdateOrgMemberInput { /** Represents an update to a `OrgMember`. Fields that are set will be updated. */ export interface OrgMemberPatch { id?: string; + /** Whether this member has admin privileges */ isAdmin?: boolean; + /** References the user who is a member */ actorId?: string; + /** References the entity (org or group) this member belongs to */ entityId?: string; } -export interface UpdateAppPermissionDefaultInput { +export interface UpdateSiteThemeInput { clientMutationId?: string; + /** Unique identifier for this theme record */ id: string; - /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ - appPermissionDefaultPatch: AppPermissionDefaultPatch; + /** An object where the defined keys will be set on the `SiteTheme` being updated. */ + siteThemePatch: SiteThemePatch; } -/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ -export interface AppPermissionDefaultPatch { +/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ +export interface SiteThemePatch { + /** Unique identifier for this theme record */ id?: string; - permissions?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this theme belongs to */ + siteId?: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme?: unknown; } export interface UpdateRefInput { clientMutationId?: string; @@ -9048,34 +9747,6 @@ export interface StorePatch { hash?: string; createdAt?: string; } -export interface UpdateApiModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ApiModule` being updated. */ - apiModulePatch: ApiModulePatch; -} -/** Represents an update to a `ApiModule`. Fields that are set will be updated. */ -export interface ApiModulePatch { - id?: string; - databaseId?: string; - apiId?: string; - name?: string; - data?: unknown; -} -export interface UpdateSiteModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SiteModule` being updated. */ - siteModulePatch: SiteModulePatch; -} -/** Represents an update to a `SiteModule`. Fields that are set will be updated. */ -export interface SiteModulePatch { - id?: string; - databaseId?: string; - siteId?: string; - name?: string; - data?: unknown; -} export interface UpdateEncryptedSecretsModuleInput { clientMutationId?: string; id: string; @@ -9132,28 +9803,57 @@ export interface UuidModulePatch { uuidFunction?: string; uuidSeed?: string; } -export interface UpdateRoleTypeInput { +export interface UpdateAppPermissionDefaultInput { clientMutationId?: string; - id: number; - /** An object where the defined keys will be set on the `RoleType` being updated. */ - roleTypePatch: RoleTypePatch; + id: string; + /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ + appPermissionDefaultPatch: AppPermissionDefaultPatch; } -/** Represents an update to a `RoleType`. Fields that are set will be updated. */ -export interface RoleTypePatch { - id?: number; +/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ +export interface AppPermissionDefaultPatch { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; +} +export interface UpdateApiModuleInput { + clientMutationId?: string; + /** Unique identifier for this API module record */ + id: string; + /** An object where the defined keys will be set on the `ApiModule` being updated. */ + apiModulePatch: ApiModulePatch; +} +/** Represents an update to a `ApiModule`. Fields that are set will be updated. */ +export interface ApiModulePatch { + /** Unique identifier for this API module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** API this module configuration belongs to */ + apiId?: string; + /** Module name (e.g. auth, uploads, webhooks) */ name?: string; + /** JSON configuration data for this module */ + data?: unknown; } -export interface UpdateOrgPermissionDefaultInput { +export interface UpdateSiteModuleInput { clientMutationId?: string; + /** Unique identifier for this site module record */ id: string; - /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + /** An object where the defined keys will be set on the `SiteModule` being updated. */ + siteModulePatch: SiteModulePatch; } -/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ -export interface OrgPermissionDefaultPatch { +/** Represents an update to a `SiteModule`. Fields that are set will be updated. */ +export interface SiteModulePatch { + /** Unique identifier for this site module record */ id?: string; - permissions?: string; - entityId?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this module configuration belongs to */ + siteId?: string; + /** Module name (e.g. user_auth_module, analytics) */ + name?: string; + /** JSON configuration data for this module */ + data?: unknown; } export interface UpdateSchemaGrantInput { clientMutationId?: string; @@ -9185,21 +9885,6 @@ export interface TriggerFunctionPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateViewGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ViewGrant` being updated. */ - viewGrantPatch: ViewGrantPatch; -} -/** Represents an update to a `ViewGrant`. Fields that are set will be updated. */ -export interface ViewGrantPatch { - id?: string; - databaseId?: string; - viewId?: string; - roleName?: string; - privilege?: string; - withGrantOption?: boolean; -} export interface UpdateViewRuleInput { clientMutationId?: string; id: string; @@ -9226,7 +9911,9 @@ export interface UpdateAppAdminGrantInput { /** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ export interface AppAdminGrantPatch { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId?: string; grantorId?: string; createdAt?: string; @@ -9241,50 +9928,93 @@ export interface UpdateAppOwnerGrantInput { /** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ export interface AppOwnerGrantPatch { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + /** An object where the defined keys will be set on the `RoleType` being updated. */ + roleTypePatch: RoleTypePatch; +} +/** Represents an update to a `RoleType`. Fields that are set will be updated. */ +export interface RoleTypePatch { + id?: number; + name?: string; +} +export interface UpdateOrgPermissionDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ - appLimitDefaultPatch: AppLimitDefaultPatch; + /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; } -/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ -export interface AppLimitDefaultPatch { +/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ +export interface OrgPermissionDefaultPatch { id?: string; - name?: string; - max?: number; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId?: string; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateDefaultPrivilegeInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; + /** An object where the defined keys will be set on the `DefaultPrivilege` being updated. */ + defaultPrivilegePatch: DefaultPrivilegePatch; } -/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ -export interface OrgLimitDefaultPatch { +/** Represents an update to a `DefaultPrivilege`. Fields that are set will be updated. */ +export interface DefaultPrivilegePatch { id?: string; - name?: string; - max?: number; + databaseId?: string; + schemaId?: string; + objectType?: string; + privilege?: string; + granteeName?: string; + isGrant?: boolean; +} +export interface UpdateViewGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ViewGrant` being updated. */ + viewGrantPatch: ViewGrantPatch; +} +/** Represents an update to a `ViewGrant`. Fields that are set will be updated. */ +export interface ViewGrantPatch { + id?: string; + databaseId?: string; + viewId?: string; + granteeName?: string; + privilege?: string; + withGrantOption?: boolean; + isGrant?: boolean; } export interface UpdateApiInput { clientMutationId?: string; + /** Unique identifier for this API */ id: string; /** An object where the defined keys will be set on the `Api` being updated. */ apiPatch: ApiPatch; } /** Represents an update to a `Api`. Fields that are set will be updated. */ export interface ApiPatch { + /** Unique identifier for this API */ id?: string; + /** Reference to the metaschema database this API serves */ databaseId?: string; + /** Unique name for this API within its database */ name?: string; + /** PostgreSQL database name to connect to */ dbname?: string; + /** PostgreSQL role used for authenticated requests */ roleName?: string; + /** PostgreSQL role used for anonymous/unauthenticated requests */ anonRole?: string; + /** Whether this API is publicly accessible without authentication */ isPublic?: boolean; } export interface UpdateConnectedAccountsModuleInput { @@ -9335,22 +10065,6 @@ export interface PhoneNumbersModulePatch { ownerTableId?: string; tableName?: string; } -export interface UpdateTableModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `TableModule` being updated. */ - tableModulePatch: TableModulePatch; -} -/** Represents an update to a `TableModule`. Fields that are set will be updated. */ -export interface TableModulePatch { - id?: string; - databaseId?: string; - privateSchemaId?: string; - tableId?: string; - nodeType?: string; - data?: unknown; - fields?: string[]; -} export interface UpdateUsersModuleInput { clientMutationId?: string; id: string; @@ -9376,8 +10090,11 @@ export interface UpdateOrgAdminGrantInput { /** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ export interface OrgAdminGrantPatch { id?: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean; + /** The member receiving or losing the admin grant */ actorId?: string; + /** The entity (org or group) this admin grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; @@ -9392,8 +10109,11 @@ export interface UpdateOrgOwnerGrantInput { /** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ export interface OrgOwnerGrantPatch { id?: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; + /** The member receiving or losing the ownership grant */ actorId?: string; + /** The entity (org or group) this ownership grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; @@ -9409,24 +10129,42 @@ export interface UpdateCryptoAddressInput { export interface CryptoAddressPatch { id?: string; ownerId?: string; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean; createdAt?: string; updatedAt?: string; } -export interface UpdateMembershipTypeInput { +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ + appLimitDefaultPatch: AppLimitDefaultPatch; +} +/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ +export interface AppLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: number; +} +export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; - id: number; - /** An object where the defined keys will be set on the `MembershipType` being updated. */ - membershipTypePatch: MembershipTypePatch; + id: string; + /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ + orgLimitDefaultPatch: OrgLimitDefaultPatch; } -/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ -export interface MembershipTypePatch { - id?: number; +/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ +export interface OrgLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ name?: string; - description?: string; - prefix?: string; + /** Default maximum usage allowed for this limit */ + max?: number; } export interface UpdateDatabaseInput { clientMutationId?: string; @@ -9445,40 +10183,6 @@ export interface DatabasePatch { createdAt?: string; updatedAt?: string; } -export interface UpdateLimitFunctionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `LimitFunction` being updated. */ - limitFunctionPatch: LimitFunctionPatch; -} -/** Represents an update to a `LimitFunction`. Fields that are set will be updated. */ -export interface LimitFunctionPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - label?: string; - description?: string; - data?: unknown; - security?: number; -} -export interface UpdateTableGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `TableGrant` being updated. */ - tableGrantPatch: TableGrantPatch; -} -/** Represents an update to a `TableGrant`. Fields that are set will be updated. */ -export interface TableGrantPatch { - id?: string; - databaseId?: string; - tableId?: string; - privilege?: string; - roleName?: string; - fieldIds?: string[]; - createdAt?: string; - updatedAt?: string; -} export interface UpdateCryptoAddressesModuleInput { clientMutationId?: string; id: string; @@ -9512,6 +10216,7 @@ export interface ConnectedAccountPatch { identifier?: string; /** Additional profile details extracted from this login method */ details?: unknown; + /** Whether this connected account has been verified */ isVerified?: boolean; createdAt?: string; updatedAt?: string; @@ -9526,13 +10231,159 @@ export interface UpdatePhoneNumberInput { export interface PhoneNumberPatch { id?: string; ownerId?: string; + /** Country calling code (e.g. +1, +44) */ cc?: string; + /** The phone number without country code */ number?: string; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean; + /** Whether this is the user's primary phone number */ isPrimary?: boolean; createdAt?: string; updatedAt?: string; } +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** An object where the defined keys will be set on the `MembershipType` being updated. */ + membershipTypePatch: MembershipTypePatch; +} +/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ +export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id?: number; + /** Human-readable name of the membership type */ + name?: string; + /** Description of what this membership type represents */ + description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string; +} +export interface UpdateFieldModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `FieldModule` being updated. */ + fieldModulePatch: FieldModulePatch; +} +/** Represents an update to a `FieldModule`. Fields that are set will be updated. */ +export interface FieldModulePatch { + id?: string; + databaseId?: string; + privateSchemaId?: string; + tableId?: string; + fieldId?: string; + nodeType?: string; + data?: unknown; + triggers?: string[]; + functions?: string[]; +} +export interface UpdateTableModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TableModule` being updated. */ + tableModulePatch: TableModulePatch; +} +/** Represents an update to a `TableModule`. Fields that are set will be updated. */ +export interface TableModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodeType?: string; + useRls?: boolean; + data?: unknown; + fields?: string[]; +} +export interface UpdateTableTemplateModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TableTemplateModule` being updated. */ + tableTemplateModulePatch: TableTemplateModulePatch; +} +/** Represents an update to a `TableTemplateModule`. Fields that are set will be updated. */ +export interface TableTemplateModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + nodeType?: string; + data?: unknown; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. */ + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +/** Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. */ +export interface OrgChartEdgeGrantPatch { + id?: string; + /** Organization this grant applies to */ + entityId?: string; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean; + /** Job title or role name being assigned in this grant */ + positionTitle?: string; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + name: string; + /** An object where the defined keys will be set on the `NodeTypeRegistry` being updated. */ + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +/** Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. */ +export interface NodeTypeRegistryPatch { + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + name?: string; + /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ + slug?: string; + /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) */ + category?: string; + /** Human-readable display name for UI */ + displayName?: string; + /** Description of what this node type does */ + description?: string; + /** JSON Schema defining valid parameters for this node type */ + parameterSchema?: unknown; + /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTableGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TableGrant` being updated. */ + tableGrantPatch: TableGrantPatch; +} +/** Represents an update to a `TableGrant`. Fields that are set will be updated. */ +export interface TableGrantPatch { + id?: string; + databaseId?: string; + tableId?: string; + privilege?: string; + granteeName?: string; + fieldIds?: string[]; + isGrant?: boolean; + createdAt?: string; + updatedAt?: string; +} export interface UpdateAppPermissionInput { clientMutationId?: string; id: string; @@ -9542,9 +10393,13 @@ export interface UpdateAppPermissionInput { /** Represents an update to a `AppPermission`. Fields that are set will be updated. */ export interface AppPermissionPatch { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface UpdateOrgPermissionInput { @@ -9556,9 +10411,13 @@ export interface UpdateOrgPermissionInput { /** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ export interface OrgPermissionPatch { id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; } export interface UpdateAppLimitInput { @@ -9570,9 +10429,13 @@ export interface UpdateAppLimitInput { /** Represents an update to a `AppLimit`. Fields that are set will be updated. */ export interface AppLimitPatch { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId?: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; } export interface UpdateAppAchievementInput { @@ -9585,7 +10448,9 @@ export interface UpdateAppAchievementInput { export interface AppAchievementPatch { id?: string; actorId?: string; + /** Name identifier of the level requirement being tracked */ name?: string; + /** Cumulative count of completed steps toward this requirement */ count?: number; createdAt?: string; updatedAt?: string; @@ -9600,7 +10465,9 @@ export interface UpdateAppStepInput { export interface AppStepPatch { id?: string; actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name?: string; + /** Number of units completed in this step action */ count?: number; createdAt?: string; updatedAt?: string; @@ -9614,8 +10481,11 @@ export interface UpdateClaimedInviteInput { /** Represents an update to a `ClaimedInvite`. Fields that are set will be updated. */ export interface ClaimedInvitePatch { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; @@ -9623,95 +10493,44 @@ export interface ClaimedInvitePatch { export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; -} -export interface UpdateSiteMetadatumInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ - siteMetadatumPatch: SiteMetadatumPatch; -} -/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ -export interface SiteMetadatumPatch { - id?: string; - databaseId?: string; - siteId?: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; -} -export interface UpdateFieldModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `FieldModule` being updated. */ - fieldModulePatch: FieldModulePatch; -} -/** Represents an update to a `FieldModule`. Fields that are set will be updated. */ -export interface FieldModulePatch { - id?: string; - databaseId?: string; - privateSchemaId?: string; - tableId?: string; - fieldId?: string; - nodeType?: string; - data?: unknown; - triggers?: string[]; - functions?: string[]; -} -export interface UpdateTableTemplateModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `TableTemplateModule` being updated. */ - tableTemplateModulePatch: TableTemplateModulePatch; -} -/** Represents an update to a `TableTemplateModule`. Fields that are set will be updated. */ -export interface TableTemplateModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - nodeType?: string; - data?: unknown; -} -export interface UpdateNodeTypeRegistryInput { - clientMutationId?: string; - /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ - name: string; - /** An object where the defined keys will be set on the `NodeTypeRegistry` being updated. */ - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -/** Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. */ -export interface NodeTypeRegistryPatch { - /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ - name?: string; - /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ - slug?: string; - /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types) */ - category?: string; - /** Human-readable display name for UI */ - displayName?: string; - /** Description of what this node type does */ - description?: string; - /** JSON Schema defining valid parameters for this node type */ - parameterSchema?: unknown; - /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ - tags?: string[]; + /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ +export interface AppMembershipDefaultPatch { + id?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; + /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ + siteMetadatumPatch: SiteMetadatumPatch; +} +/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ +export interface SiteMetadatumPatch { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this metadata belongs to */ + siteId?: string; + /** Page title for SEO (max 120 characters) */ + title?: string; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage; + /** Upload for Open Graph image for social media previews */ + ogImageUpload?: File; } export interface UpdateObjectInput { clientMutationId?: string; @@ -9785,9 +10604,13 @@ export interface UpdateOrgLimitInput { /** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ export interface OrgLimitPatch { id?: string; + /** Name identifier of the limit being tracked */ name?: string; + /** User whose usage is being tracked against this limit */ actorId?: string; + /** Current usage count for this actor and limit */ num?: number; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number; entityId?: string; } @@ -9800,8 +10623,11 @@ export interface UpdateAppGrantInput { /** Represents an update to a `AppGrant`. Fields that are set will be updated. */ export interface AppGrantPatch { id?: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean; + /** The member receiving or losing the permission grant */ actorId?: string; grantorId?: string; createdAt?: string; @@ -9816,28 +10642,80 @@ export interface UpdateOrgClaimedInviteInput { /** Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. */ export interface OrgClaimedInvitePatch { id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; + /** User ID of the original invitation sender */ senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string; createdAt?: string; updatedAt?: string; entityId?: string; } +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ + orgChartEdgePatch: OrgChartEdgePatch; +} +/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ +export interface OrgChartEdgePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId?: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface UpdateDomainInput { clientMutationId?: string; + /** Unique identifier for this domain record */ id: string; /** An object where the defined keys will be set on the `Domain` being updated. */ domainPatch: DomainPatch; } /** Represents an update to a `Domain`. Fields that are set will be updated. */ export interface DomainPatch { + /** Unique identifier for this domain record */ id?: string; + /** Reference to the metaschema database this domain belongs to */ databaseId?: string; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ apiId?: string; + /** Site this domain routes to (mutually exclusive with api_id) */ siteId?: string; + /** Subdomain portion of the hostname */ subdomain?: ConstructiveInternalTypeHostname; + /** Root domain of the hostname */ domain?: ConstructiveInternalTypeHostname; } +export interface UpdateSessionsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SessionsModule` being updated. */ + sessionsModulePatch: SessionsModulePatch; +} +/** Represents an update to a `SessionsModule`. Fields that are set will be updated. */ +export interface SessionsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; +} export interface UpdateOrgGrantInput { clientMutationId?: string; id: string; @@ -9847,9 +10725,13 @@ export interface UpdateOrgGrantInput { /** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ export interface OrgGrantPatch { id?: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean; + /** The member receiving or losing the permission grant */ actorId?: string; + /** The entity (org or group) this permission grant applies to */ entityId?: string; grantorId?: string; createdAt?: string; @@ -9868,46 +10750,35 @@ export interface OrgMembershipDefaultPatch { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean; + /** References the entity these membership defaults apply to */ entityId?: string; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean; } -export interface UpdateSessionsModuleInput { +export interface UpdateRlsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `SessionsModule` being updated. */ - sessionsModulePatch: SessionsModulePatch; + /** An object where the defined keys will be set on the `RlsModule` being updated. */ + rlsModulePatch: RlsModulePatch; } -/** Represents an update to a `SessionsModule`. Fields that are set will be updated. */ -export interface SessionsModulePatch { +/** Represents an update to a `RlsModule`. Fields that are set will be updated. */ +export interface RlsModulePatch { id?: string; databaseId?: string; + apiId?: string; schemaId?: string; - sessionsTableId?: string; + privateSchemaId?: string; sessionCredentialsTableId?: string; - authSettingsTableId?: string; + sessionsTableId?: string; usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Email` being updated. */ - emailPatch: EmailPatch; -} -/** Represents an update to a `Email`. Fields that are set will be updated. */ -export interface EmailPatch { - id?: string; - ownerId?: string; - email?: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; } export interface UpdateAppLevelRequirementInput { clientMutationId?: string; @@ -9918,10 +10789,15 @@ export interface UpdateAppLevelRequirementInput { /** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ export interface AppLevelRequirementPatch { id?: string; + /** Name identifier of the requirement (matches step names) */ name?: string; + /** Name of the level this requirement belongs to */ level?: string; + /** Human-readable description of what this requirement entails */ description?: string; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number; + /** Display ordering priority; lower values appear first */ priority?: number; createdAt?: string; updatedAt?: string; @@ -9935,12 +10811,19 @@ export interface UpdateAuditLogInput { /** Represents an update to a `AuditLog`. Fields that are set will be updated. */ export interface AuditLogPatch { id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string; + /** User who performed the authentication action */ actorId?: string; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ userAgent?: string; + /** IP address of the client that initiated the auth event */ ipAddress?: string; + /** Whether the authentication attempt succeeded */ success?: boolean; + /** Timestamp when the audit event was recorded */ createdAt?: string; } export interface UpdateAppLevelInput { @@ -9952,33 +10835,37 @@ export interface UpdateAppLevelInput { /** Represents an update to a `AppLevel`. Fields that are set will be updated. */ export interface AppLevelPatch { id?: string; + /** Unique name of the level */ name?: string; + /** Human-readable description of what this level represents */ description?: string; + /** Badge or icon image associated with this level */ image?: ConstructiveInternalTypeImage; + /** Optional owner (actor) who created or manages this level */ ownerId?: string; createdAt?: string; updatedAt?: string; + /** Upload for Badge or icon image associated with this level */ + imageUpload?: File; } -export interface UpdateRlsModuleInput { +export interface UpdateEmailInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `RlsModule` being updated. */ - rlsModulePatch: RlsModulePatch; + /** An object where the defined keys will be set on the `Email` being updated. */ + emailPatch: EmailPatch; } -/** Represents an update to a `RlsModule`. Fields that are set will be updated. */ -export interface RlsModulePatch { +/** Represents an update to a `Email`. Fields that are set will be updated. */ +export interface EmailPatch { id?: string; - databaseId?: string; - apiId?: string; - schemaId?: string; - privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: string; + ownerId?: string; + /** The email address */ + email?: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; } export interface UpdateDenormalizedTableFieldInput { clientMutationId?: string; @@ -10104,107 +10991,6 @@ export interface ViewPatch { scope?: number; tags?: string[]; } -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembership` being updated. */ - appMembershipPatch: AppMembershipPatch; -} -/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ -export interface AppMembershipPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId?: string; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembership` being updated. */ - orgMembershipPatch: OrgMembershipPatch; -} -/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ -export interface OrgMembershipPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId?: string; - entityId?: string; -} -export interface UpdateAppInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `App` being updated. */ - appPatch: AppPatch; -} -/** Represents an update to a `App`. Fields that are set will be updated. */ -export interface AppPatch { - id?: string; - databaseId?: string; - siteId?: string; - name?: string; - appImage?: ConstructiveInternalTypeImage; - appStoreLink?: ConstructiveInternalTypeUrl; - appStoreId?: string; - appIdPrefix?: string; - playStoreLink?: ConstructiveInternalTypeUrl; -} -export interface UpdateSiteInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Site` being updated. */ - sitePatch: SitePatch; -} -/** Represents an update to a `Site`. Fields that are set will be updated. */ -export interface SitePatch { - id?: string; - databaseId?: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - favicon?: ConstructiveInternalTypeAttachment; - appleTouchIcon?: ConstructiveInternalTypeImage; - logo?: ConstructiveInternalTypeImage; - dbname?: string; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `User` being updated. */ - userPatch: UserPatch; -} -/** Represents an update to a `User`. Fields that are set will be updated. */ -export interface UserPatch { - id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - createdAt?: string; - updatedAt?: string; -} export interface UpdatePermissionsModuleInput { clientMutationId?: string; id: string; @@ -10231,27 +11017,49 @@ export interface PermissionsModulePatch { getByMask?: string; getMaskByName?: string; } -export interface UpdatePrimaryKeyConstraintInput { +export interface UpdateSecureTableProvisionInput { clientMutationId?: string; + /** Unique identifier for this provision row. */ id: string; - /** An object where the defined keys will be set on the `PrimaryKeyConstraint` being updated. */ - primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; + /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */ + secureTableProvisionPatch: SecureTableProvisionPatch; } -/** Represents an update to a `PrimaryKeyConstraint`. Fields that are set will be updated. */ -export interface PrimaryKeyConstraintPatch { +/** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */ +export interface SecureTableProvisionPatch { + /** Unique identifier for this provision row. */ id?: string; + /** The database this provision belongs to. Required. */ databaseId?: string; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ tableId?: string; - name?: string; - type?: string; - fieldIds?: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: string; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ + useRls?: boolean; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + nodeData?: unknown; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string[]; + /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ + grantPrivileges?: unknown; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string[]; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; } export interface UpdateTriggerInput { clientMutationId?: string; @@ -10275,21 +11083,20 @@ export interface TriggerPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateCheckConstraintInput { +export interface UpdatePrimaryKeyConstraintInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `CheckConstraint` being updated. */ - checkConstraintPatch: CheckConstraintPatch; + /** An object where the defined keys will be set on the `PrimaryKeyConstraint` being updated. */ + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; } -/** Represents an update to a `CheckConstraint`. Fields that are set will be updated. */ -export interface CheckConstraintPatch { +/** Represents an update to a `PrimaryKeyConstraint`. Fields that are set will be updated. */ +export interface PrimaryKeyConstraintPatch { id?: string; databaseId?: string; tableId?: string; name?: string; type?: string; fieldIds?: string[]; - expr?: unknown; smartTags?: unknown; category?: ObjectCategory; module?: string; @@ -10321,22 +11128,21 @@ export interface UniqueConstraintPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateProcedureInput { +export interface UpdateCheckConstraintInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `Procedure` being updated. */ - procedurePatch: ProcedurePatch; + /** An object where the defined keys will be set on the `CheckConstraint` being updated. */ + checkConstraintPatch: CheckConstraintPatch; } -/** Represents an update to a `Procedure`. Fields that are set will be updated. */ -export interface ProcedurePatch { +/** Represents an update to a `CheckConstraint`. Fields that are set will be updated. */ +export interface CheckConstraintPatch { id?: string; databaseId?: string; + tableId?: string; name?: string; - argnames?: string[]; - argtypes?: string[]; - argdefaults?: string[]; - langName?: string; - definition?: string; + type?: string; + fieldIds?: string[]; + expr?: unknown; smartTags?: unknown; category?: ObjectCategory; module?: string; @@ -10357,7 +11163,7 @@ export interface PolicyPatch { databaseId?: string; tableId?: string; name?: string; - roleName?: string; + granteeName?: string; privilege?: string; permissive?: boolean; disabled?: boolean; @@ -10371,52 +11177,90 @@ export interface PolicyPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateInviteInput { +export interface UpdateAppInput { clientMutationId?: string; + /** Unique identifier for this app */ id: string; - /** An object where the defined keys will be set on the `Invite` being updated. */ - invitePatch: InvitePatch; + /** An object where the defined keys will be set on the `App` being updated. */ + appPatch: AppPatch; } -/** Represents an update to a `Invite`. Fields that are set will be updated. */ -export interface InvitePatch { +/** Represents an update to a `App`. Fields that are set will be updated. */ +export interface AppPatch { + /** Unique identifier for this app */ id?: string; - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: unknown; - expiresAt?: string; - createdAt?: string; - updatedAt?: string; + /** Reference to the metaschema database this app belongs to */ + databaseId?: string; + /** Site this app is associated with (one app per site) */ + siteId?: string; + /** Display name of the app */ + name?: string; + /** App icon or promotional image */ + appImage?: ConstructiveInternalTypeImage; + /** URL to the Apple App Store listing */ + appStoreLink?: ConstructiveInternalTypeUrl; + /** Apple App Store application identifier */ + appStoreId?: string; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ + appIdPrefix?: string; + /** URL to the Google Play Store listing */ + playStoreLink?: ConstructiveInternalTypeUrl; + /** Upload for App icon or promotional image */ + appImageUpload?: File; } -export interface UpdateIndexInput { +export interface UpdateSiteInput { clientMutationId?: string; + /** Unique identifier for this site */ id: string; - /** An object where the defined keys will be set on the `Index` being updated. */ - indexPatch: IndexPatch; + /** An object where the defined keys will be set on the `Site` being updated. */ + sitePatch: SitePatch; } -/** Represents an update to a `Index`. Fields that are set will be updated. */ -export interface IndexPatch { +/** Represents an update to a `Site`. Fields that are set will be updated. */ +export interface SitePatch { + /** Unique identifier for this site */ id?: string; + /** Reference to the metaschema database this site belongs to */ databaseId?: string; - tableId?: string; - name?: string; - fieldIds?: string[]; - includeFieldIds?: string[]; - accessMethod?: string; - indexParams?: unknown; - whereClause?: unknown; - isUnique?: boolean; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; + /** Display title for the site (max 120 characters) */ + title?: string; + /** Short description of the site (max 120 characters) */ + description?: string; + /** Open Graph image used for social media link previews */ + ogImage?: ConstructiveInternalTypeImage; + /** Browser favicon attachment */ + favicon?: ConstructiveInternalTypeAttachment; + /** Apple touch icon for iOS home screen bookmarks */ + appleTouchIcon?: ConstructiveInternalTypeImage; + /** Primary logo image for the site */ + logo?: ConstructiveInternalTypeImage; + /** PostgreSQL database name this site connects to */ + dbname?: string; + /** Upload for Open Graph image used for social media link previews */ + ogImageUpload?: File; + /** Upload for Browser favicon attachment */ + faviconUpload?: File; + /** Upload for Apple touch icon for iOS home screen bookmarks */ + appleTouchIconUpload?: File; + /** Upload for Primary logo image for the site */ + logoUpload?: File; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `User` being updated. */ + userPatch: UserPatch; +} +/** Represents an update to a `User`. Fields that are set will be updated. */ +export interface UserPatch { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; createdAt?: string; updatedAt?: string; + /** File upload for the `profilePicture` field. */ + profilePictureUpload?: File; } export interface UpdateLimitsModuleInput { clientMutationId?: string; @@ -10445,29 +11289,6 @@ export interface LimitsModulePatch { entityTableId?: string; actorTableId?: string; } -export interface UpdateSchemaInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Schema` being updated. */ - schemaPatch: SchemaPatch; -} -/** Represents an update to a `Schema`. Fields that are set will be updated. */ -export interface SchemaPatch { - id?: string; - databaseId?: string; - name?: string; - schemaName?: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface UpdateProfilesModuleInput { clientMutationId?: string; id: string; @@ -10488,7 +11309,6 @@ export interface ProfilesModulePatch { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; - bitlen?: number; membershipType?: number; entityTableId?: string; actorTableId?: string; @@ -10496,28 +11316,154 @@ export interface ProfilesModulePatch { membershipsTableId?: string; prefix?: string; } -export interface UpdateOrgInviteInput { +export interface UpdateIndexInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgInvite` being updated. */ - orgInvitePatch: OrgInvitePatch; + /** An object where the defined keys will be set on the `Index` being updated. */ + indexPatch: IndexPatch; } -/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ -export interface OrgInvitePatch { +/** Represents an update to a `Index`. Fields that are set will be updated. */ +export interface IndexPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: unknown; + whereClause?: unknown; + isUnique?: boolean; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppMembershipInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppMembership` being updated. */ + appMembershipPatch: AppMembershipPatch; +} +/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ +export interface AppMembershipPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId?: string; + profileId?: string; +} +export interface UpdateOrgMembershipInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembership` being updated. */ + orgMembershipPatch: OrgMembershipPatch; +} +/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ +export interface OrgMembershipPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId?: string; + /** References the entity (org or group) this membership belongs to */ + entityId?: string; + profileId?: string; +} +export interface UpdateInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Invite` being updated. */ + invitePatch: InvitePatch; +} +/** Represents an update to a `Invite`. Fields that are set will be updated. */ +export interface InvitePatch { id?: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ senderId?: string; - receiverId?: string; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; - entityId?: string; +} +export interface UpdateSchemaInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Schema` being updated. */ + schemaPatch: SchemaPatch; +} +/** Represents an update to a `Schema`. Fields that are set will be updated. */ +export interface SchemaPatch { + id?: string; + databaseId?: string; + name?: string; + schemaName?: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; } export interface UpdateHierarchyModuleInput { clientMutationId?: string; @@ -10548,6 +11494,39 @@ export interface HierarchyModulePatch { isManagerOfFunction?: string; createdAt?: string; } +export interface UpdateOrgInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgInvite` being updated. */ + orgInvitePatch: OrgInvitePatch; +} +/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ +export interface OrgInvitePatch { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} export interface UpdateForeignKeyConstraintInput { clientMutationId?: string; id: string; @@ -10706,6 +11685,139 @@ export interface FieldPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateRelationProvisionInput { + clientMutationId?: string; + /** Unique identifier for this relation provision row. */ + id: string; + /** An object where the defined keys will be set on the `RelationProvision` being updated. */ + relationProvisionPatch: RelationProvisionPatch; +} +/** Represents an update to a `RelationProvision`. Fields that are set will be updated. */ +export interface RelationProvisionPatch { + /** Unique identifier for this relation provision row. */ + id?: string; + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + databaseId?: string; + /** + * The type of relation to create. Uses SuperCase naming matching the node_type_registry: + * - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. + * - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. + * - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. + * - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). + * Each relation type uses a different subset of columns on this table. Required. + */ + relationType?: string; + /** + * The source table in the relation. Required. + * - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). + * - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. + * - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). + * - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. + */ + sourceTableId?: string; + /** + * The target table in the relation. Required. + * - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). + * - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). + * - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). + * - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. + */ + targetTableId?: string; + /** + * FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. + * - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). + * - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). + * For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. + * Ignored for RelationManyToMany — use source_field_name/target_field_name instead. + */ + fieldName?: string; + /** FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). */ + deleteAction?: string; + /** + * Whether the FK field is NOT NULL. Defaults to true. + * - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). + * - RelationHasMany: set to false if the child can exist without a parent. + * - RelationHasOne: typically true. + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + isRequired?: boolean; + /** + * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). + * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. + * - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + junctionTableId?: string; + /** For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. */ + junctionTableName?: string; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + sourceFieldName?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + targetFieldName?: string; + /** + * For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. + * - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. + * - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. + * use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + useCompositeKey?: boolean; + /** + * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. + * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeType?: string; + /** + * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Only used when node_type is set. Structure varies by node_type. Examples: + * - DataId: {"field_name": "id"} (default field name is 'id') + * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} + * - DataDirectOwner: {"owner_field_name": "owner_id"} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeData?: unknown; + /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ + grantRoles?: string[]; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: unknown; + /** + * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. + * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyType?: string; + /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPrivileges?: string[]; + /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ + policyRole?: string; + /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPermissive?: boolean; + /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ + policyName?: string; + /** + * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: + * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} + * - AuthzDirectOwner: {"owner_field": "owner_id"} + * - AuthzMembership: {"membership_type": 2} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyData?: unknown; + /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */ + outFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outJunctionTableId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outSourceFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outTargetFieldId?: string; +} export interface UpdateMembershipsModuleInput { clientMutationId?: string; id: string; @@ -10756,18 +11868,16 @@ export interface DeleteViewTableInput { } export interface DeleteApiSchemaInput { clientMutationId?: string; - id: string; -} -export interface DeleteSiteThemeInput { - clientMutationId?: string; + /** Unique identifier for this API-schema mapping */ id: string; } export interface DeleteOrgMemberInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionDefaultInput { +export interface DeleteSiteThemeInput { clientMutationId?: string; + /** Unique identifier for this theme record */ id: string; } export interface DeleteRefInput { @@ -10781,14 +11891,6 @@ export interface DeleteStoreInput { /** The primary unique identifier for the store. */ id: string; } -export interface DeleteApiModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteSiteModuleInput { - clientMutationId?: string; - id: string; -} export interface DeleteEncryptedSecretsModuleInput { clientMutationId?: string; id: string; @@ -10805,23 +11907,25 @@ export interface DeleteUuidModuleInput { clientMutationId?: string; id: string; } -export interface DeleteRoleTypeInput { +export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; - id: number; + id: string; } -export interface DeleteOrgPermissionDefaultInput { +export interface DeleteApiModuleInput { clientMutationId?: string; + /** Unique identifier for this API module record */ id: string; } -export interface DeleteSchemaGrantInput { +export interface DeleteSiteModuleInput { clientMutationId?: string; + /** Unique identifier for this site module record */ id: string; } -export interface DeleteTriggerFunctionInput { +export interface DeleteSchemaGrantInput { clientMutationId?: string; id: string; } -export interface DeleteViewGrantInput { +export interface DeleteTriggerFunctionInput { clientMutationId?: string; id: string; } @@ -10837,16 +11941,25 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} +export interface DeleteViewGrantInput { clientMutationId?: string; id: string; } export interface DeleteApiInput { clientMutationId?: string; + /** Unique identifier for this API */ id: string; } export interface DeleteConnectedAccountsModuleInput { @@ -10861,10 +11974,6 @@ export interface DeletePhoneNumbersModuleInput { clientMutationId?: string; id: string; } -export interface DeleteTableModuleInput { - clientMutationId?: string; - id: string; -} export interface DeleteUsersModuleInput { clientMutationId?: string; id: string; @@ -10881,19 +11990,15 @@ export interface DeleteCryptoAddressInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface DeleteDatabaseInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteLimitFunctionInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteTableGrantInput { +export interface DeleteDatabaseInput { clientMutationId?: string; id: string; } @@ -10909,50 +12014,68 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionInput { +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; +} +export interface DeleteFieldModuleInput { clientMutationId?: string; id: string; } -export interface DeleteOrgPermissionInput { +export interface DeleteTableModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitInput { +export interface DeleteTableTemplateModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppAchievementInput { +export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppStepInput { +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + name: string; +} +export interface DeleteTableGrantInput { clientMutationId?: string; id: string; } -export interface DeleteClaimedInviteInput { +export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteSiteMetadatumInput { +export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface DeleteFieldModuleInput { +export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } -export interface DeleteTableTemplateModuleInput { +export interface DeleteAppStepInput { clientMutationId?: string; id: string; } -export interface DeleteNodeTypeRegistryInput { +export interface DeleteClaimedInviteInput { clientMutationId?: string; - /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ - name: string; + id: string; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; } export interface DeleteObjectInput { clientMutationId?: string; @@ -10982,23 +12105,28 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} export interface DeleteDomainInput { clientMutationId?: string; + /** Unique identifier for this domain record */ id: string; } -export interface DeleteOrgGrantInput { +export interface DeleteSessionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } -export interface DeleteSessionsModuleInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteEmailInput { +export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } @@ -11014,7 +12142,7 @@ export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } -export interface DeleteRlsModuleInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } @@ -11038,79 +12166,82 @@ export interface DeleteViewInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipInput { +export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipInput { +export interface DeleteSecureTableProvisionInput { clientMutationId?: string; + /** Unique identifier for this provision row. */ id: string; } -export interface DeleteAppInput { +export interface DeleteTriggerInput { clientMutationId?: string; id: string; } -export interface DeleteSiteInput { +export interface DeletePrimaryKeyConstraintInput { clientMutationId?: string; id: string; } -export interface DeleteUserInput { +export interface DeleteUniqueConstraintInput { clientMutationId?: string; id: string; } -export interface DeletePermissionsModuleInput { +export interface DeleteCheckConstraintInput { clientMutationId?: string; id: string; } -export interface DeletePrimaryKeyConstraintInput { +export interface DeletePolicyInput { clientMutationId?: string; id: string; } -export interface DeleteTriggerInput { +export interface DeleteAppInput { clientMutationId?: string; + /** Unique identifier for this app */ id: string; } -export interface DeleteCheckConstraintInput { +export interface DeleteSiteInput { clientMutationId?: string; + /** Unique identifier for this site */ id: string; } -export interface DeleteUniqueConstraintInput { +export interface DeleteUserInput { clientMutationId?: string; id: string; } -export interface DeleteProcedureInput { +export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface DeletePolicyInput { +export interface DeleteProfilesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteInviteInput { +export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface DeleteIndexInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteLimitsModuleInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteSchemaInput { +export interface DeleteInviteInput { clientMutationId?: string; id: string; } -export interface DeleteProfilesModuleInput { +export interface DeleteSchemaInput { clientMutationId?: string; id: string; } -export interface DeleteOrgInviteInput { +export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface DeleteHierarchyModuleInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } @@ -11134,10 +12265,29 @@ export interface DeleteFieldInput { clientMutationId?: string; id: string; } +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + /** Unique identifier for this relation provision row. */ + id: string; +} export interface DeleteMembershipsModuleInput { clientMutationId?: string; id: string; } +/** A connection to a list of `OrgGetManagersRecord` values. */ +export interface OrgGetManagersConnection { + nodes: OrgGetManagersRecord[]; + edges: OrgGetManagersEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgGetSubordinatesRecord` values. */ +export interface OrgGetSubordinatesConnection { + nodes: OrgGetSubordinatesRecord[]; + edges: OrgGetSubordinatesEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `GetAllRecord` values. */ export interface GetAllConnection { nodes: GetAllRecord[]; @@ -11194,13 +12344,6 @@ export interface ApiSchemaConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SiteTheme` values. */ -export interface SiteThemeConnection { - nodes: SiteTheme[]; - edges: SiteThemeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgMember` values. */ export interface OrgMemberConnection { nodes: OrgMember[]; @@ -11208,10 +12351,10 @@ export interface OrgMemberConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppPermissionDefault` values. */ -export interface AppPermissionDefaultConnection { - nodes: AppPermissionDefault[]; - edges: AppPermissionDefaultEdge[]; +/** A connection to a list of `SiteTheme` values. */ +export interface SiteThemeConnection { + nodes: SiteTheme[]; + edges: SiteThemeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11229,20 +12372,6 @@ export interface StoreConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ApiModule` values. */ -export interface ApiModuleConnection { - nodes: ApiModule[]; - edges: ApiModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SiteModule` values. */ -export interface SiteModuleConnection { - nodes: SiteModule[]; - edges: SiteModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `EncryptedSecretsModule` values. */ export interface EncryptedSecretsModuleConnection { nodes: EncryptedSecretsModule[]; @@ -11271,17 +12400,24 @@ export interface UuidModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RoleType` values. */ -export interface RoleTypeConnection { - nodes: RoleType[]; - edges: RoleTypeEdge[]; +/** A connection to a list of `AppPermissionDefault` values. */ +export interface AppPermissionDefaultConnection { + nodes: AppPermissionDefault[]; + edges: AppPermissionDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgPermissionDefault` values. */ -export interface OrgPermissionDefaultConnection { - nodes: OrgPermissionDefault[]; - edges: OrgPermissionDefaultEdge[]; +/** A connection to a list of `ApiModule` values. */ +export interface ApiModuleConnection { + nodes: ApiModule[]; + edges: ApiModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SiteModule` values. */ +export interface SiteModuleConnection { + nodes: SiteModule[]; + edges: SiteModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11299,13 +12435,6 @@ export interface TriggerFunctionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ViewGrant` values. */ -export interface ViewGrantConnection { - nodes: ViewGrant[]; - edges: ViewGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `ViewRule` values. */ export interface ViewRuleConnection { nodes: ViewRule[]; @@ -11327,17 +12456,31 @@ export interface AppOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitDefault` values. */ -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; +/** A connection to a list of `RoleType` values. */ +export interface RoleTypeConnection { + nodes: RoleType[]; + edges: RoleTypeEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitDefault` values. */ -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; +/** A connection to a list of `OrgPermissionDefault` values. */ +export interface OrgPermissionDefaultConnection { + nodes: OrgPermissionDefault[]; + edges: OrgPermissionDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DefaultPrivilege` values. */ +export interface DefaultPrivilegeConnection { + nodes: DefaultPrivilege[]; + edges: DefaultPrivilegeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ViewGrant` values. */ +export interface ViewGrantConnection { + nodes: ViewGrant[]; + edges: ViewGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11363,16 +12506,9 @@ export interface EmailsModuleConnection { totalCount: number; } /** A connection to a list of `PhoneNumbersModule` values. */ -export interface PhoneNumbersModuleConnection { - nodes: PhoneNumbersModule[]; - edges: PhoneNumbersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `TableModule` values. */ -export interface TableModuleConnection { - nodes: TableModule[]; - edges: TableModuleEdge[]; +export interface PhoneNumbersModuleConnection { + nodes: PhoneNumbersModule[]; + edges: PhoneNumbersModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11404,10 +12540,17 @@ export interface CryptoAddressConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `MembershipType` values. */ -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; +/** A connection to a list of `AppLimitDefault` values. */ +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitDefault` values. */ +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11418,20 +12561,6 @@ export interface DatabaseConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `LimitFunction` values. */ -export interface LimitFunctionConnection { - nodes: LimitFunction[]; - edges: LimitFunctionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `TableGrant` values. */ -export interface TableGrantConnection { - nodes: TableGrant[]; - edges: TableGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `CryptoAddressesModule` values. */ export interface CryptoAddressesModuleConnection { nodes: CryptoAddressesModule[]; @@ -11453,6 +12582,55 @@ export interface PhoneNumberConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `MembershipType` values. */ +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `FieldModule` values. */ +export interface FieldModuleConnection { + nodes: FieldModule[]; + edges: FieldModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TableModule` values. */ +export interface TableModuleConnection { + nodes: TableModule[]; + edges: TableModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TableTemplateModule` values. */ +export interface TableTemplateModuleConnection { + nodes: TableTemplateModule[]; + edges: TableTemplateModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgChartEdgeGrant` values. */ +export interface OrgChartEdgeGrantConnection { + nodes: OrgChartEdgeGrant[]; + edges: OrgChartEdgeGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `NodeTypeRegistry` values. */ +export interface NodeTypeRegistryConnection { + nodes: NodeTypeRegistry[]; + edges: NodeTypeRegistryEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TableGrant` values. */ +export interface TableGrantConnection { + nodes: TableGrant[]; + edges: TableGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimit` values. */ export interface AppLimitConnection { nodes: AppLimit[]; @@ -11495,27 +12673,6 @@ export interface SiteMetadatumConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `FieldModule` values. */ -export interface FieldModuleConnection { - nodes: FieldModule[]; - edges: FieldModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `TableTemplateModule` values. */ -export interface TableTemplateModuleConnection { - nodes: TableTemplateModule[]; - edges: TableTemplateModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `NodeTypeRegistry` values. */ -export interface NodeTypeRegistryConnection { - nodes: NodeTypeRegistry[]; - edges: NodeTypeRegistryEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `FullTextSearch` values. */ export interface FullTextSearchConnection { nodes: FullTextSearch[]; @@ -11551,6 +12708,13 @@ export interface OrgClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdge` values. */ +export interface OrgChartEdgeConnection { + nodes: OrgChartEdge[]; + edges: OrgChartEdgeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Domain` values. */ export interface DomainConnection { nodes: Domain[]; @@ -11558,6 +12722,13 @@ export interface DomainConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SessionsModule` values. */ +export interface SessionsModuleConnection { + nodes: SessionsModule[]; + edges: SessionsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgGrant` values. */ export interface OrgGrantConnection { nodes: OrgGrant[]; @@ -11572,17 +12743,10 @@ export interface OrgMembershipDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SessionsModule` values. */ -export interface SessionsModuleConnection { - nodes: SessionsModule[]; - edges: SessionsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Email` values. */ -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; +/** A connection to a list of `RlsModule` values. */ +export interface RlsModuleConnection { + nodes: RlsModule[]; + edges: RlsModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11600,10 +12764,10 @@ export interface AppLevelConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RlsModule` values. */ -export interface RlsModuleConnection { - nodes: RlsModule[]; - edges: RlsModuleEdge[]; +/** A connection to a list of `Email` values. */ +export interface EmailConnection { + nodes: Email[]; + edges: EmailEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11649,6 +12813,20 @@ export interface ViewConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PermissionsModule` values. */ +export interface PermissionsModuleConnection { + nodes: PermissionsModule[]; + edges: PermissionsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SecureTableProvision` values. */ +export interface SecureTableProvisionConnection { + nodes: SecureTableProvision[]; + edges: SecureTableProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AstMigration` values. */ export interface AstMigrationConnection { nodes: AstMigration[]; @@ -11656,17 +12834,38 @@ export interface AstMigrationConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppMembership` values. */ -export interface AppMembershipConnection { - nodes: AppMembership[]; - edges: AppMembershipEdge[]; +/** A connection to a list of `Trigger` values. */ +export interface TriggerConnection { + nodes: Trigger[]; + edges: TriggerEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembership` values. */ -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; +/** A connection to a list of `PrimaryKeyConstraint` values. */ +export interface PrimaryKeyConstraintConnection { + nodes: PrimaryKeyConstraint[]; + edges: PrimaryKeyConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UniqueConstraint` values. */ +export interface UniqueConstraintConnection { + nodes: UniqueConstraint[]; + edges: UniqueConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `CheckConstraint` values. */ +export interface CheckConstraintConnection { + nodes: CheckConstraint[]; + edges: CheckConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Policy` values. */ +export interface PolicyConnection { + nodes: Policy[]; + edges: PolicyEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11691,52 +12890,38 @@ export interface UserConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PermissionsModule` values. */ -export interface PermissionsModuleConnection { - nodes: PermissionsModule[]; - edges: PermissionsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PrimaryKeyConstraint` values. */ -export interface PrimaryKeyConstraintConnection { - nodes: PrimaryKeyConstraint[]; - edges: PrimaryKeyConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Trigger` values. */ -export interface TriggerConnection { - nodes: Trigger[]; - edges: TriggerEdge[]; +/** A connection to a list of `LimitsModule` values. */ +export interface LimitsModuleConnection { + nodes: LimitsModule[]; + edges: LimitsModuleEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `CheckConstraint` values. */ -export interface CheckConstraintConnection { - nodes: CheckConstraint[]; - edges: CheckConstraintEdge[]; +/** A connection to a list of `ProfilesModule` values. */ +export interface ProfilesModuleConnection { + nodes: ProfilesModule[]; + edges: ProfilesModuleEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `UniqueConstraint` values. */ -export interface UniqueConstraintConnection { - nodes: UniqueConstraint[]; - edges: UniqueConstraintEdge[]; +/** A connection to a list of `Index` values. */ +export interface IndexConnection { + nodes: Index[]; + edges: IndexEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Procedure` values. */ -export interface ProcedureConnection { - nodes: Procedure[]; - edges: ProcedureEdge[]; +/** A connection to a list of `AppMembership` values. */ +export interface AppMembershipConnection { + nodes: AppMembership[]; + edges: AppMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Policy` values. */ -export interface PolicyConnection { - nodes: Policy[]; - edges: PolicyEdge[]; +/** A connection to a list of `OrgMembership` values. */ +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11747,20 +12932,6 @@ export interface InviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Index` values. */ -export interface IndexConnection { - nodes: Index[]; - edges: IndexEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `LimitsModule` values. */ -export interface LimitsModuleConnection { - nodes: LimitsModule[]; - edges: LimitsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Schema` values. */ export interface SchemaConnection { nodes: Schema[]; @@ -11768,10 +12939,10 @@ export interface SchemaConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ProfilesModule` values. */ -export interface ProfilesModuleConnection { - nodes: ProfilesModule[]; - edges: ProfilesModuleEdge[]; +/** A connection to a list of `HierarchyModule` values. */ +export interface HierarchyModuleConnection { + nodes: HierarchyModule[]; + edges: HierarchyModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -11782,13 +12953,6 @@ export interface OrgInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `HierarchyModule` values. */ -export interface HierarchyModuleConnection { - nodes: HierarchyModule[]; - edges: HierarchyModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `ForeignKeyConstraint` values. */ export interface ForeignKeyConstraintConnection { nodes: ForeignKeyConstraint[]; @@ -11824,6 +12988,13 @@ export interface FieldConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `RelationProvision` values. */ +export interface RelationProvisionConnection { + nodes: RelationProvision[]; + edges: RelationProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `MembershipsModule` values. */ export interface MembershipsModuleConnection { nodes: MembershipsModule[]; @@ -11970,23 +13141,17 @@ export interface CreateApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } -export interface CreateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was created by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface CreateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ orgMember?: OrgMember | null; orgMemberEdge?: OrgMemberEdge | null; } -export interface CreateAppPermissionDefaultPayload { +export interface CreateSiteThemePayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `SiteTheme` that was created by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; } export interface CreateRefPayload { clientMutationId?: string | null; @@ -12000,18 +13165,6 @@ export interface CreateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface CreateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was created by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface CreateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was created by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} export interface CreateEncryptedSecretsModulePayload { clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was created by this mutation. */ @@ -12036,17 +13189,23 @@ export interface CreateUuidModulePayload { uuidModule?: UuidModule | null; uuidModuleEdge?: UuidModuleEdge | null; } -export interface CreateRoleTypePayload { +export interface CreateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface CreateOrgPermissionDefaultPayload { +export interface CreateApiModulePayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `ApiModule` that was created by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was created by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; } export interface CreateSchemaGrantPayload { clientMutationId?: string | null; @@ -12060,12 +13219,6 @@ export interface CreateTriggerFunctionPayload { triggerFunction?: TriggerFunction | null; triggerFunctionEdge?: TriggerFunctionEdge | null; } -export interface CreateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was created by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} export interface CreateViewRulePayload { clientMutationId?: string | null; /** The `ViewRule` that was created by this mutation. */ @@ -12084,17 +13237,29 @@ export interface CreateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface CreateAppLimitDefaultPayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export interface CreateOrgLimitDefaultPayload { +export interface CreateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export interface CreateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was created by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; } export interface CreateApiPayload { clientMutationId?: string | null; @@ -12120,12 +13285,6 @@ export interface CreatePhoneNumbersModulePayload { phoneNumbersModule?: PhoneNumbersModule | null; phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export interface CreateTableModulePayload { - clientMutationId?: string | null; - /** The `TableModule` that was created by this mutation. */ - tableModule?: TableModule | null; - tableModuleEdge?: TableModuleEdge | null; -} export interface CreateUsersModulePayload { clientMutationId?: string | null; /** The `UsersModule` that was created by this mutation. */ @@ -12150,11 +13309,17 @@ export interface CreateCryptoAddressPayload { cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface CreateMembershipTypePayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface CreateDatabasePayload { clientMutationId?: string | null; @@ -12162,18 +13327,6 @@ export interface CreateDatabasePayload { database?: Database | null; databaseEdge?: DatabaseEdge | null; } -export interface CreateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was created by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export interface CreateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was created by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was created by this mutation. */ @@ -12192,6 +13345,48 @@ export interface CreatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } +export interface CreateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface CreateFieldModulePayload { + clientMutationId?: string | null; + /** The `FieldModule` that was created by this mutation. */ + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export interface CreateTableModulePayload { + clientMutationId?: string | null; + /** The `TableModule` that was created by this mutation. */ + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export interface CreateTableTemplateModulePayload { + clientMutationId?: string | null; + /** The `TableTemplateModule` that was created by this mutation. */ + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface CreateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was created by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -12240,24 +13435,6 @@ export interface CreateSiteMetadatumPayload { siteMetadatum?: SiteMetadatum | null; siteMetadatumEdge?: SiteMetadatumEdge | null; } -export interface CreateFieldModulePayload { - clientMutationId?: string | null; - /** The `FieldModule` that was created by this mutation. */ - fieldModule?: FieldModule | null; - fieldModuleEdge?: FieldModuleEdge | null; -} -export interface CreateTableTemplateModulePayload { - clientMutationId?: string | null; - /** The `TableTemplateModule` that was created by this mutation. */ - tableTemplateModule?: TableTemplateModule | null; - tableTemplateModuleEdge?: TableTemplateModuleEdge | null; -} -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was created by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} export interface CreateObjectPayload { clientMutationId?: string | null; /** The `Object` that was created by this mutation. */ @@ -12294,12 +13471,24 @@ export interface CreateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface CreateDomainPayload { clientMutationId?: string | null; /** The `Domain` that was created by this mutation. */ domain?: Domain | null; domainEdge?: DomainEdge | null; } +export interface CreateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -12312,17 +13501,11 @@ export interface CreateOrgMembershipDefaultPayload { orgMembershipDefault?: OrgMembershipDefault | null; orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface CreateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was created by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface CreateEmailPayload { +export interface CreateRlsModulePayload { clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; } export interface CreateAppLevelRequirementPayload { clientMutationId?: string | null; @@ -12342,11 +13525,11 @@ export interface CreateAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } -export interface CreateRlsModulePayload { +export interface CreateEmailPayload { clientMutationId?: string | null; - /** The `RlsModule` that was created by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } export interface CreateDenormalizedTableFieldPayload { clientMutationId?: string | null; @@ -12383,46 +13566,28 @@ export interface CreateViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } -export interface CreateAstMigrationPayload { - clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; -} -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface CreateAppPayload { +export interface CreatePermissionsModulePayload { clientMutationId?: string | null; - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export interface CreateSitePayload { +export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `Site` that was created by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface CreateUserPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `User` that was created by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export interface CreatePermissionsModulePayload { +export interface CreateTriggerPayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `Trigger` that was created by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; } export interface CreatePrimaryKeyConstraintPayload { clientMutationId?: string | null; @@ -12430,41 +13595,53 @@ export interface CreatePrimaryKeyConstraintPayload { primaryKeyConstraint?: PrimaryKeyConstraint | null; primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } -export interface CreateTriggerPayload { +export interface CreateUniqueConstraintPayload { clientMutationId?: string | null; - /** The `Trigger` that was created by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; + /** The `UniqueConstraint` that was created by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; } export interface CreateCheckConstraintPayload { clientMutationId?: string | null; - /** The `CheckConstraint` that was created by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; + /** The `CheckConstraint` that was created by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface CreatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was created by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface CreateAppPayload { + clientMutationId?: string | null; + /** The `App` that was created by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; } -export interface CreateUniqueConstraintPayload { +export interface CreateSitePayload { clientMutationId?: string | null; - /** The `UniqueConstraint` that was created by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; + /** The `Site` that was created by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; } -export interface CreateProcedurePayload { +export interface CreateUserPayload { clientMutationId?: string | null; - /** The `Procedure` that was created by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; + /** The `User` that was created by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } -export interface CreatePolicyPayload { +export interface CreateLimitsModulePayload { clientMutationId?: string | null; - /** The `Policy` that was created by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; + /** The `LimitsModule` that was created by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; } -export interface CreateInvitePayload { +export interface CreateProfilesModulePayload { clientMutationId?: string | null; - /** The `Invite` that was created by this mutation. */ - invite?: Invite | null; - inviteEdge?: InviteEdge | null; + /** The `ProfilesModule` that was created by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; } export interface CreateIndexPayload { clientMutationId?: string | null; @@ -12472,11 +13649,23 @@ export interface CreateIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface CreateLimitsModulePayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `LimitsModule` that was created by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface CreateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface CreateInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was created by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; } export interface CreateSchemaPayload { clientMutationId?: string | null; @@ -12484,11 +13673,11 @@ export interface CreateSchemaPayload { schema?: Schema | null; schemaEdge?: SchemaEdge | null; } -export interface CreateProfilesModulePayload { +export interface CreateHierarchyModulePayload { clientMutationId?: string | null; - /** The `ProfilesModule` that was created by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; + /** The `HierarchyModule` that was created by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; } export interface CreateOrgInvitePayload { clientMutationId?: string | null; @@ -12496,12 +13685,6 @@ export interface CreateOrgInvitePayload { orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -export interface CreateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was created by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} export interface CreateForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was created by this mutation. */ @@ -12532,6 +13715,12 @@ export interface CreateFieldPayload { field?: Field | null; fieldEdge?: FieldEdge | null; } +export interface CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} export interface CreateMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was created by this mutation. */ @@ -12556,23 +13745,17 @@ export interface UpdateApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } -export interface UpdateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was updated by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface UpdateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was updated by this mutation. */ orgMember?: OrgMember | null; orgMemberEdge?: OrgMemberEdge | null; } -export interface UpdateAppPermissionDefaultPayload { +export interface UpdateSiteThemePayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `SiteTheme` that was updated by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; } export interface UpdateRefPayload { clientMutationId?: string | null; @@ -12586,18 +13769,6 @@ export interface UpdateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface UpdateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was updated by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface UpdateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was updated by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} export interface UpdateEncryptedSecretsModulePayload { clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was updated by this mutation. */ @@ -12622,17 +13793,23 @@ export interface UpdateUuidModulePayload { uuidModule?: UuidModule | null; uuidModuleEdge?: UuidModuleEdge | null; } -export interface UpdateRoleTypePayload { +export interface UpdateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface UpdateOrgPermissionDefaultPayload { +export interface UpdateApiModulePayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `ApiModule` that was updated by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was updated by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; } export interface UpdateSchemaGrantPayload { clientMutationId?: string | null; @@ -12646,12 +13823,6 @@ export interface UpdateTriggerFunctionPayload { triggerFunction?: TriggerFunction | null; triggerFunctionEdge?: TriggerFunctionEdge | null; } -export interface UpdateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was updated by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} export interface UpdateViewRulePayload { clientMutationId?: string | null; /** The `ViewRule` that was updated by this mutation. */ @@ -12670,17 +13841,29 @@ export interface UpdateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface UpdateAppLimitDefaultPayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export interface UpdateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was updated by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; } export interface UpdateApiPayload { clientMutationId?: string | null; @@ -12706,12 +13889,6 @@ export interface UpdatePhoneNumbersModulePayload { phoneNumbersModule?: PhoneNumbersModule | null; phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export interface UpdateTableModulePayload { - clientMutationId?: string | null; - /** The `TableModule` that was updated by this mutation. */ - tableModule?: TableModule | null; - tableModuleEdge?: TableModuleEdge | null; -} export interface UpdateUsersModulePayload { clientMutationId?: string | null; /** The `UsersModule` that was updated by this mutation. */ @@ -12736,11 +13913,17 @@ export interface UpdateCryptoAddressPayload { cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface UpdateMembershipTypePayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface UpdateDatabasePayload { clientMutationId?: string | null; @@ -12748,18 +13931,6 @@ export interface UpdateDatabasePayload { database?: Database | null; databaseEdge?: DatabaseEdge | null; } -export interface UpdateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was updated by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export interface UpdateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was updated by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} export interface UpdateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was updated by this mutation. */ @@ -12778,6 +13949,48 @@ export interface UpdatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } +export interface UpdateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface UpdateFieldModulePayload { + clientMutationId?: string | null; + /** The `FieldModule` that was updated by this mutation. */ + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export interface UpdateTableModulePayload { + clientMutationId?: string | null; + /** The `TableModule` that was updated by this mutation. */ + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export interface UpdateTableTemplateModulePayload { + clientMutationId?: string | null; + /** The `TableTemplateModule` that was updated by this mutation. */ + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface UpdateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was updated by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} export interface UpdateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was updated by this mutation. */ @@ -12826,24 +14039,6 @@ export interface UpdateSiteMetadatumPayload { siteMetadatum?: SiteMetadatum | null; siteMetadatumEdge?: SiteMetadatumEdge | null; } -export interface UpdateFieldModulePayload { - clientMutationId?: string | null; - /** The `FieldModule` that was updated by this mutation. */ - fieldModule?: FieldModule | null; - fieldModuleEdge?: FieldModuleEdge | null; -} -export interface UpdateTableTemplateModulePayload { - clientMutationId?: string | null; - /** The `TableTemplateModule` that was updated by this mutation. */ - tableTemplateModule?: TableTemplateModule | null; - tableTemplateModuleEdge?: TableTemplateModuleEdge | null; -} -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was updated by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} export interface UpdateObjectPayload { clientMutationId?: string | null; /** The `Object` that was updated by this mutation. */ @@ -12880,12 +14075,24 @@ export interface UpdateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface UpdateDomainPayload { clientMutationId?: string | null; /** The `Domain` that was updated by this mutation. */ domain?: Domain | null; domainEdge?: DomainEdge | null; } +export interface UpdateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} export interface UpdateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was updated by this mutation. */ @@ -12898,17 +14105,11 @@ export interface UpdateOrgMembershipDefaultPayload { orgMembershipDefault?: OrgMembershipDefault | null; orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface UpdateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was updated by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface UpdateEmailPayload { +export interface UpdateRlsModulePayload { clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RlsModule` that was updated by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; } export interface UpdateAppLevelRequirementPayload { clientMutationId?: string | null; @@ -12928,11 +14129,11 @@ export interface UpdateAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } -export interface UpdateRlsModulePayload { +export interface UpdateEmailPayload { clientMutationId?: string | null; - /** The `RlsModule` that was updated by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } export interface UpdateDenormalizedTableFieldPayload { clientMutationId?: string | null; @@ -12964,47 +14165,17 @@ export interface UpdateViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface UpdateAppPayload { - clientMutationId?: string | null; - /** The `App` that was updated by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export interface UpdateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was updated by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export interface UpdateUserPayload { - clientMutationId?: string | null; - /** The `User` that was updated by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was updated by this mutation. */ permissionsModule?: PermissionsModule | null; permissionsModuleEdge?: PermissionsModuleEdge | null; } -export interface UpdatePrimaryKeyConstraintPayload { +export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was updated by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } export interface UpdateTriggerPayload { clientMutationId?: string | null; @@ -13012,11 +14183,11 @@ export interface UpdateTriggerPayload { trigger?: Trigger | null; triggerEdge?: TriggerEdge | null; } -export interface UpdateCheckConstraintPayload { +export interface UpdatePrimaryKeyConstraintPayload { clientMutationId?: string | null; - /** The `CheckConstraint` that was updated by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; + /** The `PrimaryKeyConstraint` that was updated by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export interface UpdateUniqueConstraintPayload { clientMutationId?: string | null; @@ -13024,11 +14195,11 @@ export interface UpdateUniqueConstraintPayload { uniqueConstraint?: UniqueConstraint | null; uniqueConstraintEdge?: UniqueConstraintEdge | null; } -export interface UpdateProcedurePayload { +export interface UpdateCheckConstraintPayload { clientMutationId?: string | null; - /** The `Procedure` that was updated by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; + /** The `CheckConstraint` that was updated by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; } export interface UpdatePolicyPayload { clientMutationId?: string | null; @@ -13036,17 +14207,23 @@ export interface UpdatePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } -export interface UpdateInvitePayload { +export interface UpdateAppPayload { clientMutationId?: string | null; - /** The `Invite` that was updated by this mutation. */ - invite?: Invite | null; - inviteEdge?: InviteEdge | null; + /** The `App` that was updated by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; } -export interface UpdateIndexPayload { +export interface UpdateSitePayload { clientMutationId?: string | null; - /** The `Index` that was updated by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; + /** The `Site` that was updated by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface UpdateUserPayload { + clientMutationId?: string | null; + /** The `User` that was updated by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface UpdateLimitsModulePayload { clientMutationId?: string | null; @@ -13054,23 +14231,41 @@ export interface UpdateLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface UpdateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was updated by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} export interface UpdateProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was updated by this mutation. */ profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface UpdateOrgInvitePayload { +export interface UpdateIndexPayload { clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `Index` that was updated by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface UpdateInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was updated by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was updated by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; } export interface UpdateHierarchyModulePayload { clientMutationId?: string | null; @@ -13078,6 +14273,12 @@ export interface UpdateHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface UpdateForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was updated by this mutation. */ @@ -13108,6 +14309,12 @@ export interface UpdateFieldPayload { field?: Field | null; fieldEdge?: FieldEdge | null; } +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} export interface UpdateMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was updated by this mutation. */ @@ -13132,23 +14339,17 @@ export interface DeleteApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } -export interface DeleteSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was deleted by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface DeleteOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was deleted by this mutation. */ orgMember?: OrgMember | null; orgMemberEdge?: OrgMemberEdge | null; } -export interface DeleteAppPermissionDefaultPayload { +export interface DeleteSiteThemePayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `SiteTheme` that was deleted by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; } export interface DeleteRefPayload { clientMutationId?: string | null; @@ -13162,18 +14363,6 @@ export interface DeleteStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface DeleteApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was deleted by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface DeleteSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was deleted by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} export interface DeleteEncryptedSecretsModulePayload { clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was deleted by this mutation. */ @@ -13198,17 +14387,23 @@ export interface DeleteUuidModulePayload { uuidModule?: UuidModule | null; uuidModuleEdge?: UuidModuleEdge | null; } -export interface DeleteRoleTypePayload { +export interface DeleteAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface DeleteOrgPermissionDefaultPayload { +export interface DeleteApiModulePayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `ApiModule` that was deleted by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was deleted by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; } export interface DeleteSchemaGrantPayload { clientMutationId?: string | null; @@ -13222,12 +14417,6 @@ export interface DeleteTriggerFunctionPayload { triggerFunction?: TriggerFunction | null; triggerFunctionEdge?: TriggerFunctionEdge | null; } -export interface DeleteViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was deleted by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} export interface DeleteViewRulePayload { clientMutationId?: string | null; /** The `ViewRule` that was deleted by this mutation. */ @@ -13246,17 +14435,29 @@ export interface DeleteAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface DeleteAppLimitDefaultPayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export interface DeleteViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was deleted by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; } export interface DeleteApiPayload { clientMutationId?: string | null; @@ -13282,12 +14483,6 @@ export interface DeletePhoneNumbersModulePayload { phoneNumbersModule?: PhoneNumbersModule | null; phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export interface DeleteTableModulePayload { - clientMutationId?: string | null; - /** The `TableModule` that was deleted by this mutation. */ - tableModule?: TableModule | null; - tableModuleEdge?: TableModuleEdge | null; -} export interface DeleteUsersModulePayload { clientMutationId?: string | null; /** The `UsersModule` that was deleted by this mutation. */ @@ -13312,23 +14507,77 @@ export interface DeleteCryptoAddressPayload { cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was deleted by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export interface DeleteCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} export interface DeleteMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was deleted by this mutation. */ membershipType?: MembershipType | null; membershipTypeEdge?: MembershipTypeEdge | null; } -export interface DeleteDatabasePayload { +export interface DeleteFieldModulePayload { + clientMutationId?: string | null; + /** The `FieldModule` that was deleted by this mutation. */ + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export interface DeleteTableModulePayload { + clientMutationId?: string | null; + /** The `TableModule` that was deleted by this mutation. */ + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export interface DeleteTableTemplateModulePayload { + clientMutationId?: string | null; + /** The `TableTemplateModule` that was deleted by this mutation. */ + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export interface DeleteOrgChartEdgeGrantPayload { clientMutationId?: string | null; - /** The `Database` that was deleted by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export interface DeleteLimitFunctionPayload { +export interface DeleteNodeTypeRegistryPayload { clientMutationId?: string | null; - /** The `LimitFunction` that was deleted by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } export interface DeleteTableGrantPayload { clientMutationId?: string | null; @@ -13336,24 +14585,6 @@ export interface DeleteTableGrantPayload { tableGrant?: TableGrant | null; tableGrantEdge?: TableGrantEdge | null; } -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export interface DeleteConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was deleted by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export interface DeletePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was deleted by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} export interface DeleteAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was deleted by this mutation. */ @@ -13402,24 +14633,6 @@ export interface DeleteSiteMetadatumPayload { siteMetadatum?: SiteMetadatum | null; siteMetadatumEdge?: SiteMetadatumEdge | null; } -export interface DeleteFieldModulePayload { - clientMutationId?: string | null; - /** The `FieldModule` that was deleted by this mutation. */ - fieldModule?: FieldModule | null; - fieldModuleEdge?: FieldModuleEdge | null; -} -export interface DeleteTableTemplateModulePayload { - clientMutationId?: string | null; - /** The `TableTemplateModule` that was deleted by this mutation. */ - tableTemplateModule?: TableTemplateModule | null; - tableTemplateModuleEdge?: TableTemplateModuleEdge | null; -} -export interface DeleteNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was deleted by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} export interface DeleteObjectPayload { clientMutationId?: string | null; /** The `Object` that was deleted by this mutation. */ @@ -13456,12 +14669,24 @@ export interface DeleteOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface DeleteDomainPayload { clientMutationId?: string | null; /** The `Domain` that was deleted by this mutation. */ domain?: Domain | null; domainEdge?: DomainEdge | null; } +export interface DeleteSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} export interface DeleteOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was deleted by this mutation. */ @@ -13474,17 +14699,11 @@ export interface DeleteOrgMembershipDefaultPayload { orgMembershipDefault?: OrgMembershipDefault | null; orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface DeleteSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was deleted by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface DeleteEmailPayload { +export interface DeleteRlsModulePayload { clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RlsModule` that was deleted by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; } export interface DeleteAppLevelRequirementPayload { clientMutationId?: string | null; @@ -13504,11 +14723,11 @@ export interface DeleteAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } -export interface DeleteRlsModulePayload { +export interface DeleteEmailPayload { clientMutationId?: string | null; - /** The `RlsModule` that was deleted by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } export interface DeleteDenormalizedTableFieldPayload { clientMutationId?: string | null; @@ -13540,47 +14759,17 @@ export interface DeleteViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface DeleteAppPayload { - clientMutationId?: string | null; - /** The `App` that was deleted by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export interface DeleteSitePayload { - clientMutationId?: string | null; - /** The `Site` that was deleted by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export interface DeleteUserPayload { - clientMutationId?: string | null; - /** The `User` that was deleted by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} export interface DeletePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was deleted by this mutation. */ permissionsModule?: PermissionsModule | null; permissionsModuleEdge?: PermissionsModuleEdge | null; } -export interface DeletePrimaryKeyConstraintPayload { +export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } export interface DeleteTriggerPayload { clientMutationId?: string | null; @@ -13588,11 +14777,11 @@ export interface DeleteTriggerPayload { trigger?: Trigger | null; triggerEdge?: TriggerEdge | null; } -export interface DeleteCheckConstraintPayload { +export interface DeletePrimaryKeyConstraintPayload { clientMutationId?: string | null; - /** The `CheckConstraint` that was deleted by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; + /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export interface DeleteUniqueConstraintPayload { clientMutationId?: string | null; @@ -13600,11 +14789,11 @@ export interface DeleteUniqueConstraintPayload { uniqueConstraint?: UniqueConstraint | null; uniqueConstraintEdge?: UniqueConstraintEdge | null; } -export interface DeleteProcedurePayload { +export interface DeleteCheckConstraintPayload { clientMutationId?: string | null; - /** The `Procedure` that was deleted by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; + /** The `CheckConstraint` that was deleted by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; } export interface DeletePolicyPayload { clientMutationId?: string | null; @@ -13612,17 +14801,23 @@ export interface DeletePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } -export interface DeleteInvitePayload { +export interface DeleteAppPayload { clientMutationId?: string | null; - /** The `Invite` that was deleted by this mutation. */ - invite?: Invite | null; - inviteEdge?: InviteEdge | null; + /** The `App` that was deleted by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; } -export interface DeleteIndexPayload { +export interface DeleteSitePayload { clientMutationId?: string | null; - /** The `Index` that was deleted by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; + /** The `Site` that was deleted by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface DeleteUserPayload { + clientMutationId?: string | null; + /** The `User` that was deleted by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface DeleteLimitsModulePayload { clientMutationId?: string | null; @@ -13630,23 +14825,41 @@ export interface DeleteLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface DeleteSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was deleted by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} export interface DeleteProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was deleted by this mutation. */ profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface DeleteOrgInvitePayload { +export interface DeleteIndexPayload { clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `Index` that was deleted by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface DeleteInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was deleted by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was deleted by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; } export interface DeleteHierarchyModulePayload { clientMutationId?: string | null; @@ -13654,6 +14867,12 @@ export interface DeleteHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface DeleteForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was deleted by this mutation. */ @@ -13684,17 +14903,23 @@ export interface DeleteFieldPayload { field?: Field | null; fieldEdge?: FieldEdge | null; } +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} export interface DeleteMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was deleted by this mutation. */ membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } -/** A `GetAllRecord` edge in the connection. */ -export interface GetAllEdge { +/** A `OrgGetManagersRecord` edge in the connection. */ +export interface OrgGetManagersEdge { cursor?: string | null; - /** The `GetAllRecord` at the end of the edge. */ - node?: GetAllRecord | null; + /** The `OrgGetManagersRecord` at the end of the edge. */ + node?: OrgGetManagersRecord | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -13707,6 +14932,18 @@ export interface PageInfo { /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } +/** A `OrgGetSubordinatesRecord` edge in the connection. */ +export interface OrgGetSubordinatesEdge { + cursor?: string | null; + /** The `OrgGetSubordinatesRecord` at the end of the edge. */ + node?: OrgGetSubordinatesRecord | null; +} +/** A `GetAllRecord` edge in the connection. */ +export interface GetAllEdge { + cursor?: string | null; + /** The `GetAllRecord` at the end of the edge. */ + node?: GetAllRecord | null; +} /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -13749,23 +14986,17 @@ export interface ApiSchemaEdge { /** The `ApiSchema` at the end of the edge. */ node?: ApiSchema | null; } -/** A `SiteTheme` edge in the connection. */ -export interface SiteThemeEdge { - cursor?: string | null; - /** The `SiteTheme` at the end of the edge. */ - node?: SiteTheme | null; -} /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; /** The `OrgMember` at the end of the edge. */ node?: OrgMember | null; } -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { +/** A `SiteTheme` edge in the connection. */ +export interface SiteThemeEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `SiteTheme` at the end of the edge. */ + node?: SiteTheme | null; } /** A `Ref` edge in the connection. */ export interface RefEdge { @@ -13779,18 +15010,6 @@ export interface StoreEdge { /** The `Store` at the end of the edge. */ node?: Store | null; } -/** A `ApiModule` edge in the connection. */ -export interface ApiModuleEdge { - cursor?: string | null; - /** The `ApiModule` at the end of the edge. */ - node?: ApiModule | null; -} -/** A `SiteModule` edge in the connection. */ -export interface SiteModuleEdge { - cursor?: string | null; - /** The `SiteModule` at the end of the edge. */ - node?: SiteModule | null; -} /** A `EncryptedSecretsModule` edge in the connection. */ export interface EncryptedSecretsModuleEdge { cursor?: string | null; @@ -13815,17 +15034,23 @@ export interface UuidModuleEdge { /** The `UuidModule` at the end of the edge. */ node?: UuidModule | null; } -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; } -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { +/** A `ApiModule` edge in the connection. */ +export interface ApiModuleEdge { cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; + /** The `ApiModule` at the end of the edge. */ + node?: ApiModule | null; +} +/** A `SiteModule` edge in the connection. */ +export interface SiteModuleEdge { + cursor?: string | null; + /** The `SiteModule` at the end of the edge. */ + node?: SiteModule | null; } /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { @@ -13839,12 +15064,6 @@ export interface TriggerFunctionEdge { /** The `TriggerFunction` at the end of the edge. */ node?: TriggerFunction | null; } -/** A `ViewGrant` edge in the connection. */ -export interface ViewGrantEdge { - cursor?: string | null; - /** The `ViewGrant` at the end of the edge. */ - node?: ViewGrant | null; -} /** A `ViewRule` edge in the connection. */ export interface ViewRuleEdge { cursor?: string | null; @@ -13863,17 +15082,29 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +/** A `ViewGrant` edge in the connection. */ +export interface ViewGrantEdge { + cursor?: string | null; + /** The `ViewGrant` at the end of the edge. */ + node?: ViewGrant | null; } /** A `Api` edge in the connection. */ export interface ApiEdge { @@ -13899,12 +15130,6 @@ export interface PhoneNumbersModuleEdge { /** The `PhoneNumbersModule` at the end of the edge. */ node?: PhoneNumbersModule | null; } -/** A `TableModule` edge in the connection. */ -export interface TableModuleEdge { - cursor?: string | null; - /** The `TableModule` at the end of the edge. */ - node?: TableModule | null; -} /** A `UsersModule` edge in the connection. */ export interface UsersModuleEdge { cursor?: string | null; @@ -13929,11 +15154,17 @@ export interface CryptoAddressEdge { /** The `CryptoAddress` at the end of the edge. */ node?: CryptoAddress | null; } -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; } /** A `Database` edge in the connection. */ export interface DatabaseEdge { @@ -13941,18 +15172,6 @@ export interface DatabaseEdge { /** The `Database` at the end of the edge. */ node?: Database | null; } -/** A `LimitFunction` edge in the connection. */ -export interface LimitFunctionEdge { - cursor?: string | null; - /** The `LimitFunction` at the end of the edge. */ - node?: LimitFunction | null; -} -/** A `TableGrant` edge in the connection. */ -export interface TableGrantEdge { - cursor?: string | null; - /** The `TableGrant` at the end of the edge. */ - node?: TableGrant | null; -} /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -13971,6 +15190,48 @@ export interface PhoneNumberEdge { /** The `PhoneNumber` at the end of the edge. */ node?: PhoneNumber | null; } +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { + cursor?: string | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; +} +/** A `FieldModule` edge in the connection. */ +export interface FieldModuleEdge { + cursor?: string | null; + /** The `FieldModule` at the end of the edge. */ + node?: FieldModule | null; +} +/** A `TableModule` edge in the connection. */ +export interface TableModuleEdge { + cursor?: string | null; + /** The `TableModule` at the end of the edge. */ + node?: TableModule | null; +} +/** A `TableTemplateModule` edge in the connection. */ +export interface TableTemplateModuleEdge { + cursor?: string | null; + /** The `TableTemplateModule` at the end of the edge. */ + node?: TableTemplateModule | null; +} +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { + cursor?: string | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; +} +/** A `TableGrant` edge in the connection. */ +export interface TableGrantEdge { + cursor?: string | null; + /** The `TableGrant` at the end of the edge. */ + node?: TableGrant | null; +} /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -14007,24 +15268,6 @@ export interface SiteMetadatumEdge { /** The `SiteMetadatum` at the end of the edge. */ node?: SiteMetadatum | null; } -/** A `FieldModule` edge in the connection. */ -export interface FieldModuleEdge { - cursor?: string | null; - /** The `FieldModule` at the end of the edge. */ - node?: FieldModule | null; -} -/** A `TableTemplateModule` edge in the connection. */ -export interface TableTemplateModuleEdge { - cursor?: string | null; - /** The `TableTemplateModule` at the end of the edge. */ - node?: TableTemplateModule | null; -} -/** A `NodeTypeRegistry` edge in the connection. */ -export interface NodeTypeRegistryEdge { - cursor?: string | null; - /** The `NodeTypeRegistry` at the end of the edge. */ - node?: NodeTypeRegistry | null; -} /** A `FullTextSearch` edge in the connection. */ export interface FullTextSearchEdge { cursor?: string | null; @@ -14055,12 +15298,24 @@ export interface OrgClaimedInviteEdge { /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} /** A `Domain` edge in the connection. */ export interface DomainEdge { cursor?: string | null; /** The `Domain` at the end of the edge. */ node?: Domain | null; } +/** A `SessionsModule` edge in the connection. */ +export interface SessionsModuleEdge { + cursor?: string | null; + /** The `SessionsModule` at the end of the edge. */ + node?: SessionsModule | null; +} /** A `OrgGrant` edge in the connection. */ export interface OrgGrantEdge { cursor?: string | null; @@ -14073,17 +15328,11 @@ export interface OrgMembershipDefaultEdge { /** The `OrgMembershipDefault` at the end of the edge. */ node?: OrgMembershipDefault | null; } -/** A `SessionsModule` edge in the connection. */ -export interface SessionsModuleEdge { - cursor?: string | null; - /** The `SessionsModule` at the end of the edge. */ - node?: SessionsModule | null; -} -/** A `Email` edge in the connection. */ -export interface EmailEdge { +/** A `RlsModule` edge in the connection. */ +export interface RlsModuleEdge { cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; + /** The `RlsModule` at the end of the edge. */ + node?: RlsModule | null; } /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { @@ -14097,11 +15346,11 @@ export interface AppLevelEdge { /** The `AppLevel` at the end of the edge. */ node?: AppLevel | null; } -/** A `RlsModule` edge in the connection. */ -export interface RlsModuleEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `RlsModule` at the end of the edge. */ - node?: RlsModule | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } /** A `DenormalizedTableField` edge in the connection. */ export interface DenormalizedTableFieldEdge { @@ -14139,23 +15388,53 @@ export interface ViewEdge { /** The `View` at the end of the edge. */ node?: View | null; } +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { + cursor?: string | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; +} +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} /** A `AstMigration` edge in the connection. */ export interface AstMigrationEdge { cursor?: string | null; /** The `AstMigration` at the end of the edge. */ node?: AstMigration | null; } -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `Trigger` edge in the connection. */ +export interface TriggerEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `Trigger` at the end of the edge. */ + node?: Trigger | null; } -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { +/** A `PrimaryKeyConstraint` edge in the connection. */ +export interface PrimaryKeyConstraintEdge { cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; + /** The `PrimaryKeyConstraint` at the end of the edge. */ + node?: PrimaryKeyConstraint | null; +} +/** A `UniqueConstraint` edge in the connection. */ +export interface UniqueConstraintEdge { + cursor?: string | null; + /** The `UniqueConstraint` at the end of the edge. */ + node?: UniqueConstraint | null; +} +/** A `CheckConstraint` edge in the connection. */ +export interface CheckConstraintEdge { + cursor?: string | null; + /** The `CheckConstraint` at the end of the edge. */ + node?: CheckConstraint | null; +} +/** A `Policy` edge in the connection. */ +export interface PolicyEdge { + cursor?: string | null; + /** The `Policy` at the end of the edge. */ + node?: Policy | null; } /** A `App` edge in the connection. */ export interface AppEdge { @@ -14175,47 +15454,35 @@ export interface UserEdge { /** The `User` at the end of the edge. */ node?: User | null; } -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { - cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; -} -/** A `PrimaryKeyConstraint` edge in the connection. */ -export interface PrimaryKeyConstraintEdge { - cursor?: string | null; - /** The `PrimaryKeyConstraint` at the end of the edge. */ - node?: PrimaryKeyConstraint | null; -} -/** A `Trigger` edge in the connection. */ -export interface TriggerEdge { +/** A `LimitsModule` edge in the connection. */ +export interface LimitsModuleEdge { cursor?: string | null; - /** The `Trigger` at the end of the edge. */ - node?: Trigger | null; + /** The `LimitsModule` at the end of the edge. */ + node?: LimitsModule | null; } -/** A `CheckConstraint` edge in the connection. */ -export interface CheckConstraintEdge { +/** A `ProfilesModule` edge in the connection. */ +export interface ProfilesModuleEdge { cursor?: string | null; - /** The `CheckConstraint` at the end of the edge. */ - node?: CheckConstraint | null; + /** The `ProfilesModule` at the end of the edge. */ + node?: ProfilesModule | null; } -/** A `UniqueConstraint` edge in the connection. */ -export interface UniqueConstraintEdge { +/** A `Index` edge in the connection. */ +export interface IndexEdge { cursor?: string | null; - /** The `UniqueConstraint` at the end of the edge. */ - node?: UniqueConstraint | null; + /** The `Index` at the end of the edge. */ + node?: Index | null; } -/** A `Procedure` edge in the connection. */ -export interface ProcedureEdge { +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { cursor?: string | null; - /** The `Procedure` at the end of the edge. */ - node?: Procedure | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; } -/** A `Policy` edge in the connection. */ -export interface PolicyEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `Policy` at the end of the edge. */ - node?: Policy | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } /** A `Invite` edge in the connection. */ export interface InviteEdge { @@ -14223,29 +15490,17 @@ export interface InviteEdge { /** The `Invite` at the end of the edge. */ node?: Invite | null; } -/** A `Index` edge in the connection. */ -export interface IndexEdge { - cursor?: string | null; - /** The `Index` at the end of the edge. */ - node?: Index | null; -} -/** A `LimitsModule` edge in the connection. */ -export interface LimitsModuleEdge { - cursor?: string | null; - /** The `LimitsModule` at the end of the edge. */ - node?: LimitsModule | null; -} /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; /** The `Schema` at the end of the edge. */ node?: Schema | null; } -/** A `ProfilesModule` edge in the connection. */ -export interface ProfilesModuleEdge { +/** A `HierarchyModule` edge in the connection. */ +export interface HierarchyModuleEdge { cursor?: string | null; - /** The `ProfilesModule` at the end of the edge. */ - node?: ProfilesModule | null; + /** The `HierarchyModule` at the end of the edge. */ + node?: HierarchyModule | null; } /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { @@ -14253,12 +15508,6 @@ export interface OrgInviteEdge { /** The `OrgInvite` at the end of the edge. */ node?: OrgInvite | null; } -/** A `HierarchyModule` edge in the connection. */ -export interface HierarchyModuleEdge { - cursor?: string | null; - /** The `HierarchyModule` at the end of the edge. */ - node?: HierarchyModule | null; -} /** A `ForeignKeyConstraint` edge in the connection. */ export interface ForeignKeyConstraintEdge { cursor?: string | null; @@ -14289,6 +15538,12 @@ export interface FieldEdge { /** The `Field` at the end of the edge. */ node?: Field | null; } +/** A `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} /** A `MembershipsModule` edge in the connection. */ export interface MembershipsModuleEdge { cursor?: string | null; @@ -14352,18 +15607,30 @@ export interface SignUpRecord { isVerified?: boolean | null; totpEnabled?: boolean | null; } +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts index ef7ecf2ed..432fc6f8d 100644 --- a/sdk/constructive-react/src/public/types.ts +++ b/sdk/constructive-react/src/public/types.ts @@ -10,6 +10,14 @@ export type ConstructiveInternalTypeHostname = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; +export interface OrgGetManagersRecord { + userId: string | null; + depth: number | null; +} +export interface OrgGetSubordinatesRecord { + userId: string | null; + depth: number | null; +} export interface GetAllRecord { path: string[] | null; data: unknown | null; @@ -187,22 +195,12 @@ export interface Index { createdAt: string | null; updatedAt: string | null; } -export interface LimitFunction { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - label: string | null; - description: string | null; - data: unknown | null; - security: number | null; -} export interface Policy { id: string | null; databaseId: string | null; tableId: string | null; name: string | null; - roleName: string | null; + granteeName: string | null; privilege: string | null; permissive: boolean | null; disabled: boolean | null; @@ -236,8 +234,9 @@ export interface TableGrant { databaseId: string | null; tableId: string | null; privilege: string | null; - roleName: string | null; + granteeName: string | null; fieldIds: string[] | null; + isGrant: boolean | null; createdAt: string | null; updatedAt: string | null; } @@ -300,9 +299,10 @@ export interface ViewGrant { id: string | null; databaseId: string | null; viewId: string | null; - roleName: string | null; + granteeName: string | null; privilege: string | null; withGrantOption: boolean | null; + isGrant: boolean | null; } export interface ViewRule { id: string | null; @@ -315,9 +315,11 @@ export interface ViewRule { export interface TableModule { id: string | null; databaseId: string | null; - privateSchemaId: string | null; + schemaId: string | null; tableId: string | null; + tableName: string | null; nodeType: string | null; + useRls: boolean | null; data: unknown | null; fields: string[] | null; } @@ -332,6 +334,55 @@ export interface TableTemplateModule { nodeType: string | null; data: unknown | null; } +export interface SecureTableProvision { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; + nodeType: string | null; + useRls: boolean | null; + nodeData: unknown | null; + grantRoles: string[] | null; + grantPrivileges: unknown | null; + policyType: string | null; + policyPrivileges: string[] | null; + policyRole: string | null; + policyPermissive: boolean | null; + policyName: string | null; + policyData: unknown | null; + outFields: string[] | null; +} +export interface RelationProvision { + id: string | null; + databaseId: string | null; + relationType: string | null; + sourceTableId: string | null; + targetTableId: string | null; + fieldName: string | null; + deleteAction: string | null; + isRequired: boolean | null; + junctionTableId: string | null; + junctionTableName: string | null; + junctionSchemaId: string | null; + sourceFieldName: string | null; + targetFieldName: string | null; + useCompositeKey: boolean | null; + nodeType: string | null; + nodeData: unknown | null; + grantRoles: string[] | null; + grantPrivileges: unknown | null; + policyType: string | null; + policyPrivileges: string[] | null; + policyRole: string | null; + policyPermissive: boolean | null; + policyName: string | null; + policyData: unknown | null; + outFieldId: string | null; + outJunctionTableId: string | null; + outSourceFieldId: string | null; + outTargetFieldId: string | null; +} export interface SchemaGrant { id: string | null; databaseId: string | null; @@ -340,6 +391,15 @@ export interface SchemaGrant { createdAt: string | null; updatedAt: string | null; } +export interface DefaultPrivilege { + id: string | null; + databaseId: string | null; + schemaId: string | null; + objectType: string | null; + privilege: string | null; + granteeName: string | null; + isGrant: boolean | null; +} export interface ApiSchema { id: string | null; databaseId: string | null; @@ -382,23 +442,6 @@ export interface SiteTheme { siteId: string | null; theme: unknown | null; } -export interface Procedure { - id: string | null; - databaseId: string | null; - name: string | null; - argnames: string[] | null; - argtypes: string[] | null; - argdefaults: string[] | null; - langName: string | null; - definition: string | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} export interface TriggerFunction { id: string | null; databaseId: string | null; @@ -663,7 +706,6 @@ export interface ProfilesModule { profileGrantsTableName: string | null; profileDefinitionGrantsTableId: string | null; profileDefinitionGrantsTableName: string | null; - bitlen: number | null; membershipType: number | null; entityTableId: string | null; actorTableId: string | null; @@ -806,6 +848,7 @@ export interface OrgMembership { granted: string | null; actorId: string | null; entityId: string | null; + profileId: string | null; } export interface OrgMember { id: string | null; @@ -841,6 +884,27 @@ export interface OrgGrant { createdAt: string | null; updatedAt: string | null; } +export interface OrgChartEdge { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + entityId: string | null; + childId: string | null; + parentId: string | null; + positionTitle: string | null; + positionLevel: number | null; +} +export interface OrgChartEdgeGrant { + id: string | null; + entityId: string | null; + childId: string | null; + parentId: string | null; + grantorId: string | null; + isGrant: boolean | null; + positionTitle: string | null; + positionLevel: number | null; + createdAt: string | null; +} export interface AppLimit { id: string | null; name: string | null; @@ -919,10 +983,6 @@ export interface OrgClaimedInvite { updatedAt: string | null; entityId: string | null; } -export interface AppPermissionDefault { - id: string | null; - permissions: string | null; -} export interface Ref { id: string | null; name: string | null; @@ -937,6 +997,10 @@ export interface Store { hash: string | null; createdAt: string | null; } +export interface AppPermissionDefault { + id: string | null; + permissions: string | null; +} export interface RoleType { id: number | null; name: string | null; @@ -946,16 +1010,6 @@ export interface OrgPermissionDefault { permissions: string | null; entityId: string | null; } -export interface AppLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} -export interface OrgLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} export interface CryptoAddress { id: string | null; ownerId: string | null; @@ -965,11 +1019,15 @@ export interface CryptoAddress { createdAt: string | null; updatedAt: string | null; } -export interface MembershipType { - id: number | null; +export interface AppLimitDefault { + id: string | null; name: string | null; - description: string | null; - prefix: string | null; + max: number | null; +} +export interface OrgLimitDefault { + id: string | null; + name: string | null; + max: number | null; } export interface ConnectedAccount { id: string | null; @@ -991,14 +1049,11 @@ export interface PhoneNumber { createdAt: string | null; updatedAt: string | null; } -export interface AppMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isVerified: boolean | null; +export interface MembershipType { + id: number | null; + name: string | null; + description: string | null; + prefix: string | null; } export interface NodeTypeRegistry { name: string | null; @@ -1011,6 +1066,15 @@ export interface NodeTypeRegistry { createdAt: string | null; updatedAt: string | null; } +export interface AppMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isVerified: boolean | null; +} export interface Commit { id: string | null; message: string | null; @@ -1033,15 +1097,6 @@ export interface OrgMembershipDefault { deleteMemberCascadeGroups: boolean | null; createGroupsCascadeMembers: boolean | null; } -export interface Email { - id: string | null; - ownerId: string | null; - email: ConstructiveInternalTypeEmail | null; - isVerified: boolean | null; - isPrimary: boolean | null; - createdAt: string | null; - updatedAt: string | null; -} export interface AuditLog { id: string | null; event: string | null; @@ -1061,6 +1116,15 @@ export interface AppLevel { createdAt: string | null; updatedAt: string | null; } +export interface Email { + id: string | null; + ownerId: string | null; + email: ConstructiveInternalTypeEmail | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} export interface SqlMigration { id: number | null; name: string | null; @@ -1091,6 +1155,17 @@ export interface AstMigration { actionId: string | null; actorId: string | null; } +export interface User { + id: string | null; + username: string | null; + displayName: string | null; + profilePicture: ConstructiveInternalTypeImage | null; + searchTsv: string | null; + type: number | null; + createdAt: string | null; + updatedAt: string | null; + searchTsvRank: number | null; +} export interface AppMembership { id: string | null; createdAt: string | null; @@ -1107,17 +1182,7 @@ export interface AppMembership { permissions: string | null; granted: string | null; actorId: string | null; -} -export interface User { - id: string | null; - username: string | null; - displayName: string | null; - profilePicture: ConstructiveInternalTypeImage | null; - searchTsv: string | null; - type: number | null; - createdAt: string | null; - updatedAt: string | null; - searchTsvRank: number | null; + profileId: string | null; } export interface HierarchyModule { id: string | null; diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index e133ef99d..99649bb6b 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 28 -- **Custom queries:** 10 +- **Tables:** 32 +- **Custom queries:** 11 - **Custom mutations:** 2 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index a3154dc57..4269dd02c 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -21,6 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `orgGetManagersRecord` | findMany, findOne, create, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | | `appLevelRequirement` | findMany, findOne, create, update, delete | @@ -29,11 +31,12 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | @@ -43,15 +46,76 @@ const db = createClient({ | `orgLimit` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `appLevel` | findMany, findOne, create, update, delete | | `invite` | findMany, findOne, create, update, delete | +| `appLevel` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations +### `db.orgGetManagersRecord` + +CRUD operations for OrgGetManagersRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGetSubordinatesRecord` + +CRUD operations for OrgGetSubordinatesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.appPermission` CRUD operations for AppPermission records. @@ -315,136 +379,136 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.orgAdminGrant` -CRUD operations for AppLimitDefault records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.orgOwnerGrant` -CRUD operations for OrgLimitDefault records. +CRUD operations for OrgOwnerGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.appLimitDefault` -CRUD operations for OrgAdminGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.orgLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipType` @@ -479,6 +543,43 @@ const updated = await db.membershipType.update({ where: { id: '' }, data: const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` +### `db.orgChartEdgeGrant` + +CRUD operations for OrgChartEdgeGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appLimit` CRUD operations for AppLimit records. @@ -789,9 +890,9 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { per const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.orgChartEdge` -CRUD operations for OrgMembershipDefault records. +CRUD operations for OrgChartEdge records. **Fields:** @@ -800,65 +901,66 @@ CRUD operations for OrgMembershipDefault records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeGroups` | Boolean | Yes | -| `createGroupsCascadeMembers` | Boolean | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.appLevel` +### `db.orgMembershipDefault` -CRUD operations for AppLevel records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `image` | ConstructiveInternalTypeImage | Yes | -| `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeGroups` | Boolean | Yes | +| `createGroupsCascadeMembers` | Boolean | Yes | **Operations:** ```typescript -// List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.invite` @@ -901,6 +1003,41 @@ const updated = await db.invite.update({ where: { id: '' }, data: { email const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` +### `db.appLevel` + +CRUD operations for AppLevel records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `image` | ConstructiveInternalTypeImage | Yes | +| `ownerId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appLevel records +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +``` + ### `db.appMembership` CRUD operations for AppMembership records. @@ -924,18 +1061,19 @@ CRUD operations for AppMembership records. | `permissions` | BitString | Yes | | `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -967,18 +1105,19 @@ CRUD operations for OrgMembership records. | `granted` | BitString | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -1061,6 +1200,24 @@ orgPermissionsGetPaddedMask const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` +### `db.query.orgIsManagerOf` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` + ### `db.query.stepsAchieved` stepsAchieved diff --git a/sdk/constructive-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts index 877700d3e..524d28db3 100644 --- a/sdk/constructive-sdk/src/admin/orm/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/index.ts @@ -5,6 +5,8 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; +import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; import { AppLevelRequirementModel } from './models/appLevelRequirement'; @@ -13,11 +15,12 @@ import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppLimitModel } from './models/appLimit'; import { AppAchievementModel } from './models/appAchievement'; import { AppStepModel } from './models/appStep'; @@ -27,9 +30,10 @@ import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgLimitModel } from './models/orgLimit'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { AppLevelModel } from './models/appLevel'; import { InviteModel } from './models/invite'; +import { AppLevelModel } from './models/appLevel'; import { AppMembershipModel } from './models/appMembership'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgInviteModel } from './models/orgInvite'; @@ -68,6 +72,8 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + orgGetManagersRecord: new OrgGetManagersRecordModel(client), + orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), appLevelRequirement: new AppLevelRequirementModel(client), @@ -76,11 +82,12 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), orgAdminGrant: new OrgAdminGrantModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), membershipType: new MembershipTypeModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appLimit: new AppLimitModel(client), appAchievement: new AppAchievementModel(client), appStep: new AppStepModel(client), @@ -90,9 +97,10 @@ export function createClient(config: OrmClientConfig) { orgLimit: new OrgLimitModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - appLevel: new AppLevelModel(client), invite: new InviteModel(client), + appLevel: new AppLevelModel(client), appMembership: new AppMembershipModel(client), orgMembership: new OrgMembershipModel(client), orgInvite: new OrgInviteModel(client), diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index aca539f61..6bc1887db 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -227,254 +227,435 @@ export interface UUIDListFilter { export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; // ============ Entity Types ============ +export interface OrgGetManagersRecord { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecord { + userId?: string | null; + depth?: number | null; +} +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } -/** Requirements to achieve a level */ +/** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; + /** Name identifier of the requirement (matches step names) */ name?: string | null; + /** Name of the level this requirement belongs to */ level?: string | null; + /** Human-readable description of what this requirement entails */ description?: string | null; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number | null; + /** Display ordering priority; lower values appear first */ priority?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; + /** Whether this member has admin privileges */ isAdmin?: boolean | null; + /** References the user who is a member */ actorId?: string | null; + /** References the entity (org or group) this member belongs to */ entityId?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface AppPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; + /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } -export interface AppLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} +/** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; + /** Human-readable name of the membership type */ name?: string | null; + /** Description of what this membership type represents */ description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; } +/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ +export interface OrgChartEdgeGrant { + id: string; + /** Organization this grant applies to */ + entityId?: string | null; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string | null; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string | null; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string | null; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean | null; + /** Job title or role name being assigned in this grant */ + positionTitle?: string | null; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number | null; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; } -/** This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. */ +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ export interface AppAchievement { id: string; actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; + /** Cumulative count of completed steps toward this requirement */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } -/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { id: string; actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; + /** Number of units completed in this step action */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ isVerified?: boolean | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; entityId?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ entityId?: string | null; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean | null; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -/** Levels for achievement */ -export interface AppLevel { - id: string; - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { id: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Defines available levels that users can achieve by completing requirements */ +export interface AppLevel { + id: string; + /** Unique name of the level */ + name?: string | null; + /** Human-readable description of what this level represents */ + description?: string | null; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + profileId?: string | null; } +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; + profileId?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: string | null; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -493,6 +674,8 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface OrgGetManagersRecordRelations {} +export interface OrgGetSubordinatesRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} export interface AppLevelRequirementRelations {} @@ -501,11 +684,12 @@ export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface OrgAdminGrantRelations {} export interface OrgOwnerGrantRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface MembershipTypeRelations {} +export interface OrgChartEdgeGrantRelations {} export interface AppLimitRelations {} export interface AppAchievementRelations {} export interface AppStepRelations {} @@ -515,13 +699,18 @@ export interface AppMembershipDefaultRelations {} export interface OrgLimitRelations {} export interface OrgClaimedInviteRelations {} export interface OrgGrantRelations {} +export interface OrgChartEdgeRelations {} export interface OrgMembershipDefaultRelations {} -export interface AppLevelRelations {} export interface InviteRelations {} +export interface AppLevelRelations {} export interface AppMembershipRelations {} export interface OrgMembershipRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; @@ -532,11 +721,12 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppStepWithRelations = AppStep & AppStepRelations; @@ -547,14 +737,23 @@ export type AppMembershipDefaultWithRelations = AppMembershipDefault & export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type InviteWithRelations = Invite & InviteRelations; +export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ +export type OrgGetManagersRecordSelect = { + userId?: boolean; + depth?: boolean; +}; +export type OrgGetSubordinatesRecordSelect = { + userId?: boolean; + depth?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -610,16 +809,6 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -638,12 +827,33 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; }; +export type OrgChartEdgeGrantSelect = { + id?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + grantorId?: boolean; + isGrant?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + createdAt?: boolean; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -720,6 +930,16 @@ export type OrgGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; +}; export type OrgMembershipDefaultSelect = { id?: boolean; createdAt?: boolean; @@ -731,15 +951,6 @@ export type OrgMembershipDefaultSelect = { deleteMemberCascadeGroups?: boolean; createGroupsCascadeMembers?: boolean; }; -export type AppLevelSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - image?: boolean; - ownerId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type InviteSelect = { id?: boolean; email?: boolean; @@ -754,6 +965,15 @@ export type InviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLevelSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + image?: boolean; + ownerId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -770,6 +990,7 @@ export type AppMembershipSelect = { permissions?: boolean; granted?: boolean; actorId?: boolean; + profileId?: boolean; }; export type OrgMembershipSelect = { id?: boolean; @@ -787,6 +1008,7 @@ export type OrgMembershipSelect = { granted?: boolean; actorId?: boolean; entityId?: boolean; + profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -805,6 +1027,20 @@ export type OrgInviteSelect = { entityId?: boolean; }; // ============ Table Filter Types ============ +export interface OrgGetManagersRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetManagersRecordFilter[]; + or?: OrgGetManagersRecordFilter[]; + not?: OrgGetManagersRecordFilter; +} +export interface OrgGetSubordinatesRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetSubordinatesRecordFilter[]; + or?: OrgGetSubordinatesRecordFilter[]; + not?: OrgGetSubordinatesRecordFilter; +} export interface AppPermissionFilter { id?: UUIDFilter; name?: StringFilter; @@ -884,22 +1120,6 @@ export interface AppOwnerGrantFilter { or?: AppOwnerGrantFilter[]; not?: AppOwnerGrantFilter; } -export interface AppLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: AppLimitDefaultFilter[]; - or?: AppLimitDefaultFilter[]; - not?: AppLimitDefaultFilter; -} -export interface OrgLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: OrgLimitDefaultFilter[]; - or?: OrgLimitDefaultFilter[]; - not?: OrgLimitDefaultFilter; -} export interface OrgAdminGrantFilter { id?: UUIDFilter; isGrant?: BooleanFilter; @@ -924,6 +1144,22 @@ export interface OrgOwnerGrantFilter { or?: OrgOwnerGrantFilter[]; not?: OrgOwnerGrantFilter; } +export interface AppLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: AppLimitDefaultFilter[]; + or?: AppLimitDefaultFilter[]; + not?: AppLimitDefaultFilter; +} +export interface OrgLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: OrgLimitDefaultFilter[]; + or?: OrgLimitDefaultFilter[]; + not?: OrgLimitDefaultFilter; +} export interface MembershipTypeFilter { id?: IntFilter; name?: StringFilter; @@ -933,6 +1169,20 @@ export interface MembershipTypeFilter { or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; } +export interface OrgChartEdgeGrantFilter { + id?: UUIDFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + grantorId?: UUIDFilter; + isGrant?: BooleanFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + createdAt?: DatetimeFilter; + and?: OrgChartEdgeGrantFilter[]; + or?: OrgChartEdgeGrantFilter[]; + not?: OrgChartEdgeGrantFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -1036,6 +1286,19 @@ export interface OrgGrantFilter { or?: OrgGrantFilter[]; not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + and?: OrgChartEdgeFilter[]; + or?: OrgChartEdgeFilter[]; + not?: OrgChartEdgeFilter; +} export interface OrgMembershipDefaultFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -1050,18 +1313,6 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface AppLevelFilter { - id?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - image?: StringFilter; - ownerId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppLevelFilter[]; - or?: AppLevelFilter[]; - not?: AppLevelFilter; -} export interface InviteFilter { id?: UUIDFilter; email?: StringFilter; @@ -1079,6 +1330,18 @@ export interface InviteFilter { or?: InviteFilter[]; not?: InviteFilter; } +export interface AppLevelFilter { + id?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + image?: StringFilter; + ownerId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelFilter[]; + or?: AppLevelFilter[]; + not?: AppLevelFilter; +} export interface AppMembershipFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -1095,6 +1358,7 @@ export interface AppMembershipFilter { permissions?: BitStringFilter; granted?: BitStringFilter; actorId?: UUIDFilter; + profileId?: UUIDFilter; and?: AppMembershipFilter[]; or?: AppMembershipFilter[]; not?: AppMembershipFilter; @@ -1115,6 +1379,7 @@ export interface OrgMembershipFilter { granted?: BitStringFilter; actorId?: UUIDFilter; entityId?: UUIDFilter; + profileId?: UUIDFilter; and?: OrgMembershipFilter[]; or?: OrgMembershipFilter[]; not?: OrgMembershipFilter; @@ -1139,6 +1404,14 @@ export interface OrgInviteFilter { not?: OrgInviteFilter; } // ============ Table Condition Types ============ +export interface OrgGetManagersRecordCondition { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecordCondition { + userId?: string | null; + depth?: number | null; +} export interface AppPermissionCondition { id?: string | null; name?: string | null; @@ -1194,16 +1467,6 @@ export interface AppOwnerGrantCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface AppLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} export interface OrgAdminGrantCondition { id?: string | null; isGrant?: boolean | null; @@ -1222,12 +1485,33 @@ export interface OrgOwnerGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; +} +export interface OrgLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; +} export interface MembershipTypeCondition { id?: number | null; name?: string | null; description?: string | null; prefix?: string | null; } +export interface OrgChartEdgeGrantCondition { + id?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; + createdAt?: string | null; +} export interface AppLimitCondition { id?: string | null; name?: string | null; @@ -1304,6 +1588,16 @@ export interface OrgGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface OrgChartEdgeCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} export interface OrgMembershipDefaultCondition { id?: string | null; createdAt?: string | null; @@ -1315,15 +1609,6 @@ export interface OrgMembershipDefaultCondition { deleteMemberCascadeGroups?: boolean | null; createGroupsCascadeMembers?: boolean | null; } -export interface AppLevelCondition { - id?: string | null; - name?: string | null; - description?: string | null; - image?: unknown | null; - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface InviteCondition { id?: string | null; email?: unknown | null; @@ -1338,6 +1623,15 @@ export interface InviteCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppLevelCondition { + id?: string | null; + name?: string | null; + description?: string | null; + image?: unknown | null; + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface AppMembershipCondition { id?: string | null; createdAt?: string | null; @@ -1354,6 +1648,7 @@ export interface AppMembershipCondition { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface OrgMembershipCondition { id?: string | null; @@ -1371,6 +1666,7 @@ export interface OrgMembershipCondition { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface OrgInviteCondition { id?: string | null; @@ -1389,6 +1685,22 @@ export interface OrgInviteCondition { entityId?: string | null; } // ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; export type AppPermissionOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1499,27 +1811,7 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' @@ -1555,6 +1847,26 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type MembershipTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1567,6 +1879,28 @@ export type MembershipTypeOrderBy = | 'DESCRIPTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC'; +export type OrgChartEdgeGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppLimitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1719,6 +2053,26 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type OrgMembershipDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1741,24 +2095,6 @@ export type OrgMembershipDefaultOrderBy = | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type AppLevelOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type InviteOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1787,6 +2123,24 @@ export type InviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLevelOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1820,7 +2174,9 @@ export type AppMembershipOrderBy = | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1854,7 +2210,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgInviteOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1888,6 +2246,46 @@ export type OrgInviteOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateOrgGetManagersRecordInput { + clientMutationId?: string; + orgGetManagersRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetManagersRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; + orgGetManagersRecordPatch: OrgGetManagersRecordPatch; +} +export interface DeleteOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + orgGetSubordinatesRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetSubordinatesRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; + orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; +} +export interface DeleteOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -2066,46 +2464,6 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - appLimitDefault: { - name: string; - max?: number; - }; -} -export interface AppLimitDefaultPatch { - name?: string | null; - max?: number | null; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: number; - }; -} -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: number | null; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface DeleteOrgLimitDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgAdminGrantInput { clientMutationId?: string; orgAdminGrant: { @@ -2154,6 +2512,46 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + appLimitDefault: { + name: string; + max?: number; + }; +} +export interface AppLimitDefaultPatch { + name?: string | null; + max?: number | null; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + orgLimitDefault: { + name: string; + max?: number; + }; +} +export interface OrgLimitDefaultPatch { + name?: string | null; + max?: number | null; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateMembershipTypeInput { clientMutationId?: string; membershipType: { @@ -2176,6 +2574,36 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + orgChartEdgeGrant: { + entityId: string; + childId: string; + parentId?: string; + grantorId: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgeGrantPatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -2390,6 +2818,32 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; +} +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; orgMembershipDefault: { @@ -2418,30 +2872,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: { - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - }; -} -export interface AppLevelPatch { - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; -} -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - appLevelPatch: AppLevelPatch; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} export interface CreateInviteInput { clientMutationId?: string; invite: { @@ -2476,6 +2906,30 @@ export interface DeleteInviteInput { clientMutationId?: string; id: string; } +export interface CreateAppLevelInput { + clientMutationId?: string; + appLevel: { + name: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + }; +} +export interface AppLevelPatch { + name?: string | null; + description?: string | null; + image?: ConstructiveInternalTypeImage | null; + ownerId?: string | null; +} +export interface UpdateAppLevelInput { + clientMutationId?: string; + id: string; + appLevelPatch: AppLevelPatch; +} +export interface DeleteAppLevelInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -2491,6 +2945,7 @@ export interface CreateAppMembershipInput { permissions?: string; granted?: string; actorId: string; + profileId?: string; }; } export interface AppMembershipPatch { @@ -2506,6 +2961,7 @@ export interface AppMembershipPatch { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -2531,6 +2987,7 @@ export interface CreateOrgMembershipInput { granted?: string; actorId: string; entityId: string; + profileId?: string; }; } export interface OrgMembershipPatch { @@ -2546,6 +3003,7 @@ export interface OrgMembershipPatch { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -3039,184 +3497,184 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateOrgAdminGrantPayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type CreateOrgAdminGrantPayloadSelect = { +export type CreateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface UpdateOrgAdminGrantPayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type UpdateOrgAdminGrantPayloadSelect = { +export type UpdateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface DeleteOrgAdminGrantPayload { +export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type DeleteOrgAdminGrantPayloadSelect = { +export type DeleteAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface CreateOrgOwnerGrantPayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type CreateOrgOwnerGrantPayloadSelect = { +export type CreateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface UpdateOrgOwnerGrantPayload { +export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type UpdateOrgOwnerGrantPayloadSelect = { +export type UpdateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface DeleteOrgOwnerGrantPayload { +export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type DeleteOrgOwnerGrantPayloadSelect = { +export type DeleteOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; export interface CreateMembershipTypePayload { @@ -3264,6 +3722,51 @@ export type DeleteMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type CreateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type UpdateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type DeleteOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; export interface CreateAppLimitPayload { clientMutationId?: string | null; /** The `AppLimit` that was created by this mutation. */ @@ -3669,6 +4172,51 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type CreateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; /** The `OrgMembershipDefault` that was created by this mutation. */ @@ -3714,51 +4262,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type CreateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type UpdateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type DeleteAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; export interface CreateInvitePayload { clientMutationId?: string | null; /** The `Invite` that was created by this mutation. */ @@ -3804,6 +4307,51 @@ export type DeleteInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type CreateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type UpdateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type DeleteAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ @@ -4052,30 +4600,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -4100,6 +4624,30 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +export type AppLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitDefaultSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; + }; +}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -4112,6 +4660,18 @@ export type MembershipTypeEdgeSelect = { select: MembershipTypeSelect; }; }; +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +export type OrgChartEdgeGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeGrantSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -4220,28 +4780,28 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: OrgChartEdgeSelect; }; }; -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type AppLevelEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppLevelSelect; + select: OrgMembershipDefaultSelect; }; }; /** A `Invite` edge in the connection. */ @@ -4256,6 +4816,18 @@ export type InviteEdgeSelect = { select: InviteSelect; }; }; +/** A `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} +export type AppLevelEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelSelect; + }; +}; /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/admin/orm/models/index.ts b/sdk/constructive-sdk/src/admin/orm/models/index.ts index 635d44b66..f20a6d0a4 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; +export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; export { AppLevelRequirementModel } from './appLevelRequirement'; @@ -11,11 +13,12 @@ export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgAdminGrantModel } from './orgAdminGrant'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppLimitModel } from './appLimit'; export { AppAchievementModel } from './appAchievement'; export { AppStepModel } from './appStep'; @@ -25,9 +28,10 @@ export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgLimitModel } from './orgLimit'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { AppLevelModel } from './appLevel'; export { InviteModel } from './invite'; +export { AppLevelModel } from './appLevel'; export { AppMembershipModel } from './appMembership'; export { OrgMembershipModel } from './orgMembership'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgChartEdge.ts b/sdk/constructive-sdk/src/admin/orm/models/orgChartEdge.ts new file mode 100644 index 000000000..3ff845429 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgChartEdge.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdge model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgChartEdge, + OrgChartEdgeWithRelations, + OrgChartEdgeSelect, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, + CreateOrgChartEdgeInput, + UpdateOrgChartEdgeInput, + OrgChartEdgePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdges: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdges: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdge: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdge', + document, + variables, + transform: (data: { + orgChartEdges?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdge', + 'createOrgChartEdge', + 'orgChartEdge', + args.select, + args.data, + 'CreateOrgChartEdgeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'createOrgChartEdge', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdge', + 'updateOrgChartEdge', + 'orgChartEdge', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeInput', + 'id', + 'orgChartEdgePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'updateOrgChartEdge', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdge', + 'deleteOrgChartEdge', + 'orgChartEdge', + args.where.id, + 'DeleteOrgChartEdgeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'deleteOrgChartEdge', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgChartEdgeGrant.ts new file mode 100644 index 000000000..40dba3391 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgChartEdgeGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdgeGrant model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgChartEdgeGrant, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, + CreateOrgChartEdgeGrantInput, + UpdateOrgChartEdgeGrantInput, + OrgChartEdgeGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrant', + document, + variables, + transform: (data: { + orgChartEdgeGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdgeGrant', + 'createOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.data, + 'CreateOrgChartEdgeGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'createOrgChartEdgeGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgeGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdgeGrant', + 'updateOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeGrantInput', + 'id', + 'orgChartEdgeGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'updateOrgChartEdgeGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdgeGrant', + 'deleteOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.where.id, + 'DeleteOrgChartEdgeGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'deleteOrgChartEdgeGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts new file mode 100644 index 000000000..9a0cefa8a --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts @@ -0,0 +1,127 @@ +/** + * OrgGetManagersRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgGetManagersRecord, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, + CreateOrgGetManagersRecordInput, + UpdateOrgGetManagersRecordInput, + OrgGetManagersRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetManagersRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgGetManagersRecordFilter', + 'OrgGetManagersRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + }, + 'OrgGetManagersRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetManagersRecord', + 'createOrgGetManagersRecord', + 'orgGetManagersRecord', + args.select, + args.data, + 'CreateOrgGetManagersRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetManagersRecord', + fieldName: 'createOrgGetManagersRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts new file mode 100644 index 000000000..5eeec50ca --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -0,0 +1,129 @@ +/** + * OrgGetSubordinatesRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgGetSubordinatesRecord, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, + CreateOrgGetSubordinatesRecordInput, + UpdateOrgGetSubordinatesRecordInput, + OrgGetSubordinatesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetSubordinatesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgGetSubordinatesRecordFilter', + 'OrgGetSubordinatesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + }, + 'OrgGetSubordinatesRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetSubordinatesRecord', + 'createOrgGetSubordinatesRecord', + 'orgGetSubordinatesRecord', + args.select, + args.data, + 'CreateOrgGetSubordinatesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'createOrgGetSubordinatesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/query/index.ts b/sdk/constructive-sdk/src/admin/orm/query/index.ts index 58c216770..db637075c 100644 --- a/sdk/constructive-sdk/src/admin/orm/query/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/query/index.ts @@ -18,6 +18,12 @@ export interface AppPermissionsGetPaddedMaskVariables { export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } +export interface OrgIsManagerOfVariables { + pEntityId?: string; + pManagerId?: string; + pUserId?: string; + pMaxDepth?: number; +} export interface StepsAchievedVariables { vlevel?: string; vroleId?: string; @@ -131,6 +137,47 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + orgIsManagerOf: ( + args: OrgIsManagerOfVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgIsManagerOf: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'OrgIsManagerOf', + fieldName: 'orgIsManagerOf', + ...buildCustomDocument( + 'query', + 'OrgIsManagerOf', + 'orgIsManagerOf', + options?.select, + args, + [ + { + name: 'pEntityId', + type: 'UUID', + }, + { + name: 'pManagerId', + type: 'UUID', + }, + { + name: 'pUserId', + type: 'UUID', + }, + { + name: 'pMaxDepth', + type: 'Int', + }, + ], + connectionFieldsMap, + undefined + ), + }), stepsAchieved: ( args: StepsAchievedVariables, options?: { diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md b/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md deleted file mode 100644 index 92ab466a3..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAchievement - - - -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. - -## Usage - -```typescript -db.appAchievement.findMany({ select: { id: true } }).execute() -db.appAchievement.findOne({ id: '', select: { id: true } }).execute() -db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appAchievement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAchievement records - -```typescript -const items = await db.appAchievement.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appAchievement - -```typescript -const item = await db.appAchievement.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md deleted file mode 100644 index 6b585abee..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAdminGrant - - - -ORM operations for AppAdminGrant records - -## Usage - -```typescript -db.appAdminGrant.findMany({ select: { id: true } }).execute() -db.appAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAdminGrant records - -```typescript -const items = await db.appAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appAdminGrant - -```typescript -const item = await db.appAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/appGrant.md deleted file mode 100644 index 017771262..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appGrant - - - -ORM operations for AppGrant records - -## Usage - -```typescript -db.appGrant.findMany({ select: { id: true } }).execute() -db.appGrant.findOne({ id: '', select: { id: true } }).execute() -db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appGrant records - -```typescript -const items = await db.appGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appGrant - -```typescript -const item = await db.appGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md b/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md deleted file mode 100644 index 3677ecc37..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevel - - - -Levels for achievement - -## Usage - -```typescript -db.appLevel.findMany({ select: { id: true } }).execute() -db.appLevel.findOne({ id: '', select: { id: true } }).execute() -db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() -db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevel.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevel records - -```typescript -const items = await db.appLevel.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevel - -```typescript -const item = await db.appLevel.create({ - data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md b/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md deleted file mode 100644 index 28df77ff5..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevelRequirement - - - -Requirements to achieve a level - -## Usage - -```typescript -db.appLevelRequirement.findMany({ select: { id: true } }).execute() -db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() -db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() -db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevelRequirement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelRequirement records - -```typescript -const items = await db.appLevelRequirement.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevelRequirement - -```typescript -const item = await db.appLevelRequirement.create({ - data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLimit.md b/sdk/constructive-sdk/src/admin/orm/skills/appLimit.md deleted file mode 100644 index 50fa2b37f..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimit - - - -ORM operations for AppLimit records - -## Usage - -```typescript -db.appLimit.findMany({ select: { id: true } }).execute() -db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() -db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimit records - -```typescript -const items = await db.appLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimit - -```typescript -const item = await db.appLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md deleted file mode 100644 index eb070a028..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimitDefault - - - -ORM operations for AppLimitDefault records - -## Usage - -```typescript -db.appLimitDefault.findMany({ select: { id: true } }).execute() -db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitDefault records - -```typescript -const items = await db.appLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitDefault - -```typescript -const item = await db.appLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appMembership.md b/sdk/constructive-sdk/src/admin/orm/skills/appMembership.md deleted file mode 100644 index 07e8f9763..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembership - - - -ORM operations for AppMembership records - -## Usage - -```typescript -db.appMembership.findMany({ select: { id: true } }).execute() -db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() -db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembership records - -```typescript -const items = await db.appMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembership - -```typescript -const item = await db.appMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md deleted file mode 100644 index 82c322958..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembershipDefault - - - -ORM operations for AppMembershipDefault records - -## Usage - -```typescript -db.appMembershipDefault.findMany({ select: { id: true } }).execute() -db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() -db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembershipDefault records - -```typescript -const items = await db.appMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembershipDefault - -```typescript -const item = await db.appMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md deleted file mode 100644 index 89c574dd7..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appOwnerGrant - - - -ORM operations for AppOwnerGrant records - -## Usage - -```typescript -db.appOwnerGrant.findMany({ select: { id: true } }).execute() -db.appOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appOwnerGrant records - -```typescript -const items = await db.appOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appOwnerGrant - -```typescript -const item = await db.appOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermission.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermission.md deleted file mode 100644 index a497f7b8a..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermission - - - -ORM operations for AppPermission records - -## Usage - -```typescript -db.appPermission.findMany({ select: { id: true } }).execute() -db.appPermission.findOne({ id: '', select: { id: true } }).execute() -db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermission records - -```typescript -const items = await db.appPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appPermission - -```typescript -const item = await db.appPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md deleted file mode 100644 index ef8289183..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermissionDefault - - - -ORM operations for AppPermissionDefault records - -## Usage - -```typescript -db.appPermissionDefault.findMany({ select: { id: true } }).execute() -db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefault records - -```typescript -const items = await db.appPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appPermissionDefault - -```typescript -const item = await db.appPermissionDefault.create({ - data: { permissions: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md deleted file mode 100644 index 369df9f26..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetByMask - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md deleted file mode 100644 index ceca5548f..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```typescript -db.query.appPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMask - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md deleted file mode 100644 index c3f40dddc..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.appPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md deleted file mode 100644 index accce0eed..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appStep.md b/sdk/constructive-sdk/src/admin/orm/skills/appStep.md deleted file mode 100644 index 3c349de1f..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/appStep.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appStep - - - -The user achieving a requirement for a level. Log table that has every single step ever taken. - -## Usage - -```typescript -db.appStep.findMany({ select: { id: true } }).execute() -db.appStep.findOne({ id: '', select: { id: true } }).execute() -db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appStep.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appStep records - -```typescript -const items = await db.appStep.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appStep - -```typescript -const item = await db.appStep.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md b/sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md deleted file mode 100644 index 3d5de6b3b..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-claimedInvite - - - -ORM operations for ClaimedInvite records - -## Usage - -```typescript -db.claimedInvite.findMany({ select: { id: true } }).execute() -db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() -db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.claimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all claimedInvite records - -```typescript -const items = await db.claimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a claimedInvite - -```typescript -const item = await db.claimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/invite.md b/sdk/constructive-sdk/src/admin/orm/skills/invite.md deleted file mode 100644 index 727a2107e..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-invite - - - -ORM operations for Invite records - -## Usage - -```typescript -db.invite.findMany({ select: { id: true } }).execute() -db.invite.findOne({ id: '', select: { id: true } }).execute() -db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() -db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.invite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invite records - -```typescript -const items = await db.invite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a invite - -```typescript -const item = await db.invite.create({ - data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/membershipType.md b/sdk/constructive-sdk/src/admin/orm/skills/membershipType.md deleted file mode 100644 index 898d85107..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/membershipType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipType - - - -ORM operations for MembershipType records - -## Usage - -```typescript -db.membershipType.findMany({ select: { id: true } }).execute() -db.membershipType.findOne({ id: '', select: { id: true } }).execute() -db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() -db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.membershipType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipType records - -```typescript -const items = await db.membershipType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a membershipType - -```typescript -const item = await db.membershipType.create({ - data: { name: 'value', description: 'value', prefix: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md deleted file mode 100644 index 675b76741..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgAdminGrant - - - -ORM operations for OrgAdminGrant records - -## Usage - -```typescript -db.orgAdminGrant.findMany({ select: { id: true } }).execute() -db.orgAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgAdminGrant records - -```typescript -const items = await db.orgAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgAdminGrant - -```typescript -const item = await db.orgAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md b/sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md deleted file mode 100644 index 5693e2856..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgClaimedInvite - - - -ORM operations for OrgClaimedInvite records - -## Usage - -```typescript -db.orgClaimedInvite.findMany({ select: { id: true } }).execute() -db.orgClaimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgClaimedInvite records - -```typescript -const items = await db.orgClaimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a orgClaimedInvite - -```typescript -const item = await db.orgClaimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md deleted file mode 100644 index ac4c4b896..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgGrant - - - -ORM operations for OrgGrant records - -## Usage - -```typescript -db.orgGrant.findMany({ select: { id: true } }).execute() -db.orgGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgGrant records - -```typescript -const items = await db.orgGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgGrant - -```typescript -const item = await db.orgGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md b/sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md deleted file mode 100644 index ea7ff346d..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgInvite - - - -ORM operations for OrgInvite records - -## Usage - -```typescript -db.orgInvite.findMany({ select: { id: true } }).execute() -db.orgInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() -db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.orgInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgInvite records - -```typescript -const items = await db.orgInvite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a orgInvite - -```typescript -const item = await db.orgInvite.create({ - data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md b/sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md deleted file mode 100644 index 19681fddf..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimit - - - -ORM operations for OrgLimit records - -## Usage - -```typescript -db.orgLimit.findMany({ select: { id: true } }).execute() -db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() -db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimit records - -```typescript -const items = await db.orgLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimit - -```typescript -const item = await db.orgLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md deleted file mode 100644 index 4a4e505bd..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimitDefault - - - -ORM operations for OrgLimitDefault records - -## Usage - -```typescript -db.orgLimitDefault.findMany({ select: { id: true } }).execute() -db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitDefault records - -```typescript -const items = await db.orgLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitDefault - -```typescript -const item = await db.orgLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgMember.md b/sdk/constructive-sdk/src/admin/orm/skills/orgMember.md deleted file mode 100644 index 2aadbafd3..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgMember.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMember - - - -ORM operations for OrgMember records - -## Usage - -```typescript -db.orgMember.findMany({ select: { id: true } }).execute() -db.orgMember.findOne({ id: '', select: { id: true } }).execute() -db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() -db.orgMember.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMember records - -```typescript -const items = await db.orgMember.findMany({ - select: { id: true, isAdmin: true } -}).execute(); -``` - -### Create a orgMember - -```typescript -const item = await db.orgMember.create({ - data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md b/sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md deleted file mode 100644 index b98b850b2..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembership - - - -ORM operations for OrgMembership records - -## Usage - -```typescript -db.orgMembership.findMany({ select: { id: true } }).execute() -db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembership records - -```typescript -const items = await db.orgMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembership - -```typescript -const item = await db.orgMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md deleted file mode 100644 index cd8146f14..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembershipDefault - - - -ORM operations for OrgMembershipDefault records - -## Usage - -```typescript -db.orgMembershipDefault.findMany({ select: { id: true } }).execute() -db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembershipDefault records - -```typescript -const items = await db.orgMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembershipDefault - -```typescript -const item = await db.orgMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md deleted file mode 100644 index 8a490261b..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgOwnerGrant - - - -ORM operations for OrgOwnerGrant records - -## Usage - -```typescript -db.orgOwnerGrant.findMany({ select: { id: true } }).execute() -db.orgOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgOwnerGrant records - -```typescript -const items = await db.orgOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgOwnerGrant - -```typescript -const item = await db.orgOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md deleted file mode 100644 index 1f18add5d..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermission - - - -ORM operations for OrgPermission records - -## Usage - -```typescript -db.orgPermission.findMany({ select: { id: true } }).execute() -db.orgPermission.findOne({ id: '', select: { id: true } }).execute() -db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermission records - -```typescript -const items = await db.orgPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgPermission - -```typescript -const item = await db.orgPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md deleted file mode 100644 index 8d8e20afc..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermissionDefault - - - -ORM operations for OrgPermissionDefault records - -## Usage - -```typescript -db.orgPermissionDefault.findMany({ select: { id: true } }).execute() -db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefault records - -```typescript -const items = await db.orgPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgPermissionDefault - -```typescript -const item = await db.orgPermissionDefault.create({ - data: { permissions: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md deleted file mode 100644 index 437f5c98b..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetByMask - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md deleted file mode 100644 index c626883ad..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```typescript -db.query.orgPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMask - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md deleted file mode 100644 index f67397dcc..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md deleted file mode 100644 index a67198a29..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md b/sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md deleted file mode 100644 index bce806fd4..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```typescript -db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() -``` - -## Examples - -### Run stepsAchieved - -```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md b/sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md deleted file mode 100644 index 8ea0ad638..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run stepsRequired - -```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md b/sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md deleted file mode 100644 index ae946fe75..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```typescript -db.mutation.submitInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitInviteCode - -```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md b/sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md deleted file mode 100644 index 0ceff0ee1..000000000 --- a/sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitOrgInviteCode - - - -Execute the submitOrgInviteCode mutation - -## Usage - -```typescript -db.mutation.submitOrgInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitOrgInviteCode - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index 8b32eca79..19b4a6b78 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -25,8 +25,8 @@ const db = createClient({ | `cryptoAddress` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | ## Table Operations @@ -168,75 +168,75 @@ const updated = await db.connectedAccount.update({ where: { id: '' }, dat const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.email` +### `db.auditLog` -CRUD operations for Email records. +CRUD operations for AuditLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `event` | String | Yes | +| `actorId` | UUID | Yes | +| `origin` | ConstructiveInternalTypeOrigin | Yes | +| `userAgent` | String | Yes | +| `ipAddress` | InternetAddress | Yes | +| `success` | Boolean | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +// List all auditLog records +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.email` -CRUD operations for AuditLog records. +CRUD operations for Email records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` ### `db.user` diff --git a/sdk/constructive-sdk/src/auth/orm/index.ts b/sdk/constructive-sdk/src/auth/orm/index.ts index da3c30436..3718b175a 100644 --- a/sdk/constructive-sdk/src/auth/orm/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/index.ts @@ -9,8 +9,8 @@ import { RoleTypeModel } from './models/roleType'; import { CryptoAddressModel } from './models/cryptoAddress'; import { PhoneNumberModel } from './models/phoneNumber'; import { ConnectedAccountModel } from './models/connectedAccount'; -import { EmailModel } from './models/email'; import { AuditLogModel } from './models/auditLog'; +import { EmailModel } from './models/email'; import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -51,8 +51,8 @@ export function createClient(config: OrmClientConfig) { cryptoAddress: new CryptoAddressModel(client), phoneNumber: new PhoneNumberModel(client), connectedAccount: new ConnectedAccountModel(client), - email: new EmailModel(client), auditLog: new AuditLogModel(client), + email: new EmailModel(client), user: new UserModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index eaf804378..4cc717c63 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -232,25 +232,35 @@ export interface RoleType { id: number; name?: string | null; } +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ export interface CryptoAddress { id: string; ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { id: string; ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ cc?: string | null; + /** The phone number without country code */ number?: string | null; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { id: string; ownerId?: string | null; @@ -260,29 +270,42 @@ export interface ConnectedAccount { identifier?: string | null; /** Additional profile details extracted from this login method */ details?: Record | null; + /** Whether this connected account has been verified */ isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface Email { - id: string; - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; + /** User who performed the authentication action */ actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ userAgent?: string | null; + /** IP address of the client that initiated the auth event */ ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ success?: boolean | null; + /** Timestamp when the audit event was recorded */ createdAt?: string | null; } +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; + ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface User { id: string; username?: string | null; @@ -318,12 +341,12 @@ export interface PhoneNumberRelations { export interface ConnectedAccountRelations { owner?: User | null; } -export interface EmailRelations { - owner?: User | null; -} export interface AuditLogRelations { actor?: User | null; } +export interface EmailRelations { + owner?: User | null; +} export interface UserRelations { roleType?: RoleType | null; } @@ -332,8 +355,8 @@ export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; -export type EmailWithRelations = Email & EmailRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; +export type EmailWithRelations = Email & EmailRelations; export type UserWithRelations = User & UserRelations; // ============ Entity Select Types ============ export type RoleTypeSelect = { @@ -378,18 +401,6 @@ export type ConnectedAccountSelect = { select: UserSelect; }; }; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AuditLogSelect = { id?: boolean; event?: boolean; @@ -403,6 +414,18 @@ export type AuditLogSelect = { select: UserSelect; }; }; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type UserSelect = { id?: boolean; username?: boolean; @@ -463,18 +486,6 @@ export interface ConnectedAccountFilter { or?: ConnectedAccountFilter[]; not?: ConnectedAccountFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface AuditLogFilter { id?: UUIDFilter; event?: StringFilter; @@ -488,6 +499,18 @@ export interface AuditLogFilter { or?: AuditLogFilter[]; not?: AuditLogFilter; } +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} export interface UserFilter { id?: UUIDFilter; username?: StringFilter; @@ -536,15 +559,6 @@ export interface ConnectedAccountCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface EmailCondition { - id?: string | null; - ownerId?: string | null; - email?: unknown | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface AuditLogCondition { id?: string | null; event?: string | null; @@ -555,6 +569,15 @@ export interface AuditLogCondition { success?: boolean | null; createdAt?: string | null; } +export interface EmailCondition { + id?: string | null; + ownerId?: string | null; + email?: unknown | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface UserCondition { id?: string | null; username?: string | null; @@ -633,24 +656,6 @@ export type ConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -671,6 +676,24 @@ export type AuditLogOrderBy = | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type EmailOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_PRIMARY_ASC' + | 'IS_PRIMARY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type UserOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -788,30 +811,6 @@ export interface DeleteConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateAuditLogInput { clientMutationId?: string; auditLog: { @@ -840,6 +839,30 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} export interface CreateUserInput { clientMutationId?: string; user: { @@ -1283,51 +1306,6 @@ export type DeleteConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ @@ -1373,6 +1351,51 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -1476,18 +1499,30 @@ export type ExtendTokenExpiresRecordSelect = { sessionId?: boolean; expiresAt?: boolean; }; +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -1556,18 +1591,6 @@ export type ConnectedAccountEdgeSelect = { select: ConnectedAccountSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; @@ -1580,6 +1603,18 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} +export type EmailEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSelect; + }; +}; /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/auth/orm/models/index.ts b/sdk/constructive-sdk/src/auth/orm/models/index.ts index f0e6c6b1f..67ded861a 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/index.ts @@ -7,6 +7,6 @@ export { RoleTypeModel } from './roleType'; export { CryptoAddressModel } from './cryptoAddress'; export { PhoneNumberModel } from './phoneNumber'; export { ConnectedAccountModel } from './connectedAccount'; -export { EmailModel } from './email'; export { AuditLogModel } from './auditLog'; +export { EmailModel } from './email'; export { UserModel } from './user'; diff --git a/sdk/constructive-sdk/src/auth/orm/skills/auditLog.md b/sdk/constructive-sdk/src/auth/orm/skills/auditLog.md deleted file mode 100644 index d7eed269a..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/auditLog.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-auditLog - - - -ORM operations for AuditLog records - -## Usage - -```typescript -db.auditLog.findMany({ select: { id: true } }).execute() -db.auditLog.findOne({ id: '', select: { id: true } }).execute() -db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() -db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() -db.auditLog.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all auditLog records - -```typescript -const items = await db.auditLog.findMany({ - select: { id: true, event: true } -}).execute(); -``` - -### Create a auditLog - -```typescript -const item = await db.auditLog.create({ - data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md deleted file mode 100644 index 1c5c3d8ba..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-checkPassword - - - -Execute the checkPassword mutation - -## Usage - -```typescript -db.mutation.checkPassword({ input: '' }).execute() -``` - -## Examples - -### Run checkPassword - -```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md b/sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md deleted file mode 100644 index 4d76c3194..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-confirmDeleteAccount - - - -Execute the confirmDeleteAccount mutation - -## Usage - -```typescript -db.mutation.confirmDeleteAccount({ input: '' }).execute() -``` - -## Examples - -### Run confirmDeleteAccount - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md b/sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md deleted file mode 100644 index ff7e10281..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-connectedAccount - - - -ORM operations for ConnectedAccount records - -## Usage - -```typescript -db.connectedAccount.findMany({ select: { id: true } }).execute() -db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() -db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.connectedAccount.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccount records - -```typescript -const items = await db.connectedAccount.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a connectedAccount - -```typescript -const item = await db.connectedAccount.create({ - data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md b/sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md deleted file mode 100644 index 70e896572..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAddress - - - -ORM operations for CryptoAddress records - -## Usage - -```typescript -db.cryptoAddress.findMany({ select: { id: true } }).execute() -db.cryptoAddress.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.cryptoAddress.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddress records - -```typescript -const items = await db.cryptoAddress.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a cryptoAddress - -```typescript -const item = await db.cryptoAddress.create({ - data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md b/sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md deleted file mode 100644 index 63d2d9969..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentIpAddress - - - -Execute the currentIpAddress query - -## Usage - -```typescript -db.query.currentIpAddress().execute() -``` - -## Examples - -### Run currentIpAddress - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentUser.md b/sdk/constructive-sdk/src/auth/orm/skills/currentUser.md deleted file mode 100644 index ca907fcb4..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/currentUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUser - - - -Execute the currentUser query - -## Usage - -```typescript -db.query.currentUser().execute() -``` - -## Examples - -### Run currentUser - -```typescript -const result = await db.query.currentUser().execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md b/sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md deleted file mode 100644 index e5ba1e850..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserAgent - - - -Execute the currentUserAgent query - -## Usage - -```typescript -db.query.currentUserAgent().execute() -``` - -## Examples - -### Run currentUserAgent - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md b/sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md deleted file mode 100644 index c27ebc8c5..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserId - - - -Execute the currentUserId query - -## Usage - -```typescript -db.query.currentUserId().execute() -``` - -## Examples - -### Run currentUserId - -```typescript -const result = await db.query.currentUserId().execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/email.md b/sdk/constructive-sdk/src/auth/orm/skills/email.md deleted file mode 100644 index 9bc21e74f..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-email - - - -ORM operations for Email records - -## Usage - -```typescript -db.email.findMany({ select: { id: true } }).execute() -db.email.findOne({ id: '', select: { id: true } }).execute() -db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.email.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all email records - -```typescript -const items = await db.email.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a email - -```typescript -const item = await db.email.create({ - data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md b/sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md deleted file mode 100644 index d587afacb..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-extendTokenExpires - - - -Execute the extendTokenExpires mutation - -## Usage - -```typescript -db.mutation.extendTokenExpires({ input: '' }).execute() -``` - -## Examples - -### Run extendTokenExpires - -```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md deleted file mode 100644 index 38c59f662..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-forgotPassword - - - -Execute the forgotPassword mutation - -## Usage - -```typescript -db.mutation.forgotPassword({ input: '' }).execute() -``` - -## Examples - -### Run forgotPassword - -```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md b/sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md deleted file mode 100644 index 2ac3f962d..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```typescript -db.mutation.oneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run oneTimeToken - -```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md b/sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md deleted file mode 100644 index 2a77480fa..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-phoneNumber - - - -ORM operations for PhoneNumber records - -## Usage - -```typescript -db.phoneNumber.findMany({ select: { id: true } }).execute() -db.phoneNumber.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.phoneNumber.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumber records - -```typescript -const items = await db.phoneNumber.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a phoneNumber - -```typescript -const item = await db.phoneNumber.create({ - data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md deleted file mode 100644 index fe676ada5..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-resetPassword - - - -Execute the resetPassword mutation - -## Usage - -```typescript -db.mutation.resetPassword({ input: '' }).execute() -``` - -## Examples - -### Run resetPassword - -```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/roleType.md b/sdk/constructive-sdk/src/auth/orm/skills/roleType.md deleted file mode 100644 index 261296f03..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/roleType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-roleType - - - -ORM operations for RoleType records - -## Usage - -```typescript -db.roleType.findMany({ select: { id: true } }).execute() -db.roleType.findOne({ id: '', select: { id: true } }).execute() -db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() -db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.roleType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all roleType records - -```typescript -const items = await db.roleType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a roleType - -```typescript -const item = await db.roleType.create({ - data: { name: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md b/sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md deleted file mode 100644 index aaf0470b5..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendAccountDeletionEmail - - - -Execute the sendAccountDeletionEmail mutation - -## Usage - -```typescript -db.mutation.sendAccountDeletionEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendAccountDeletionEmail - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md b/sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md deleted file mode 100644 index 2f0cfea9a..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendVerificationEmail - - - -Execute the sendVerificationEmail mutation - -## Usage - -```typescript -db.mutation.sendVerificationEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendVerificationEmail - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/setPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/setPassword.md deleted file mode 100644 index bbf15b68d..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/setPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPassword - - - -Execute the setPassword mutation - -## Usage - -```typescript -db.mutation.setPassword({ input: '' }).execute() -``` - -## Examples - -### Run setPassword - -```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signIn.md b/sdk/constructive-sdk/src/auth/orm/skills/signIn.md deleted file mode 100644 index d49334136..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/signIn.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signIn - - - -Execute the signIn mutation - -## Usage - -```typescript -db.mutation.signIn({ input: '' }).execute() -``` - -## Examples - -### Run signIn - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md b/sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md deleted file mode 100644 index 9a87fd088..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```typescript -db.mutation.signInOneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run signInOneTimeToken - -```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signOut.md b/sdk/constructive-sdk/src/auth/orm/skills/signOut.md deleted file mode 100644 index 7ada67374..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/signOut.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signOut - - - -Execute the signOut mutation - -## Usage - -```typescript -db.mutation.signOut({ input: '' }).execute() -``` - -## Examples - -### Run signOut - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signUp.md b/sdk/constructive-sdk/src/auth/orm/skills/signUp.md deleted file mode 100644 index 8c999d2b8..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/signUp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signUp - - - -Execute the signUp mutation - -## Usage - -```typescript -db.mutation.signUp({ input: '' }).execute() -``` - -## Examples - -### Run signUp - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/user.md b/sdk/constructive-sdk/src/auth/orm/skills/user.md deleted file mode 100644 index e80b99583..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/user.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-user - - - -ORM operations for User records - -## Usage - -```typescript -db.user.findMany({ select: { id: true } }).execute() -db.user.findOne({ id: '', select: { id: true } }).execute() -db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() -db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() -db.user.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all user records - -```typescript -const items = await db.user.findMany({ - select: { id: true, username: true } -}).execute(); -``` - -### Create a user - -```typescript -const item = await db.user.create({ - data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md b/sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md deleted file mode 100644 index c9a3f4ac1..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyEmail - - - -Execute the verifyEmail mutation - -## Usage - -```typescript -db.mutation.verifyEmail({ input: '' }).execute() -``` - -## Examples - -### Run verifyEmail - -```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md deleted file mode 100644 index 10b75c518..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyPassword - - - -Execute the verifyPassword mutation - -## Usage - -```typescript -db.mutation.verifyPassword({ input: '' }).execute() -``` - -## Examples - -### Run verifyPassword - -```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md b/sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md deleted file mode 100644 index 5541069f3..000000000 --- a/sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyTotp - - - -Execute the verifyTotp mutation - -## Usage - -```typescript -db.mutation.verifyTotp({ input: '' }).execute() -``` - -## Examples - -### Run verifyTotp - -```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/commit.md b/sdk/constructive-sdk/src/objects/orm/skills/commit.md deleted file mode 100644 index 85ded9d62..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -db.commit.findMany({ select: { id: true } }).execute() -db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() -db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() -db.commit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all commit records - -```typescript -const items = await db.commit.findMany({ - select: { id: true, message: true } -}).execute(); -``` - -### Create a commit - -```typescript -const item = await db.commit.create({ - data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md b/sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md deleted file mode 100644 index b3f195547..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```typescript -db.mutation.freezeObjects({ input: '' }).execute() -``` - -## Examples - -### Run freezeObjects - -```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md b/sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md deleted file mode 100644 index 71c5db4db..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getAllObjectsFromRoot - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md b/sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md deleted file mode 100644 index 9c61daad2..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-getAllRecord - - - -ORM operations for GetAllRecord records - -## Usage - -```typescript -db.getAllRecord.findMany({ select: { id: true } }).execute() -db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() -db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() -db.getAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all getAllRecord records - -```typescript -const items = await db.getAllRecord.findMany({ - select: { id: true, path: true } -}).execute(); -``` - -### Create a getAllRecord - -```typescript -const item = await db.getAllRecord.create({ - data: { path: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md deleted file mode 100644 index 820b6d5fc..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() -``` - -## Examples - -### Run getObjectAtPath - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md b/sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md deleted file mode 100644 index 954943d90..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getPathObjectsFromRoot - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md b/sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md deleted file mode 100644 index 43a46841f..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-initEmptyRepo - - - -Execute the initEmptyRepo mutation - -## Usage - -```typescript -db.mutation.initEmptyRepo({ input: '' }).execute() -``` - -## Examples - -### Run initEmptyRepo - -```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md deleted file mode 100644 index 2e9db15a0..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-insertNodeAtPath - - - -Execute the insertNodeAtPath mutation - -## Usage - -```typescript -db.mutation.insertNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run insertNodeAtPath - -```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/object.md b/sdk/constructive-sdk/src/objects/orm/skills/object.md deleted file mode 100644 index e006a0b5a..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-object - - - -ORM operations for Object records - -## Usage - -```typescript -db.object.findMany({ select: { id: true } }).execute() -db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() -db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() -db.object.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all object records - -```typescript -const items = await db.object.findMany({ - select: { id: true, hashUuid: true } -}).execute(); -``` - -### Create a object - -```typescript -const item = await db.object.create({ - data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/ref.md b/sdk/constructive-sdk/src/objects/orm/skills/ref.md deleted file mode 100644 index 3165ec41e..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -db.ref.findMany({ select: { id: true } }).execute() -db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() -db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.ref.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all ref records - -```typescript -const items = await db.ref.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a ref - -```typescript -const item = await db.ref.create({ - data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md deleted file mode 100644 index 116c41c0a..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```typescript -db.mutation.removeNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run removeNodeAtPath - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/revParse.md b/sdk/constructive-sdk/src/objects/orm/skills/revParse.md deleted file mode 100644 index 0a1830ff8..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/revParse.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-revParse - - - -Execute the revParse query - -## Usage - -```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() -``` - -## Examples - -### Run revParse - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md b/sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md deleted file mode 100644 index a5fa6e0d9..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setAndCommit - - - -Execute the setAndCommit mutation - -## Usage - -```typescript -db.mutation.setAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setAndCommit - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md deleted file mode 100644 index 7f09dab97..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setDataAtPath - - - -Execute the setDataAtPath mutation - -## Usage - -```typescript -db.mutation.setDataAtPath({ input: '' }).execute() -``` - -## Examples - -### Run setDataAtPath - -```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md b/sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md deleted file mode 100644 index 7248c0e1c..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```typescript -db.mutation.setPropsAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setPropsAndCommit - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/store.md b/sdk/constructive-sdk/src/objects/orm/skills/store.md deleted file mode 100644 index 1a9bfc8a5..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -db.store.findMany({ select: { id: true } }).execute() -db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() -db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.store.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all store records - -```typescript -const items = await db.store.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a store - -```typescript -const item = await db.store.create({ - data: { name: 'value', databaseId: 'value', hash: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md deleted file mode 100644 index d1a7bbf95..000000000 --- a/sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```typescript -db.mutation.updateNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run updateNodeAtPath - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md index 21d586f6c..c3a4634e2 100644 --- a/sdk/constructive-sdk/src/public/README.md +++ b/sdk/constructive-sdk/src/public/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 99 -- **Custom queries:** 18 +- **Tables:** 104 +- **Custom queries:** 19 - **Custom mutations:** 31 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index e7b901054..dbb346bd5 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -21,6 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `orgGetManagersRecord` | findMany, findOne, create, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | @@ -34,7 +36,6 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `limitFunction` | findMany, findOne, create, update, delete | | `policy` | findMany, findOne, create, update, delete | | `primaryKeyConstraint` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -46,14 +47,16 @@ const db = createClient({ | `viewRule` | findMany, findOne, create, update, delete | | `tableModule` | findMany, findOne, create, update, delete | | `tableTemplateModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | +| `defaultPrivilege` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | | `siteMetadatum` | findMany, findOne, create, update, delete | | `siteModule` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | -| `procedure` | findMany, findOne, create, update, delete | | `triggerFunction` | findMany, findOne, create, update, delete | | `api` | findMany, findOne, create, update, delete | | `site` | findMany, findOne, create, update, delete | @@ -89,6 +92,8 @@ const db = createClient({ | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | @@ -97,32 +102,92 @@ const db = createClient({ | `claimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | +| `appPermissionDefault` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | | `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `sqlMigration` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | ## Table Operations +### `db.orgGetManagersRecord` + +CRUD operations for OrgGetManagersRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGetSubordinatesRecord` + +CRUD operations for OrgGetSubordinatesRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `userId` | UUID | Yes | +| `depth` | Int | Yes | + +**Operations:** + +```typescript +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); + +// Get one by id +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); + +// Create +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +``` + ### `db.getAllRecord` CRUD operations for GetAllRecord records. @@ -638,42 +703,6 @@ const updated = await db.index.update({ where: { id: '' }, data: { databa const deleted = await db.index.delete({ where: { id: '' } }).execute(); ``` -### `db.limitFunction` - -CRUD operations for LimitFunction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `data` | JSON | Yes | -| `security` | Int | Yes | - -**Operations:** - -```typescript -// List all limitFunction records -const items = await db.limitFunction.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }).execute(); - -// Get one by id -const item = await db.limitFunction.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, data: true, security: true } }).execute(); - -// Create -const created = await db.limitFunction.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.limitFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.limitFunction.delete({ where: { id: '' } }).execute(); -``` - ### `db.policy` CRUD operations for Policy records. @@ -686,7 +715,7 @@ CRUD operations for Policy records. | `databaseId` | UUID | Yes | | `tableId` | UUID | Yes | | `name` | String | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `privilege` | String | Yes | | `permissive` | Boolean | Yes | | `disabled` | Boolean | Yes | @@ -704,13 +733,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, roleName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, roleName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -772,8 +801,9 @@ CRUD operations for TableGrant records. | `databaseId` | UUID | Yes | | `tableId` | UUID | Yes | | `privilege` | String | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `fieldIds` | UUID | Yes | +| `isGrant` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -781,13 +811,13 @@ CRUD operations for TableGrant records. ```typescript // List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute(); +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -966,21 +996,22 @@ CRUD operations for ViewGrant records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `viewId` | UUID | Yes | -| `roleName` | String | Yes | +| `granteeName` | String | Yes | | `privilege` | String | Yes | | `withGrantOption` | Boolean | Yes | +| `isGrant` | Boolean | Yes | **Operations:** ```typescript // List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }).execute(); +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }).execute(); +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute(); +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1033,9 +1064,11 @@ CRUD operations for TableModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | +| `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | +| `tableName` | String | Yes | | `nodeType` | String | Yes | +| `useRls` | Boolean | Yes | | `data` | JSON | Yes | | `fields` | UUID | Yes | @@ -1043,13 +1076,13 @@ CRUD operations for TableModule records. ```typescript // List all tableModule records -const items = await db.tableModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }).execute(); +const items = await db.tableModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }).execute(); // Get one by id -const item = await db.tableModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }).execute(); +const item = await db.tableModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }).execute(); // Create -const created = await db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute(); +const created = await db.tableModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }, select: { id: true } }).execute(); // Update const updated = await db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1095,6 +1128,107 @@ const updated = await db.tableTemplateModule.update({ where: { id: '' }, const deleted = await db.tableTemplateModule.delete({ where: { id: '' } }).execute(); ``` +### `db.secureTableProvision` + +CRUD operations for SecureTableProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `nodeType` | String | Yes | +| `useRls` | Boolean | Yes | +| `nodeData` | JSON | Yes | +| `grantRoles` | String | Yes | +| `grantPrivileges` | JSON | Yes | +| `policyType` | String | Yes | +| `policyPrivileges` | String | Yes | +| `policyRole` | String | Yes | +| `policyPermissive` | Boolean | Yes | +| `policyName` | String | Yes | +| `policyData` | JSON | Yes | +| `outFields` | UUID | Yes | + +**Operations:** + +```typescript +// List all secureTableProvision records +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); + +// Get one by id +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); + +// Create +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); +``` + +### `db.relationProvision` + +CRUD operations for RelationProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `relationType` | String | Yes | +| `sourceTableId` | UUID | Yes | +| `targetTableId` | UUID | Yes | +| `fieldName` | String | Yes | +| `deleteAction` | String | Yes | +| `isRequired` | Boolean | Yes | +| `junctionTableId` | UUID | Yes | +| `junctionTableName` | String | Yes | +| `junctionSchemaId` | UUID | Yes | +| `sourceFieldName` | String | Yes | +| `targetFieldName` | String | Yes | +| `useCompositeKey` | Boolean | Yes | +| `nodeType` | String | Yes | +| `nodeData` | JSON | Yes | +| `grantRoles` | String | Yes | +| `grantPrivileges` | JSON | Yes | +| `policyType` | String | Yes | +| `policyPrivileges` | String | Yes | +| `policyRole` | String | Yes | +| `policyPermissive` | Boolean | Yes | +| `policyName` | String | Yes | +| `policyData` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | Yes | + +**Operations:** + +```typescript +// List all relationProvision records +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); + +// Get one by id +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); + +// Create +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1129,6 +1263,41 @@ const updated = await db.schemaGrant.update({ where: { id: '' }, data: { const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.defaultPrivilege` + +CRUD operations for DefaultPrivilege records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `objectType` | String | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all defaultPrivilege records +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Create +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. @@ -1327,49 +1496,6 @@ const updated = await db.siteTheme.update({ where: { id: '' }, data: { da const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); ``` -### `db.procedure` - -CRUD operations for Procedure records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `argnames` | String | Yes | -| `argtypes` | String | Yes | -| `argdefaults` | String | Yes | -| `langName` | String | Yes | -| `definition` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all procedure records -const items = await db.procedure.findMany({ select: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.procedure.findOne({ id: '', select: { id: true, databaseId: true, name: true, argnames: true, argtypes: true, argdefaults: true, langName: true, definition: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.procedure.create({ data: { databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.procedure.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.procedure.delete({ where: { id: '' } }).execute(); -``` - ### `db.triggerFunction` CRUD operations for TriggerFunction records. @@ -2135,7 +2261,6 @@ CRUD operations for ProfilesModule records. | `profileGrantsTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | -| `bitlen` | Int | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | @@ -2147,13 +2272,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2564,18 +2689,19 @@ CRUD operations for OrgMembership records. | `granted` | BitString | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -2722,6 +2848,79 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { per const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.orgChartEdge` + +CRUD operations for OrgChartEdge records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | + +**Operations:** + +```typescript +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); + +// Create +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgChartEdgeGrant` + +CRUD operations for OrgChartEdgeGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appLimit` CRUD operations for AppLimit records. @@ -3008,39 +3207,42 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, dat const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.ref` -CRUD operations for AppPermissionDefault records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.store` -CRUD operations for Ref records. +CRUD operations for Store records. **Fields:** @@ -3049,59 +3251,56 @@ CRUD operations for Ref records. | `id` | UUID | No | | `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.appPermissionDefault` -CRUD operations for Store records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | +| `permissions` | BitString | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.roleType` @@ -3165,40 +3364,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.cryptoAddress` -CRUD operations for AppLimitDefault records. +CRUD operations for CryptoAddress records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | Int | Yes | +| `ownerId` | UUID | Yes | +| `address` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appLimitDefault` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppLimitDefault records. **Fields:** @@ -3211,87 +3414,51 @@ CRUD operations for OrgLimitDefault records. **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.cryptoAddress` +### `db.orgLimitDefault` -CRUD operations for CryptoAddress records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | | `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccount` @@ -3366,39 +3533,36 @@ const updated = await db.phoneNumber.update({ where: { id: '' }, data: { const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.nodeTypeRegistry` @@ -3438,6 +3602,41 @@ const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, d const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` +### `db.appMembershipDefault` + +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Get one by id +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Create +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + ### `db.commit` CRUD operations for Commit records. @@ -3512,41 +3711,6 @@ const updated = await db.orgMembershipDefault.update({ where: { id: '' }, const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); -``` - ### `db.auditLog` CRUD operations for AuditLog records. @@ -3618,6 +3782,41 @@ const updated = await db.appLevel.update({ where: { id: '' }, data: { nam const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` +### `db.email` + +CRUD operations for Email records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.email.delete({ where: { id: '' } }).execute(); +``` + ### `db.sqlMigration` CRUD operations for SqlMigration records. @@ -3700,84 +3899,85 @@ const updated = await db.astMigration.update({ where: { id: '' }, data: { const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` +### `db.user` -CRUD operations for AppMembership records. +CRUD operations for User records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `username` | String | Yes | +| `displayName` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `searchTsv` | FullText | Yes | +| `type` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | +| `searchTsvRank` | Float | Yes | **Operations:** ```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +// List all user records +const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` -### `db.user` +### `db.appMembership` -CRUD operations for User records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `username` | String | Yes | -| `displayName` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchTsv` | FullText | Yes | -| `type` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `searchTsvRank` | Float | Yes | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all user records -const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -3926,6 +4126,24 @@ revParse const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` +### `db.query.orgIsManagerOf` + +orgIsManagerOf + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `pEntityId` | UUID | + | `pManagerId` | UUID | + | `pUserId` | UUID | + | `pMaxDepth` | Int | + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` + ### `db.query.appPermissionsGetMask` appPermissionsGetMask diff --git a/sdk/constructive-sdk/src/public/orm/index.ts b/sdk/constructive-sdk/src/public/orm/index.ts index 5bdb26031..238fd616e 100644 --- a/sdk/constructive-sdk/src/public/orm/index.ts +++ b/sdk/constructive-sdk/src/public/orm/index.ts @@ -5,6 +5,8 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; +import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; @@ -18,7 +20,6 @@ import { FieldModel } from './models/field'; import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { IndexModel } from './models/index'; -import { LimitFunctionModel } from './models/limitFunction'; import { PolicyModel } from './models/policy'; import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { TableGrantModel } from './models/tableGrant'; @@ -30,14 +31,16 @@ import { ViewGrantModel } from './models/viewGrant'; import { ViewRuleModel } from './models/viewRule'; import { TableModuleModel } from './models/tableModule'; import { TableTemplateModuleModel } from './models/tableTemplateModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; +import { RelationProvisionModel } from './models/relationProvision'; import { SchemaGrantModel } from './models/schemaGrant'; +import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; import { SiteThemeModel } from './models/siteTheme'; -import { ProcedureModel } from './models/procedure'; import { TriggerFunctionModel } from './models/triggerFunction'; import { ApiModel } from './models/api'; import { SiteModel } from './models/site'; @@ -73,6 +76,8 @@ import { OrgMemberModel } from './models/orgMember'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; import { AppStepModel } from './models/appStep'; @@ -81,28 +86,28 @@ import { InviteModel } from './models/invite'; import { ClaimedInviteModel } from './models/claimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; +import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { RoleTypeModel } from './models/roleType'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { CryptoAddressModel } from './models/cryptoAddress'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { MembershipTypeModel } from './models/membershipType'; import { ConnectedAccountModel } from './models/connectedAccount'; import { PhoneNumberModel } from './models/phoneNumber'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { CommitModel } from './models/commit'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { EmailModel } from './models/email'; import { AuditLogModel } from './models/auditLog'; import { AppLevelModel } from './models/appLevel'; +import { EmailModel } from './models/email'; import { SqlMigrationModel } from './models/sqlMigration'; import { AstMigrationModel } from './models/astMigration'; -import { AppMembershipModel } from './models/appMembership'; import { UserModel } from './models/user'; +import { AppMembershipModel } from './models/appMembership'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -139,6 +144,8 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + orgGetManagersRecord: new OrgGetManagersRecordModel(client), + orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), @@ -152,7 +159,6 @@ export function createClient(config: OrmClientConfig) { foreignKeyConstraint: new ForeignKeyConstraintModel(client), fullTextSearch: new FullTextSearchModel(client), index: new IndexModel(client), - limitFunction: new LimitFunctionModel(client), policy: new PolicyModel(client), primaryKeyConstraint: new PrimaryKeyConstraintModel(client), tableGrant: new TableGrantModel(client), @@ -164,14 +170,16 @@ export function createClient(config: OrmClientConfig) { viewRule: new ViewRuleModel(client), tableModule: new TableModuleModel(client), tableTemplateModule: new TableTemplateModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), + relationProvision: new RelationProvisionModel(client), schemaGrant: new SchemaGrantModel(client), + defaultPrivilege: new DefaultPrivilegeModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), siteMetadatum: new SiteMetadatumModel(client), siteModule: new SiteModuleModel(client), siteTheme: new SiteThemeModel(client), - procedure: new ProcedureModel(client), triggerFunction: new TriggerFunctionModel(client), api: new ApiModel(client), site: new SiteModel(client), @@ -207,6 +215,8 @@ export function createClient(config: OrmClientConfig) { orgAdminGrant: new OrgAdminGrantModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), appStep: new AppStepModel(client), @@ -215,28 +225,28 @@ export function createClient(config: OrmClientConfig) { claimedInvite: new ClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), ref: new RefModel(client), store: new StoreModel(client), + appPermissionDefault: new AppPermissionDefaultModel(client), roleType: new RoleTypeModel(client), orgPermissionDefault: new OrgPermissionDefaultModel(client), + cryptoAddress: new CryptoAddressModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - cryptoAddress: new CryptoAddressModel(client), - membershipType: new MembershipTypeModel(client), connectedAccount: new ConnectedAccountModel(client), phoneNumber: new PhoneNumberModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), commit: new CommitModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - email: new EmailModel(client), auditLog: new AuditLogModel(client), appLevel: new AppLevelModel(client), + email: new EmailModel(client), sqlMigration: new SqlMigrationModel(client), astMigration: new AstMigrationModel(client), - appMembership: new AppMembershipModel(client), user: new UserModel(client), + appMembership: new AppMembershipModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index 392f8060e..f3a162c68 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -233,22 +233,40 @@ export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; // ============ Entity Types ============ +export interface OrgGetManagersRecord { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecord { + userId?: string | null; + depth?: number | null; +} export interface GetAllRecord { path?: string | null; data?: Record | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } +/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; + /** Human-readable permission name (e.g. read, write, manage) */ name?: string | null; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ bitnum?: number | null; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ bitstr?: string | null; + /** Human-readable description of what this permission allows */ description?: string | null; } export interface Object { @@ -261,13 +279,18 @@ export interface Object { frzn?: boolean | null; createdAt?: string | null; } -/** Requirements to achieve a level */ +/** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; + /** Name identifier of the requirement (matches step names) */ name?: string | null; + /** Name of the level this requirement belongs to */ level?: string | null; + /** Human-readable description of what this requirement entails */ description?: string | null; + /** Number of steps needed to satisfy this requirement */ requiredCount?: number | null; + /** Display ordering priority; lower values appear first */ priority?: number | null; createdAt?: string | null; updatedAt?: string | null; @@ -411,22 +434,12 @@ export interface Index { createdAt?: string | null; updatedAt?: string | null; } -export interface LimitFunction { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: Record | null; - security?: number | null; -} export interface Policy { id: string; databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -460,8 +473,9 @@ export interface TableGrant { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -525,9 +539,10 @@ export interface ViewGrant { id: string; databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } /** DO INSTEAD rules for views (e.g., read-only enforcement) */ export interface ViewRule { @@ -543,9 +558,11 @@ export interface ViewRule { export interface TableModule { id: string; databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: Record | null; fields?: string | null; } @@ -560,6 +577,178 @@ export interface TableTemplateModule { nodeType?: string | null; data?: Record | null; } +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ +export interface SecureTableProvision { + /** Unique identifier for this provision row. */ + id: string; + /** The database this provision belongs to. Required. */ + databaseId?: string | null; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string | null; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string | null; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string | null; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: string | null; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ + useRls?: boolean | null; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + nodeData?: Record | null; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string | null; + /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ + grantPrivileges?: Record | null; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string | null; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string | null; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string | null; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean | null; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string | null; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: Record | null; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string | null; +} +/** + * Provisions relational structure between tables. Supports four relation types: + * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + * - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + * - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + * - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + * This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + * All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + * The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + */ +export interface RelationProvision { + /** Unique identifier for this relation provision row. */ + id: string; + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + databaseId?: string | null; + /** + * The type of relation to create. Uses SuperCase naming matching the node_type_registry: + * - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. + * - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. + * - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. + * - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). + * Each relation type uses a different subset of columns on this table. Required. + */ + relationType?: string | null; + /** + * The source table in the relation. Required. + * - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). + * - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. + * - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). + * - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. + */ + sourceTableId?: string | null; + /** + * The target table in the relation. Required. + * - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). + * - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). + * - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). + * - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. + */ + targetTableId?: string | null; + /** + * FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. + * - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). + * - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). + * For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. + * Ignored for RelationManyToMany — use source_field_name/target_field_name instead. + */ + fieldName?: string | null; + /** FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). */ + deleteAction?: string | null; + /** + * Whether the FK field is NOT NULL. Defaults to true. + * - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). + * - RelationHasMany: set to false if the child can exist without a parent. + * - RelationHasOne: typically true. + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + isRequired?: boolean | null; + /** + * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). + * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. + * - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + junctionTableId?: string | null; + /** For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. */ + junctionTableName?: string | null; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string | null; + /** For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + sourceFieldName?: string | null; + /** For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + targetFieldName?: string | null; + /** + * For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. + * - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. + * - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. + * use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + useCompositeKey?: boolean | null; + /** + * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. + * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeType?: string | null; + /** + * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Only used when node_type is set. Structure varies by node_type. Examples: + * - DataId: {"field_name": "id"} (default field name is 'id') + * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} + * - DataDirectOwner: {"owner_field_name": "owner_id"} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeData?: Record | null; + /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ + grantRoles?: string | null; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: Record | null; + /** + * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. + * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyType?: string | null; + /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPrivileges?: string | null; + /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ + policyRole?: string | null; + /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPermissive?: boolean | null; + /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ + policyName?: string | null; + /** + * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: + * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} + * - AuthzDirectOwner: {"owner_field": "owner_id"} + * - AuthzMembership: {"membership_type": 2} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyData?: Record | null; + /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */ + outFieldId?: string | null; + /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outJunctionTableId?: string | null; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outSourceFieldId?: string | null; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outTargetFieldId?: string | null; +} export interface SchemaGrant { id: string; databaseId?: string | null; @@ -568,65 +757,93 @@ export interface SchemaGrant { createdAt?: string | null; updatedAt?: string | null; } +export interface DefaultPrivilege { + id: string; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ export interface ApiSchema { + /** Unique identifier for this API-schema mapping */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Metaschema schema being exposed through the API */ schemaId?: string | null; + /** API that exposes this schema */ apiId?: string | null; } +/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ export interface ApiModule { + /** Unique identifier for this API module record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** API this module configuration belongs to */ apiId?: string | null; + /** Module name (e.g. auth, uploads, webhooks) */ name?: string | null; + /** JSON configuration data for this module */ data?: Record | null; } +/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ export interface Domain { + /** Unique identifier for this domain record */ id: string; + /** Reference to the metaschema database this domain belongs to */ databaseId?: string | null; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ apiId?: string | null; + /** Site this domain routes to (mutually exclusive with api_id) */ siteId?: string | null; + /** Subdomain portion of the hostname */ subdomain?: ConstructiveInternalTypeHostname | null; + /** Root domain of the hostname */ domain?: ConstructiveInternalTypeHostname | null; } +/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ export interface SiteMetadatum { + /** Unique identifier for this metadata record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this metadata belongs to */ siteId?: string | null; + /** Page title for SEO (max 120 characters) */ title?: string | null; + /** Meta description for SEO and social sharing (max 120 characters) */ description?: string | null; + /** Open Graph image for social media previews */ ogImage?: ConstructiveInternalTypeImage | null; } +/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ export interface SiteModule { + /** Unique identifier for this site module record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this module configuration belongs to */ siteId?: string | null; + /** Module name (e.g. user_auth_module, analytics) */ name?: string | null; + /** JSON configuration data for this module */ data?: Record | null; } +/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ export interface SiteTheme { + /** Unique identifier for this theme record */ id: string; + /** Reference to the metaschema database */ databaseId?: string | null; + /** Site this theme belongs to */ siteId?: string | null; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ theme?: Record | null; } -export interface Procedure { - id: string; - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface TriggerFunction { id: string; databaseId?: string | null; @@ -635,35 +852,63 @@ export interface TriggerFunction { createdAt?: string | null; updatedAt?: string | null; } +/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ export interface Api { + /** Unique identifier for this API */ id: string; + /** Reference to the metaschema database this API serves */ databaseId?: string | null; + /** Unique name for this API within its database */ name?: string | null; + /** PostgreSQL database name to connect to */ dbname?: string | null; + /** PostgreSQL role used for authenticated requests */ roleName?: string | null; + /** PostgreSQL role used for anonymous/unauthenticated requests */ anonRole?: string | null; + /** Whether this API is publicly accessible without authentication */ isPublic?: boolean | null; } +/** Top-level site configuration: branding assets, title, and description for a deployed application */ export interface Site { + /** Unique identifier for this site */ id: string; + /** Reference to the metaschema database this site belongs to */ databaseId?: string | null; + /** Display title for the site (max 120 characters) */ title?: string | null; + /** Short description of the site (max 120 characters) */ description?: string | null; + /** Open Graph image used for social media link previews */ ogImage?: ConstructiveInternalTypeImage | null; + /** Browser favicon attachment */ favicon?: ConstructiveInternalTypeAttachment | null; + /** Apple touch icon for iOS home screen bookmarks */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** Primary logo image for the site */ logo?: ConstructiveInternalTypeImage | null; + /** PostgreSQL database name this site connects to */ dbname?: string | null; } +/** Mobile and native app configuration linked to a site, including store links and identifiers */ export interface App { + /** Unique identifier for this app */ id: string; + /** Reference to the metaschema database this app belongs to */ databaseId?: string | null; + /** Site this app is associated with (one app per site) */ siteId?: string | null; + /** Display name of the app */ name?: string | null; + /** App icon or promotional image */ appImage?: ConstructiveInternalTypeImage | null; + /** URL to the Apple App Store listing */ appStoreLink?: ConstructiveInternalTypeUrl | null; + /** Apple App Store application identifier */ appStoreId?: string | null; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ appIdPrefix?: string | null; + /** URL to the Google Play Store listing */ playStoreLink?: ConstructiveInternalTypeUrl | null; } export interface ConnectedAccountsModule { @@ -891,7 +1136,6 @@ export interface ProfilesModule { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -1003,166 +1247,280 @@ export interface DatabaseProvisionModule { updatedAt?: string | null; completedAt?: string | null; } +/** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface AppOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; + profileId?: string | null; } +/** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; + /** Whether this member has admin privileges */ isAdmin?: boolean | null; + /** References the user who is a member */ actorId?: string | null; + /** References the entity (org or group) this member belongs to */ entityId?: string | null; } +/** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; + /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; + /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; + /** Bitmask of permissions being granted or revoked */ permissions?: string | null; + /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} +/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ +export interface OrgChartEdgeGrant { + id: string; + /** Organization this grant applies to */ + entityId?: string | null; + /** User ID of the subordinate being placed in the hierarchy */ + childId?: string | null; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string | null; + /** User ID of the admin who performed this grant or revocation */ + grantorId?: string | null; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean | null; + /** Job title or role name being assigned in this grant */ + positionTitle?: string | null; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number | null; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { id: string; + /** Name identifier of the limit being tracked */ name?: string | null; + /** User whose usage is being tracked against this limit */ actorId?: string | null; + /** Current usage count for this actor and limit */ num?: number | null; + /** Maximum allowed usage; NULL means use the default limit value */ max?: number | null; entityId?: string | null; } -/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { id: string; actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; + /** Number of units completed in this step action */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } -/** This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. */ +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ export interface AppAchievement { id: string; actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; + /** Cumulative count of completed steps toward this requirement */ count?: number | null; createdAt?: string | null; updatedAt?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { id: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; + /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ senderId?: string | null; + /** User ID of the intended recipient, if targeting a specific user */ receiverId?: string | null; + /** Unique random hex token used to redeem this invitation */ inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } +/** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; + /** Optional JSON payload captured at the time the invite was claimed */ data?: Record | null; + /** User ID of the original invitation sender */ senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ receiverId?: string | null; createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; } -export interface AppPermissionDefault { - id: string; - permissions?: string | null; -} /** A ref is a data structure for pointing to a commit. */ export interface Ref { /** The primary unique identifier for the ref. */ @@ -1185,40 +1543,54 @@ export interface Store { hash?: string | null; createdAt?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface AppPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; +} export interface RoleType { id: number; name?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { id: string; + /** Default permission bitmask applied to new members */ permissions?: string | null; + /** References the entity these default permissions apply to */ entityId?: string | null; } -export interface AppLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefault { - id: string; - name?: string | null; - max?: number | null; -} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ export interface CryptoAddress { id: string; ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface MembershipType { - id: number; +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ name?: string | null; - description?: string | null; - prefix?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: number | null; } +/** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { id: string; ownerId?: string | null; @@ -1228,28 +1600,36 @@ export interface ConnectedAccount { identifier?: string | null; /** Additional profile details extracted from this login method */ details?: Record | null; + /** Whether this connected account has been verified */ isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } +/** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { id: string; ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ cc?: string | null; + /** The phone number without country code */ number?: string | null; + /** Whether the phone number has been verified via SMS code */ isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; } /** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */ export interface NodeTypeRegistry { @@ -1257,7 +1637,7 @@ export interface NodeTypeRegistry { name?: string | null; /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */ slug?: string | null; - /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types) */ + /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) */ category?: string | null; /** Human-readable display name for UI */ displayName?: string | null; @@ -1270,6 +1650,18 @@ export interface NodeTypeRegistry { createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ @@ -1289,43 +1681,64 @@ export interface Commit { treeId?: string | null; date?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ entityId?: string | null; + /** When an org member is deleted, whether to cascade-remove their group memberships */ deleteMemberCascadeGroups?: boolean | null; + /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -export interface Email { - id: string; - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; + /** User who performed the authentication action */ actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ userAgent?: string | null; + /** IP address of the client that initiated the auth event */ ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ success?: boolean | null; + /** Timestamp when the audit event was recorded */ createdAt?: string | null; } -/** Levels for achievement */ +/** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { id: string; + /** Unique name of the level */ name?: string | null; + /** Human-readable description of what this level represents */ description?: string | null; + /** Badge or icon image associated with this level */ image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -1359,34 +1772,46 @@ export interface AstMigration { actionId?: string | null; actorId?: string | null; } +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. */ + searchTsvRank?: number | null; +} +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. */ - searchTsvRank?: number | null; + profileId?: string | null; } export interface HierarchyModule { id: string; @@ -1423,6 +1848,8 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface OrgGetManagersRecordRelations {} +export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} @@ -1438,10 +1865,8 @@ export interface DatabaseRelations { foreignKeyConstraints?: ConnectionResult; fullTextSearches?: ConnectionResult; indices?: ConnectionResult; - limitFunctions?: ConnectionResult; policies?: ConnectionResult; primaryKeyConstraints?: ConnectionResult; - procedures?: ConnectionResult; schemaGrants?: ConnectionResult; tableGrants?: ConnectionResult; triggerFunctions?: ConnectionResult; @@ -1450,6 +1875,7 @@ export interface DatabaseRelations { views?: ConnectionResult; viewGrants?: ConnectionResult; viewRules?: ConnectionResult; + defaultPrivileges?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; apiSchemas?: ConnectionResult; @@ -1483,6 +1909,8 @@ export interface DatabaseRelations { usersModules?: ConnectionResult; uuidModules?: ConnectionResult; tableTemplateModules?: ConnectionResult; + secureTableProvisions?: ConnectionResult; + relationProvisions?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -1490,6 +1918,7 @@ export interface SchemaRelations { tables?: ConnectionResult
; schemaGrants?: ConnectionResult; views?: ConnectionResult; + defaultPrivileges?: ConnectionResult; apiSchemas?: ConnectionResult; tableTemplateModulesByPrivateSchemaId?: ConnectionResult; tableTemplateModules?: ConnectionResult; @@ -1503,7 +1932,6 @@ export interface TableRelations { foreignKeyConstraints?: ConnectionResult; fullTextSearches?: ConnectionResult; indices?: ConnectionResult; - limitFunctions?: ConnectionResult; policies?: ConnectionResult; primaryKeyConstraints?: ConnectionResult; tableGrants?: ConnectionResult; @@ -1514,6 +1942,9 @@ export interface TableRelations { tableModules?: ConnectionResult; tableTemplateModulesByOwnerTableId?: ConnectionResult; tableTemplateModules?: ConnectionResult; + secureTableProvisions?: ConnectionResult; + relationProvisionsBySourceTableId?: ConnectionResult; + relationProvisionsByTargetTableId?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -1536,10 +1967,6 @@ export interface IndexRelations { database?: Database | null; table?: Table | null; } -export interface LimitFunctionRelations { - database?: Database | null; - table?: Table | null; -} export interface PolicyRelations { database?: Database | null; table?: Table | null; @@ -1582,7 +2009,7 @@ export interface ViewRuleRelations { } export interface TableModuleRelations { database?: Database | null; - privateSchema?: Schema | null; + schema?: Schema | null; table?: Table | null; } export interface TableTemplateModuleRelations { @@ -1592,10 +2019,24 @@ export interface TableTemplateModuleRelations { schema?: Schema | null; table?: Table | null; } +export interface SecureTableProvisionRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} +export interface RelationProvisionRelations { + database?: Database | null; + sourceTable?: Table | null; + targetTable?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; } +export interface DefaultPrivilegeRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -1622,9 +2063,6 @@ export interface SiteThemeRelations { database?: Database | null; site?: Site | null; } -export interface ProcedureRelations { - database?: Database | null; -} export interface TriggerFunctionRelations { database?: Database | null; } @@ -1858,6 +2296,17 @@ export interface OrgGrantRelations { entity?: User | null; grantor?: User | null; } +export interface OrgChartEdgeRelations { + child?: User | null; + entity?: User | null; + parent?: User | null; +} +export interface OrgChartEdgeGrantRelations { + child?: User | null; + entity?: User | null; + grantor?: User | null; + parent?: User | null; +} export interface AppLimitRelations { actor?: User | null; } @@ -1888,45 +2337,42 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } -export interface AppPermissionDefaultRelations {} export interface RefRelations {} export interface StoreRelations {} +export interface AppPermissionDefaultRelations {} export interface RoleTypeRelations {} export interface OrgPermissionDefaultRelations { entity?: User | null; } -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface CryptoAddressRelations { owner?: User | null; } -export interface MembershipTypeRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface ConnectedAccountRelations { owner?: User | null; } export interface PhoneNumberRelations { owner?: User | null; } -export interface AppMembershipDefaultRelations {} +export interface MembershipTypeRelations {} export interface NodeTypeRegistryRelations {} +export interface AppMembershipDefaultRelations {} export interface CommitRelations {} export interface OrgMembershipDefaultRelations { entity?: User | null; } -export interface EmailRelations { - owner?: User | null; -} export interface AuditLogRelations { actor?: User | null; } export interface AppLevelRelations { owner?: User | null; } +export interface EmailRelations { + owner?: User | null; +} export interface SqlMigrationRelations {} export interface AstMigrationRelations {} -export interface AppMembershipRelations { - actor?: User | null; -} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -1945,6 +2391,13 @@ export interface UserRelations { orgOwnerGrantsByGrantorId?: ConnectionResult; orgGrantsByEntityId?: ConnectionResult; orgGrantsByGrantorId?: ConnectionResult; + parentOrgChartEdges?: ConnectionResult; + orgChartEdgesByEntityId?: ConnectionResult; + childOrgChartEdges?: ConnectionResult; + parentOrgChartEdgeGrants?: ConnectionResult; + orgChartEdgeGrantsByEntityId?: ConnectionResult; + orgChartEdgeGrantsByGrantorId?: ConnectionResult; + childOrgChartEdgeGrants?: ConnectionResult; appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; @@ -1958,6 +2411,9 @@ export interface UserRelations { orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; } +export interface AppMembershipRelations { + actor?: User | null; +} export interface HierarchyModuleRelations { chartEdgeGrantsTable?: Table | null; chartEdgesTable?: Table | null; @@ -1969,6 +2425,10 @@ export interface HierarchyModuleRelations { usersTable?: Table | null; } // ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; @@ -1983,7 +2443,6 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & ForeignKeyConstraintRelations; export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type IndexWithRelations = Index & IndexRelations; -export type LimitFunctionWithRelations = LimitFunction & LimitFunctionRelations; export type PolicyWithRelations = Policy & PolicyRelations; export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & PrimaryKeyConstraintRelations; @@ -1996,14 +2455,17 @@ export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; export type TableModuleWithRelations = TableModule & TableModuleRelations; export type TableTemplateModuleWithRelations = TableTemplateModule & TableTemplateModuleRelations; +export type SecureTableProvisionWithRelations = SecureTableProvision & + SecureTableProvisionRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; +export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; -export type ProcedureWithRelations = Procedure & ProcedureRelations; export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; export type ApiWithRelations = Api & ApiRelations; export type SiteWithRelations = Site & SiteRelations; @@ -2045,6 +2507,8 @@ export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppStepWithRelations = AppStep & AppStepRelations; @@ -2053,34 +2517,42 @@ export type InviteWithRelations = Invite & InviteRelations; export type ClaimedInviteWithRelations = ClaimedInvite & ClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; +export type AppPermissionDefaultWithRelations = AppPermissionDefault & + AppPermissionDefaultRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type CommitWithRelations = Commit & CommitRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type EmailWithRelations = Email & EmailRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; +export type EmailWithRelations = Email & EmailRelations; export type SqlMigrationWithRelations = SqlMigration & SqlMigrationRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type UserWithRelations = User & UserRelations; +export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ +export type OrgGetManagersRecordSelect = { + userId?: boolean; + depth?: boolean; +}; +export type OrgGetSubordinatesRecordSelect = { + userId?: boolean; + depth?: boolean; +}; export type GetAllRecordSelect = { path?: boolean; data?: boolean; @@ -2176,12 +2648,6 @@ export type DatabaseSelect = { filter?: IndexFilter; orderBy?: IndexOrderBy[]; }; - limitFunctions?: { - select: LimitFunctionSelect; - first?: number; - filter?: LimitFunctionFilter; - orderBy?: LimitFunctionOrderBy[]; - }; policies?: { select: PolicySelect; first?: number; @@ -2194,12 +2660,6 @@ export type DatabaseSelect = { filter?: PrimaryKeyConstraintFilter; orderBy?: PrimaryKeyConstraintOrderBy[]; }; - procedures?: { - select: ProcedureSelect; - first?: number; - filter?: ProcedureFilter; - orderBy?: ProcedureOrderBy[]; - }; schemaGrants?: { select: SchemaGrantSelect; first?: number; @@ -2248,6 +2708,12 @@ export type DatabaseSelect = { filter?: ViewRuleFilter; orderBy?: ViewRuleOrderBy[]; }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; apis?: { select: ApiSelect; first?: number; @@ -2446,10 +2912,22 @@ export type DatabaseSelect = { filter?: TableTemplateModuleFilter; orderBy?: TableTemplateModuleOrderBy[]; }; - databaseProvisionModules?: { - select: DatabaseProvisionModuleSelect; + secureTableProvisions?: { + select: SecureTableProvisionSelect; first?: number; - filter?: DatabaseProvisionModuleFilter; + filter?: SecureTableProvisionFilter; + orderBy?: SecureTableProvisionOrderBy[]; + }; + relationProvisions?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; + databaseProvisionModules?: { + select: DatabaseProvisionModuleSelect; + first?: number; + filter?: DatabaseProvisionModuleFilter; orderBy?: DatabaseProvisionModuleOrderBy[]; }; }; @@ -2489,6 +2967,12 @@ export type SchemaSelect = { filter?: ViewFilter; orderBy?: ViewOrderBy[]; }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -2567,12 +3051,6 @@ export type TableSelect = { filter?: IndexFilter; orderBy?: IndexOrderBy[]; }; - limitFunctions?: { - select: LimitFunctionSelect; - first?: number; - filter?: LimitFunctionFilter; - orderBy?: LimitFunctionOrderBy[]; - }; policies?: { select: PolicySelect; first?: number; @@ -2633,6 +3111,24 @@ export type TableSelect = { filter?: TableTemplateModuleFilter; orderBy?: TableTemplateModuleOrderBy[]; }; + secureTableProvisions?: { + select: SecureTableProvisionSelect; + first?: number; + filter?: SecureTableProvisionFilter; + orderBy?: SecureTableProvisionOrderBy[]; + }; + relationProvisionsBySourceTableId?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; + relationProvisionsByTargetTableId?: { + select: RelationProvisionSelect; + first?: number; + filter?: RelationProvisionFilter; + orderBy?: RelationProvisionOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -2759,28 +3255,12 @@ export type IndexSelect = { select: TableSelect; }; }; -export type LimitFunctionSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - data?: boolean; - security?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; export type PolicySelect = { id?: boolean; databaseId?: boolean; tableId?: boolean; name?: boolean; - roleName?: boolean; + granteeName?: boolean; privilege?: boolean; permissive?: boolean; disabled?: boolean; @@ -2826,8 +3306,9 @@ export type TableGrantSelect = { databaseId?: boolean; tableId?: boolean; privilege?: boolean; - roleName?: boolean; + granteeName?: boolean; fieldIds?: boolean; + isGrant?: boolean; createdAt?: boolean; updatedAt?: boolean; database?: { @@ -2941,9 +3422,10 @@ export type ViewGrantSelect = { id?: boolean; databaseId?: boolean; viewId?: boolean; - roleName?: boolean; + granteeName?: boolean; privilege?: boolean; withGrantOption?: boolean; + isGrant?: boolean; database?: { select: DatabaseSelect; }; @@ -2968,15 +3450,17 @@ export type ViewRuleSelect = { export type TableModuleSelect = { id?: boolean; databaseId?: boolean; - privateSchemaId?: boolean; + schemaId?: boolean; tableId?: boolean; + tableName?: boolean; nodeType?: boolean; + useRls?: boolean; data?: boolean; fields?: boolean; database?: { select: DatabaseSelect; }; - privateSchema?: { + schema?: { select: SchemaSelect; }; table?: { @@ -3009,6 +3493,73 @@ export type TableTemplateModuleSelect = { select: TableSelect; }; }; +export type SecureTableProvisionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + nodeType?: boolean; + useRls?: boolean; + nodeData?: boolean; + grantRoles?: boolean; + grantPrivileges?: boolean; + policyType?: boolean; + policyPrivileges?: boolean; + policyRole?: boolean; + policyPermissive?: boolean; + policyName?: boolean; + policyData?: boolean; + outFields?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type RelationProvisionSelect = { + id?: boolean; + databaseId?: boolean; + relationType?: boolean; + sourceTableId?: boolean; + targetTableId?: boolean; + fieldName?: boolean; + deleteAction?: boolean; + isRequired?: boolean; + junctionTableId?: boolean; + junctionTableName?: boolean; + junctionSchemaId?: boolean; + sourceFieldName?: boolean; + targetFieldName?: boolean; + useCompositeKey?: boolean; + nodeType?: boolean; + nodeData?: boolean; + grantRoles?: boolean; + grantPrivileges?: boolean; + policyType?: boolean; + policyPrivileges?: boolean; + policyRole?: boolean; + policyPermissive?: boolean; + policyName?: boolean; + policyData?: boolean; + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; + database?: { + select: DatabaseSelect; + }; + sourceTable?: { + select: TableSelect; + }; + targetTable?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -3023,6 +3574,21 @@ export type SchemaGrantSelect = { select: SchemaSelect; }; }; +export type DefaultPrivilegeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + objectType?: boolean; + privilege?: boolean; + granteeName?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; export type ApiSchemaSelect = { id?: boolean; databaseId?: boolean; @@ -3107,26 +3673,6 @@ export type SiteThemeSelect = { select: SiteSelect; }; }; -export type ProcedureSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - argnames?: boolean; - argtypes?: boolean; - argdefaults?: boolean; - langName?: boolean; - definition?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; export type TriggerFunctionSelect = { id?: boolean; databaseId?: boolean; @@ -3718,7 +4264,6 @@ export type ProfilesModuleSelect = { profileGrantsTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; - bitlen?: boolean; membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; @@ -4005,6 +4550,7 @@ export type OrgMembershipSelect = { granted?: boolean; actorId?: boolean; entityId?: boolean; + profileId?: boolean; actor?: { select: UserSelect; }; @@ -4079,6 +4625,48 @@ export type OrgGrantSelect = { select: UserSelect; }; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + child?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + parent?: { + select: UserSelect; + }; +}; +export type OrgChartEdgeGrantSelect = { + id?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + grantorId?: boolean; + isGrant?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; + createdAt?: boolean; + child?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; + parent?: { + select: UserSelect; + }; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -4199,10 +4787,6 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; -}; export type RefSelect = { id?: boolean; name?: boolean; @@ -4217,6 +4801,10 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; +export type AppPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; +}; export type RoleTypeSelect = { id?: boolean; name?: boolean; @@ -4229,16 +4817,6 @@ export type OrgPermissionDefaultSelect = { select: UserSelect; }; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type CryptoAddressSelect = { id?: boolean; ownerId?: boolean; @@ -4251,11 +4829,15 @@ export type CryptoAddressSelect = { select: UserSelect; }; }; -export type MembershipTypeSelect = { +export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; - description?: boolean; - prefix?: boolean; + max?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; }; export type ConnectedAccountSelect = { id?: boolean; @@ -4283,14 +4865,11 @@ export type PhoneNumberSelect = { select: UserSelect; }; }; -export type AppMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; }; export type NodeTypeRegistrySelect = { name?: boolean; @@ -4303,6 +4882,15 @@ export type NodeTypeRegistrySelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -4328,18 +4916,6 @@ export type OrgMembershipDefaultSelect = { select: UserSelect; }; }; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AuditLogSelect = { id?: boolean; event?: boolean; @@ -4365,6 +4941,18 @@ export type AppLevelSelect = { select: UserSelect; }; }; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type SqlMigrationSelect = { id?: boolean; name?: boolean; @@ -4395,26 +4983,6 @@ export type AstMigrationSelect = { actionId?: boolean; actorId?: boolean; }; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - actor?: { - select: UserSelect; - }; -}; export type UserSelect = { id?: boolean; username?: boolean; @@ -4518,6 +5086,48 @@ export type UserSelect = { filter?: OrgGrantFilter; orderBy?: OrgGrantOrderBy[]; }; + parentOrgChartEdges?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + orgChartEdgesByEntityId?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + childOrgChartEdges?: { + select: OrgChartEdgeSelect; + first?: number; + filter?: OrgChartEdgeFilter; + orderBy?: OrgChartEdgeOrderBy[]; + }; + parentOrgChartEdgeGrants?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + orgChartEdgeGrantsByEntityId?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + orgChartEdgeGrantsByGrantorId?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; + childOrgChartEdgeGrants?: { + select: OrgChartEdgeGrantSelect; + first?: number; + filter?: OrgChartEdgeGrantFilter; + orderBy?: OrgChartEdgeGrantOrderBy[]; + }; appLimitsByActorId?: { select: AppLimitSelect; first?: number; @@ -4591,23 +5201,44 @@ export type UserSelect = { orderBy?: OrgClaimedInviteOrderBy[]; }; }; -export type HierarchyModuleSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - chartEdgesTableId?: boolean; - chartEdgesTableName?: boolean; - hierarchySprtTableId?: boolean; - hierarchySprtTableName?: boolean; - chartEdgeGrantsTableId?: boolean; - chartEdgeGrantsTableName?: boolean; - entityTableId?: boolean; - usersTableId?: boolean; - prefix?: boolean; - privateSchemaName?: boolean; - sprtTableName?: boolean; - rebuildHierarchyFunction?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; +}; +export type HierarchyModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + chartEdgesTableId?: boolean; + chartEdgesTableName?: boolean; + hierarchySprtTableId?: boolean; + hierarchySprtTableName?: boolean; + chartEdgeGrantsTableId?: boolean; + chartEdgeGrantsTableName?: boolean; + entityTableId?: boolean; + usersTableId?: boolean; + prefix?: boolean; + privateSchemaName?: boolean; + sprtTableName?: boolean; + rebuildHierarchyFunction?: boolean; getSubordinatesFunction?: boolean; getManagersFunction?: boolean; isManagerOfFunction?: boolean; @@ -4638,6 +5269,20 @@ export type HierarchyModuleSelect = { }; }; // ============ Table Filter Types ============ +export interface OrgGetManagersRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetManagersRecordFilter[]; + or?: OrgGetManagersRecordFilter[]; + not?: OrgGetManagersRecordFilter; +} +export interface OrgGetSubordinatesRecordFilter { + userId?: UUIDFilter; + depth?: IntFilter; + and?: OrgGetSubordinatesRecordFilter[]; + or?: OrgGetSubordinatesRecordFilter[]; + not?: OrgGetSubordinatesRecordFilter; +} export interface GetAllRecordFilter { path?: StringFilter; data?: JSONFilter; @@ -4854,25 +5499,12 @@ export interface IndexFilter { or?: IndexFilter[]; not?: IndexFilter; } -export interface LimitFunctionFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - label?: StringFilter; - description?: StringFilter; - data?: JSONFilter; - security?: IntFilter; - and?: LimitFunctionFilter[]; - or?: LimitFunctionFilter[]; - not?: LimitFunctionFilter; -} export interface PolicyFilter { id?: UUIDFilter; databaseId?: UUIDFilter; tableId?: UUIDFilter; name?: StringFilter; - roleName?: StringFilter; + granteeName?: StringFilter; privilege?: StringFilter; permissive?: BooleanFilter; disabled?: BooleanFilter; @@ -4912,8 +5544,9 @@ export interface TableGrantFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; privilege?: StringFilter; - roleName?: StringFilter; + granteeName?: StringFilter; fieldIds?: UUIDFilter; + isGrant?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; and?: TableGrantFilter[]; @@ -4991,9 +5624,10 @@ export interface ViewGrantFilter { id?: UUIDFilter; databaseId?: UUIDFilter; viewId?: UUIDFilter; - roleName?: StringFilter; + granteeName?: StringFilter; privilege?: StringFilter; withGrantOption?: BooleanFilter; + isGrant?: BooleanFilter; and?: ViewGrantFilter[]; or?: ViewGrantFilter[]; not?: ViewGrantFilter; @@ -5012,9 +5646,11 @@ export interface ViewRuleFilter { export interface TableModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; - privateSchemaId?: UUIDFilter; + schemaId?: UUIDFilter; tableId?: UUIDFilter; + tableName?: StringFilter; nodeType?: StringFilter; + useRls?: BooleanFilter; data?: JSONFilter; fields?: UUIDFilter; and?: TableModuleFilter[]; @@ -5035,6 +5671,61 @@ export interface TableTemplateModuleFilter { or?: TableTemplateModuleFilter[]; not?: TableTemplateModuleFilter; } +export interface SecureTableProvisionFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + nodeType?: StringFilter; + useRls?: BooleanFilter; + nodeData?: JSONFilter; + grantRoles?: StringFilter; + grantPrivileges?: JSONFilter; + policyType?: StringFilter; + policyPrivileges?: StringFilter; + policyRole?: StringFilter; + policyPermissive?: BooleanFilter; + policyName?: StringFilter; + policyData?: JSONFilter; + outFields?: UUIDFilter; + and?: SecureTableProvisionFilter[]; + or?: SecureTableProvisionFilter[]; + not?: SecureTableProvisionFilter; +} +export interface RelationProvisionFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + relationType?: StringFilter; + sourceTableId?: UUIDFilter; + targetTableId?: UUIDFilter; + fieldName?: StringFilter; + deleteAction?: StringFilter; + isRequired?: BooleanFilter; + junctionTableId?: UUIDFilter; + junctionTableName?: StringFilter; + junctionSchemaId?: UUIDFilter; + sourceFieldName?: StringFilter; + targetFieldName?: StringFilter; + useCompositeKey?: BooleanFilter; + nodeType?: StringFilter; + nodeData?: JSONFilter; + grantRoles?: StringFilter; + grantPrivileges?: JSONFilter; + policyType?: StringFilter; + policyPrivileges?: StringFilter; + policyRole?: StringFilter; + policyPermissive?: BooleanFilter; + policyName?: StringFilter; + policyData?: JSONFilter; + outFieldId?: UUIDFilter; + outJunctionTableId?: UUIDFilter; + outSourceFieldId?: UUIDFilter; + outTargetFieldId?: UUIDFilter; + and?: RelationProvisionFilter[]; + or?: RelationProvisionFilter[]; + not?: RelationProvisionFilter; +} export interface SchemaGrantFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5046,6 +5737,18 @@ export interface SchemaGrantFilter { or?: SchemaGrantFilter[]; not?: SchemaGrantFilter; } +export interface DefaultPrivilegeFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + objectType?: StringFilter; + privilege?: StringFilter; + granteeName?: StringFilter; + isGrant?: BooleanFilter; + and?: DefaultPrivilegeFilter[]; + or?: DefaultPrivilegeFilter[]; + not?: DefaultPrivilegeFilter; +} export interface ApiSchemaFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5106,26 +5809,6 @@ export interface SiteThemeFilter { or?: SiteThemeFilter[]; not?: SiteThemeFilter; } -export interface ProcedureFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - name?: StringFilter; - argnames?: StringFilter; - argtypes?: StringFilter; - argdefaults?: StringFilter; - langName?: StringFilter; - definition?: StringFilter; - smartTags?: JSONFilter; - category?: StringFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: ProcedureFilter[]; - or?: ProcedureFilter[]; - not?: ProcedureFilter; -} export interface TriggerFunctionFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -5447,7 +6130,6 @@ export interface ProfilesModuleFilter { profileGrantsTableName?: StringFilter; profileDefinitionGrantsTableId?: UUIDFilter; profileDefinitionGrantsTableName?: StringFilter; - bitlen?: IntFilter; membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; @@ -5623,6 +6305,7 @@ export interface OrgMembershipFilter { granted?: BitStringFilter; actorId?: UUIDFilter; entityId?: UUIDFilter; + profileId?: UUIDFilter; and?: OrgMembershipFilter[]; or?: OrgMembershipFilter[]; not?: OrgMembershipFilter; @@ -5673,6 +6356,33 @@ export interface OrgGrantFilter { or?: OrgGrantFilter[]; not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + and?: OrgChartEdgeFilter[]; + or?: OrgChartEdgeFilter[]; + not?: OrgChartEdgeFilter; +} +export interface OrgChartEdgeGrantFilter { + id?: UUIDFilter; + entityId?: UUIDFilter; + childId?: UUIDFilter; + parentId?: UUIDFilter; + grantorId?: UUIDFilter; + isGrant?: BooleanFilter; + positionTitle?: StringFilter; + positionLevel?: IntFilter; + createdAt?: DatetimeFilter; + and?: OrgChartEdgeGrantFilter[]; + or?: OrgChartEdgeGrantFilter[]; + not?: OrgChartEdgeGrantFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -5775,13 +6485,6 @@ export interface OrgClaimedInviteFilter { or?: OrgClaimedInviteFilter[]; not?: OrgClaimedInviteFilter; } -export interface AppPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - and?: AppPermissionDefaultFilter[]; - or?: AppPermissionDefaultFilter[]; - not?: AppPermissionDefaultFilter; -} export interface RefFilter { id?: UUIDFilter; name?: StringFilter; @@ -5802,6 +6505,13 @@ export interface StoreFilter { or?: StoreFilter[]; not?: StoreFilter; } +export interface AppPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + and?: AppPermissionDefaultFilter[]; + or?: AppPermissionDefaultFilter[]; + not?: AppPermissionDefaultFilter; +} export interface RoleTypeFilter { id?: IntFilter; name?: StringFilter; @@ -5817,6 +6527,18 @@ export interface OrgPermissionDefaultFilter { or?: OrgPermissionDefaultFilter[]; not?: OrgPermissionDefaultFilter; } +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} export interface AppLimitDefaultFilter { id?: UUIDFilter; name?: StringFilter; @@ -5833,27 +6555,6 @@ export interface OrgLimitDefaultFilter { or?: OrgLimitDefaultFilter[]; not?: OrgLimitDefaultFilter; } -export interface CryptoAddressFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - address?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} -export interface MembershipTypeFilter { - id?: IntFilter; - name?: StringFilter; - description?: StringFilter; - prefix?: StringFilter; - and?: MembershipTypeFilter[]; - or?: MembershipTypeFilter[]; - not?: MembershipTypeFilter; -} export interface ConnectedAccountFilter { id?: UUIDFilter; ownerId?: UUIDFilter; @@ -5880,17 +6581,14 @@ export interface PhoneNumberFilter { or?: PhoneNumberFilter[]; not?: PhoneNumberFilter; } -export interface AppMembershipDefaultFilter { - id?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - createdBy?: UUIDFilter; - updatedBy?: UUIDFilter; - isApproved?: BooleanFilter; - isVerified?: BooleanFilter; - and?: AppMembershipDefaultFilter[]; - or?: AppMembershipDefaultFilter[]; - not?: AppMembershipDefaultFilter; +export interface MembershipTypeFilter { + id?: IntFilter; + name?: StringFilter; + description?: StringFilter; + prefix?: StringFilter; + and?: MembershipTypeFilter[]; + or?: MembershipTypeFilter[]; + not?: MembershipTypeFilter; } export interface NodeTypeRegistryFilter { name?: StringFilter; @@ -5906,6 +6604,18 @@ export interface NodeTypeRegistryFilter { or?: NodeTypeRegistryFilter[]; not?: NodeTypeRegistryFilter; } +export interface AppMembershipDefaultFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + isVerified?: BooleanFilter; + and?: AppMembershipDefaultFilter[]; + or?: AppMembershipDefaultFilter[]; + not?: AppMembershipDefaultFilter; +} export interface CommitFilter { id?: UUIDFilter; message?: StringFilter; @@ -5934,18 +6644,6 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface AuditLogFilter { id?: UUIDFilter; event?: StringFilter; @@ -5971,6 +6669,18 @@ export interface AppLevelFilter { or?: AppLevelFilter[]; not?: AppLevelFilter; } +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} export interface SqlMigrationFilter { id?: IntFilter; name?: StringFilter; @@ -6007,6 +6717,20 @@ export interface AstMigrationFilter { or?: AstMigrationFilter[]; not?: AstMigrationFilter; } +export interface UserFilter { + id?: UUIDFilter; + username?: StringFilter; + displayName?: StringFilter; + profilePicture?: StringFilter; + searchTsv?: FullTextFilter; + type?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + searchTsvRank?: FloatFilter; + and?: UserFilter[]; + or?: UserFilter[]; + not?: UserFilter; +} export interface AppMembershipFilter { id?: UUIDFilter; createdAt?: DatetimeFilter; @@ -6023,24 +6747,11 @@ export interface AppMembershipFilter { permissions?: BitStringFilter; granted?: BitStringFilter; actorId?: UUIDFilter; + profileId?: UUIDFilter; and?: AppMembershipFilter[]; or?: AppMembershipFilter[]; not?: AppMembershipFilter; } -export interface UserFilter { - id?: UUIDFilter; - username?: StringFilter; - displayName?: StringFilter; - profilePicture?: StringFilter; - searchTsv?: FullTextFilter; - type?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - searchTsvRank?: FloatFilter; - and?: UserFilter[]; - or?: UserFilter[]; - not?: UserFilter; -} export interface HierarchyModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6067,6 +6778,14 @@ export interface HierarchyModuleFilter { not?: HierarchyModuleFilter; } // ============ Table Condition Types ============ +export interface OrgGetManagersRecordCondition { + userId?: string | null; + depth?: number | null; +} +export interface OrgGetSubordinatesRecordCondition { + userId?: string | null; + depth?: number | null; +} export interface GetAllRecordCondition { path?: string | null; data?: unknown | null; @@ -6244,22 +6963,12 @@ export interface IndexCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface LimitFunctionCondition { - id?: string | null; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: unknown | null; - security?: number | null; -} export interface PolicyCondition { id?: string | null; databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -6293,8 +7002,9 @@ export interface TableGrantCondition { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -6357,9 +7067,10 @@ export interface ViewGrantCondition { id?: string | null; databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } export interface ViewRuleCondition { id?: string | null; @@ -6372,9 +7083,11 @@ export interface ViewRuleCondition { export interface TableModuleCondition { id?: string | null; databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: unknown | null; fields?: string | null; } @@ -6389,14 +7102,72 @@ export interface TableTemplateModuleCondition { nodeType?: string | null; data?: unknown | null; } -export interface SchemaGrantCondition { +export interface SecureTableProvisionCondition { id?: string | null; databaseId?: string | null; schemaId?: string | null; - granteeName?: string | null; + tableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + useRls?: boolean | null; + nodeData?: unknown | null; + grantRoles?: string | null; + grantPrivileges?: unknown | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: unknown | null; + outFields?: string | null; +} +export interface RelationProvisionCondition { + id?: string | null; + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + nodeType?: string | null; + nodeData?: unknown | null; + grantRoles?: string | null; + grantPrivileges?: unknown | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: unknown | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface SchemaGrantCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; createdAt?: string | null; updatedAt?: string | null; } +export interface DefaultPrivilegeCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} export interface ApiSchemaCondition { id?: string | null; databaseId?: string | null; @@ -6439,23 +7210,6 @@ export interface SiteThemeCondition { siteId?: string | null; theme?: unknown | null; } -export interface ProcedureCondition { - id?: string | null; - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: unknown | null; - category?: unknown | null; - module?: string | null; - scope?: number | null; - tags?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface TriggerFunctionCondition { id?: string | null; databaseId?: string | null; @@ -6720,7 +7474,6 @@ export interface ProfilesModuleCondition { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -6863,6 +7616,7 @@ export interface OrgMembershipCondition { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface OrgMemberCondition { id?: string | null; @@ -6898,6 +7652,27 @@ export interface OrgGrantCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface OrgChartEdgeCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface OrgChartEdgeGrantCondition { + id?: string | null; + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; + createdAt?: string | null; +} export interface AppLimitCondition { id?: string | null; name?: string | null; @@ -6976,10 +7751,6 @@ export interface OrgClaimedInviteCondition { updatedAt?: string | null; entityId?: string | null; } -export interface AppPermissionDefaultCondition { - id?: string | null; - permissions?: string | null; -} export interface RefCondition { id?: string | null; name?: string | null; @@ -6994,6 +7765,10 @@ export interface StoreCondition { hash?: string | null; createdAt?: string | null; } +export interface AppPermissionDefaultCondition { + id?: string | null; + permissions?: string | null; +} export interface RoleTypeCondition { id?: number | null; name?: string | null; @@ -7003,16 +7778,6 @@ export interface OrgPermissionDefaultCondition { permissions?: string | null; entityId?: string | null; } -export interface AppLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} -export interface OrgLimitDefaultCondition { - id?: string | null; - name?: string | null; - max?: number | null; -} export interface CryptoAddressCondition { id?: string | null; ownerId?: string | null; @@ -7022,11 +7787,15 @@ export interface CryptoAddressCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface MembershipTypeCondition { - id?: number | null; +export interface AppLimitDefaultCondition { + id?: string | null; name?: string | null; - description?: string | null; - prefix?: string | null; + max?: number | null; +} +export interface OrgLimitDefaultCondition { + id?: string | null; + name?: string | null; + max?: number | null; } export interface ConnectedAccountCondition { id?: string | null; @@ -7048,14 +7817,11 @@ export interface PhoneNumberCondition { createdAt?: string | null; updatedAt?: string | null; } -export interface AppMembershipDefaultCondition { - id?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypeCondition { + id?: number | null; + name?: string | null; + description?: string | null; + prefix?: string | null; } export interface NodeTypeRegistryCondition { name?: string | null; @@ -7068,6 +7834,15 @@ export interface NodeTypeRegistryCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface AppMembershipDefaultCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} export interface CommitCondition { id?: string | null; message?: string | null; @@ -7090,15 +7865,6 @@ export interface OrgMembershipDefaultCondition { deleteMemberCascadeGroups?: boolean | null; createGroupsCascadeMembers?: boolean | null; } -export interface EmailCondition { - id?: string | null; - ownerId?: string | null; - email?: unknown | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} export interface AuditLogCondition { id?: string | null; event?: string | null; @@ -7118,6 +7884,15 @@ export interface AppLevelCondition { createdAt?: string | null; updatedAt?: string | null; } +export interface EmailCondition { + id?: string | null; + ownerId?: string | null; + email?: unknown | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} export interface SqlMigrationCondition { id?: number | null; name?: string | null; @@ -7148,6 +7923,17 @@ export interface AstMigrationCondition { actionId?: string | null; actorId?: string | null; } +export interface UserCondition { + id?: string | null; + username?: string | null; + displayName?: string | null; + profilePicture?: unknown | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + searchTsvRank?: number | null; +} export interface AppMembershipCondition { id?: string | null; createdAt?: string | null; @@ -7164,17 +7950,7 @@ export interface AppMembershipCondition { permissions?: string | null; granted?: string | null; actorId?: string | null; -} -export interface UserCondition { - id?: string | null; - username?: string | null; - displayName?: string | null; - profilePicture?: unknown | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - searchTsvRank?: number | null; + profileId?: string | null; } export interface HierarchyModuleCondition { id?: string | null; @@ -7199,6 +7975,22 @@ export interface HierarchyModuleCondition { createdAt?: string | null; } // ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; export type GetAllRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7553,26 +8345,6 @@ export type IndexOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type LimitFunctionOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SECURITY_ASC' - | 'SECURITY_DESC'; export type PolicyOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7585,8 +8357,8 @@ export type PolicyOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'PERMISSIVE_ASC' @@ -7653,10 +8425,12 @@ export type TableGrantOrderBy = | 'TABLE_ID_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'FIELD_IDS_ASC' | 'FIELD_IDS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -7781,12 +8555,14 @@ export type ViewGrantOrderBy = | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC'; + | 'WITH_GRANT_OPTION_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; export type ViewRuleOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7811,12 +8587,16 @@ export type TableModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' | 'NODE_TYPE_ASC' | 'NODE_TYPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'FIELDS_ASC' @@ -7843,6 +8623,104 @@ export type TableTemplateModuleOrderBy = | 'NODE_TYPE_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type SecureTableProvisionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'NODE_DATA_ASC' + | 'NODE_DATA_DESC' + | 'GRANT_ROLES_ASC' + | 'GRANT_ROLES_DESC' + | 'GRANT_PRIVILEGES_ASC' + | 'GRANT_PRIVILEGES_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'POLICY_PRIVILEGES_ASC' + | 'POLICY_PRIVILEGES_DESC' + | 'POLICY_ROLE_ASC' + | 'POLICY_ROLE_DESC' + | 'POLICY_PERMISSIVE_ASC' + | 'POLICY_PERMISSIVE_DESC' + | 'POLICY_NAME_ASC' + | 'POLICY_NAME_DESC' + | 'POLICY_DATA_ASC' + | 'POLICY_DATA_DESC' + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; +export type RelationProvisionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'RELATION_TYPE_ASC' + | 'RELATION_TYPE_DESC' + | 'SOURCE_TABLE_ID_ASC' + | 'SOURCE_TABLE_ID_DESC' + | 'TARGET_TABLE_ID_ASC' + | 'TARGET_TABLE_ID_DESC' + | 'FIELD_NAME_ASC' + | 'FIELD_NAME_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'JUNCTION_TABLE_ID_ASC' + | 'JUNCTION_TABLE_ID_DESC' + | 'JUNCTION_TABLE_NAME_ASC' + | 'JUNCTION_TABLE_NAME_DESC' + | 'JUNCTION_SCHEMA_ID_ASC' + | 'JUNCTION_SCHEMA_ID_DESC' + | 'SOURCE_FIELD_NAME_ASC' + | 'SOURCE_FIELD_NAME_DESC' + | 'TARGET_FIELD_NAME_ASC' + | 'TARGET_FIELD_NAME_DESC' + | 'USE_COMPOSITE_KEY_ASC' + | 'USE_COMPOSITE_KEY_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'NODE_DATA_ASC' + | 'NODE_DATA_DESC' + | 'GRANT_ROLES_ASC' + | 'GRANT_ROLES_DESC' + | 'GRANT_PRIVILEGES_ASC' + | 'GRANT_PRIVILEGES_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'POLICY_PRIVILEGES_ASC' + | 'POLICY_PRIVILEGES_DESC' + | 'POLICY_ROLE_ASC' + | 'POLICY_ROLE_DESC' + | 'POLICY_PERMISSIVE_ASC' + | 'POLICY_PERMISSIVE_DESC' + | 'POLICY_NAME_ASC' + | 'POLICY_NAME_DESC' + | 'POLICY_DATA_ASC' + | 'POLICY_DATA_DESC' + | 'OUT_FIELD_ID_ASC' + | 'OUT_FIELD_ID_DESC' + | 'OUT_JUNCTION_TABLE_ID_ASC' + | 'OUT_JUNCTION_TABLE_ID_DESC' + | 'OUT_SOURCE_FIELD_ID_ASC' + | 'OUT_SOURCE_FIELD_ID_DESC' + | 'OUT_TARGET_FIELD_ID_ASC' + | 'OUT_TARGET_FIELD_ID_DESC'; export type SchemaGrantOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7859,6 +8737,24 @@ export type SchemaGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type DefaultPrivilegeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; export type ApiSchemaOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7943,40 +8839,6 @@ export type SiteThemeOrderBy = | 'SITE_ID_DESC' | 'THEME_ASC' | 'THEME_DESC'; -export type ProcedureOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ARGNAMES_ASC' - | 'ARGNAMES_DESC' - | 'ARGTYPES_ASC' - | 'ARGTYPES_DESC' - | 'ARGDEFAULTS_ASC' - | 'ARGDEFAULTS_DESC' - | 'LANG_NAME_ASC' - | 'LANG_NAME_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type TriggerFunctionOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -8507,8 +9369,6 @@ export type ProfilesModuleOrderBy = | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8792,7 +9652,9 @@ export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ENTITY_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgMemberOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -8861,6 +9723,48 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; +export type OrgChartEdgeGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppLimitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9017,14 +9921,6 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppPermissionDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; export type RefOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9053,6 +9949,14 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type AppPermissionDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC'; export type RoleTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9071,26 +9975,6 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; export type CryptoAddressOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9109,7 +9993,7 @@ export type CryptoAddressOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = +export type AppLimitDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' @@ -9117,10 +10001,18 @@ export type MembershipTypeOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type ConnectedAccountOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9161,24 +10053,18 @@ export type PhoneNumberOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type NodeTypeRegistryOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9201,6 +10087,24 @@ export type NodeTypeRegistryOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppMembershipDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; export type CommitOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9245,24 +10149,6 @@ export type OrgMembershipDefaultOrderBy = | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9301,6 +10187,24 @@ export type AppLevelOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type EmailOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_PRIMARY_ASC' + | 'IS_PRIMARY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type SqlMigrationOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9361,6 +10265,28 @@ export type AstMigrationOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type UserOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'USERNAME_ASC' + | 'USERNAME_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC' + | 'SEARCH_TSV_ASC' + | 'SEARCH_TSV_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC'; export type AppMembershipOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9394,29 +10320,9 @@ export type AppMembershipOrderBy = | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type UserOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type HierarchyModuleOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -9462,6 +10368,46 @@ export type HierarchyModuleOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateOrgGetManagersRecordInput { + clientMutationId?: string; + orgGetManagersRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetManagersRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; + orgGetManagersRecordPatch: OrgGetManagersRecordPatch; +} +export interface DeleteOrgGetManagersRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + orgGetSubordinatesRecord: { + userId: string; + depth?: number; + }; +} +export interface OrgGetSubordinatesRecordPatch { + userId?: string | null; + depth?: number | null; +} +export interface UpdateOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; + orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; +} +export interface DeleteOrgGetSubordinatesRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateGetAllRecordInput { clientMutationId?: string; getAllRecord: { @@ -9909,43 +10855,13 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateLimitFunctionInput { - clientMutationId?: string; - limitFunction: { - databaseId?: string; - tableId: string; - name?: string; - label?: string; - description?: string; - data?: Record; - security?: number; - }; -} -export interface LimitFunctionPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - data?: Record | null; - security?: number | null; -} -export interface UpdateLimitFunctionInput { - clientMutationId?: string; - id: string; - limitFunctionPatch: LimitFunctionPatch; -} -export interface DeleteLimitFunctionInput { - clientMutationId?: string; - id: string; -} export interface CreatePolicyInput { clientMutationId?: string; policy: { databaseId?: string; tableId: string; name?: string; - roleName?: string; + granteeName?: string; privilege?: string; permissive?: boolean; disabled?: boolean; @@ -9962,7 +10878,7 @@ export interface PolicyPatch { databaseId?: string | null; tableId?: string | null; name?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; permissive?: boolean | null; disabled?: boolean | null; @@ -10025,16 +10941,18 @@ export interface CreateTableGrantInput { databaseId?: string; tableId: string; privilege: string; - roleName: string; + granteeName: string; fieldIds?: string[]; + isGrant?: boolean; }; } export interface TableGrantPatch { databaseId?: string | null; tableId?: string | null; privilege?: string | null; - roleName?: string | null; + granteeName?: string | null; fieldIds?: string | null; + isGrant?: boolean | null; } export interface UpdateTableGrantInput { clientMutationId?: string; @@ -10192,17 +11110,19 @@ export interface CreateViewGrantInput { viewGrant: { databaseId?: string; viewId: string; - roleName: string; + granteeName: string; privilege: string; withGrantOption?: boolean; + isGrant?: boolean; }; } export interface ViewGrantPatch { databaseId?: string | null; viewId?: string | null; - roleName?: string | null; + granteeName?: string | null; privilege?: string | null; withGrantOption?: boolean | null; + isGrant?: boolean | null; } export interface UpdateViewGrantInput { clientMutationId?: string; @@ -10243,18 +11163,22 @@ export interface CreateTableModuleInput { clientMutationId?: string; tableModule: { databaseId: string; - privateSchemaId?: string; - tableId: string; + schemaId?: string; + tableId?: string; + tableName?: string; nodeType: string; + useRls?: boolean; data?: Record; fields?: string[]; }; } export interface TableModulePatch { databaseId?: string | null; - privateSchemaId?: string | null; + schemaId?: string | null; tableId?: string | null; + tableName?: string | null; nodeType?: string | null; + useRls?: boolean | null; data?: Record | null; fields?: string | null; } @@ -10299,6 +11223,124 @@ export interface DeleteTableTemplateModuleInput { clientMutationId?: string; id: string; } +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodeType?: string; + useRls?: boolean; + nodeData?: Record; + grantRoles?: string[]; + grantPrivileges?: Record; + policyType?: string; + policyPrivileges?: string[]; + policyRole?: string; + policyPermissive?: boolean; + policyName?: string; + policyData?: Record; + outFields?: string[]; + }; +} +export interface SecureTableProvisionPatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + useRls?: boolean | null; + nodeData?: Record | null; + grantRoles?: string | null; + grantPrivileges?: Record | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: Record | null; + outFields?: string | null; +} +export interface UpdateSecureTableProvisionInput { + clientMutationId?: string; + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; +} +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + id: string; +} +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + nodeType?: string; + nodeData?: Record; + grantRoles?: string[]; + grantPrivileges?: Record; + policyType?: string; + policyPrivileges?: string[]; + policyRole?: string; + policyPermissive?: boolean; + policyName?: string; + policyData?: Record; + outFieldId?: string; + outJunctionTableId?: string; + outSourceFieldId?: string; + outTargetFieldId?: string; + }; +} +export interface RelationProvisionPatch { + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + nodeType?: string | null; + nodeData?: Record | null; + grantRoles?: string | null; + grantPrivileges?: Record | null; + policyType?: string | null; + policyPrivileges?: string | null; + policyRole?: string | null; + policyPermissive?: boolean | null; + policyName?: string | null; + policyData?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface UpdateRelationProvisionInput { + clientMutationId?: string; + id: string; + relationProvisionPatch: RelationProvisionPatch; +} +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -10321,6 +11363,34 @@ export interface DeleteSchemaGrantInput { clientMutationId?: string; id: string; } +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + defaultPrivilege: { + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; + }; +} +export interface DefaultPrivilegePatch { + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface UpdateDefaultPrivilegeInput { + clientMutationId?: string; + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; +} +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -10465,46 +11535,6 @@ export interface DeleteSiteThemeInput { clientMutationId?: string; id: string; } -export interface CreateProcedureInput { - clientMutationId?: string; - procedure: { - databaseId?: string; - name: string; - argnames?: string[]; - argtypes?: string[]; - argdefaults?: string[]; - langName?: string; - definition?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ProcedurePatch { - databaseId?: string | null; - name?: string | null; - argnames?: string | null; - argtypes?: string | null; - argdefaults?: string | null; - langName?: string | null; - definition?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string | null; -} -export interface UpdateProcedureInput { - clientMutationId?: string; - id: string; - procedurePatch: ProcedurePatch; -} -export interface DeleteProcedureInput { - clientMutationId?: string; - id: string; -} export interface CreateTriggerFunctionInput { clientMutationId?: string; triggerFunction: { @@ -11207,7 +12237,6 @@ export interface CreateProfilesModuleInput { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; - bitlen?: number; membershipType: number; entityTableId?: string; actorTableId?: string; @@ -11228,7 +12257,6 @@ export interface ProfilesModulePatch { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; - bitlen?: number | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -11582,6 +12610,7 @@ export interface CreateOrgMembershipInput { granted?: string; actorId: string; entityId: string; + profileId?: string; }; } export interface OrgMembershipPatch { @@ -11597,6 +12626,7 @@ export interface OrgMembershipPatch { granted?: string | null; actorId?: string | null; entityId?: string | null; + profileId?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -11703,6 +12733,62 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; +} +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + orgChartEdgeGrant: { + entityId: string; + childId: string; + parentId?: string; + grantorId: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; + }; +} +export interface OrgChartEdgeGrantPatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; +} +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +export interface DeleteOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -11915,24 +13001,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateRefInput { clientMutationId?: string; ref: { @@ -11979,6 +13047,24 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultInput { + clientMutationId?: string; + appPermissionDefault: { + permissions?: string; + }; +} +export interface AppPermissionDefaultPatch { + permissions?: string | null; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +export interface DeleteAppPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateRoleTypeInput { clientMutationId?: string; roleType: { @@ -12017,6 +13103,30 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -12057,52 +13167,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateConnectedAccountInput { clientMutationId?: string; connectedAccount: { @@ -12155,29 +13219,27 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; + membershipType: { + name: string; + description: string; + prefix: string; }; } -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; } -export interface UpdateAppMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateNodeTypeRegistryInput { clientMutationId?: string; @@ -12209,6 +13271,30 @@ export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; name: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -12269,30 +13355,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateAuditLogInput { clientMutationId?: string; auditLog: { @@ -12345,6 +13407,30 @@ export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} export interface CreateSqlMigrationInput { clientMutationId?: string; sqlMigration: { @@ -12421,6 +13507,33 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + searchTsvRank?: number | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -12436,6 +13549,7 @@ export interface CreateAppMembershipInput { permissions?: string; granted?: string; actorId: string; + profileId?: string; }; } export interface AppMembershipPatch { @@ -12451,6 +13565,7 @@ export interface AppMembershipPatch { permissions?: string | null; granted?: string | null; actorId?: string | null; + profileId?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -12461,33 +13576,6 @@ export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - searchTsvRank?: number | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} export interface CreateHierarchyModuleInput { clientMutationId?: string; hierarchyModule: { @@ -12550,10 +13638,8 @@ export const connectionFieldsMap = { foreignKeyConstraints: 'ForeignKeyConstraint', fullTextSearches: 'FullTextSearch', indices: 'Index', - limitFunctions: 'LimitFunction', policies: 'Policy', primaryKeyConstraints: 'PrimaryKeyConstraint', - procedures: 'Procedure', schemaGrants: 'SchemaGrant', tableGrants: 'TableGrant', triggerFunctions: 'TriggerFunction', @@ -12562,6 +13648,7 @@ export const connectionFieldsMap = { views: 'View', viewGrants: 'ViewGrant', viewRules: 'ViewRule', + defaultPrivileges: 'DefaultPrivilege', apis: 'Api', apiModules: 'ApiModule', apiSchemas: 'ApiSchema', @@ -12595,12 +13682,15 @@ export const connectionFieldsMap = { usersModules: 'UsersModule', uuidModules: 'UuidModule', tableTemplateModules: 'TableTemplateModule', + secureTableProvisions: 'SecureTableProvision', + relationProvisions: 'RelationProvision', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { tables: 'Table', schemaGrants: 'SchemaGrant', views: 'View', + defaultPrivileges: 'DefaultPrivilege', apiSchemas: 'ApiSchema', tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', @@ -12611,7 +13701,6 @@ export const connectionFieldsMap = { foreignKeyConstraints: 'ForeignKeyConstraint', fullTextSearches: 'FullTextSearch', indices: 'Index', - limitFunctions: 'LimitFunction', policies: 'Policy', primaryKeyConstraints: 'PrimaryKeyConstraint', tableGrants: 'TableGrant', @@ -12622,6 +13711,9 @@ export const connectionFieldsMap = { tableModules: 'TableModule', tableTemplateModulesByOwnerTableId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', + secureTableProvisions: 'SecureTableProvision', + relationProvisionsBySourceTableId: 'RelationProvision', + relationProvisionsByTargetTableId: 'RelationProvision', }, View: { viewTables: 'ViewTable', @@ -12654,6 +13746,13 @@ export const connectionFieldsMap = { orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', orgGrantsByEntityId: 'OrgGrant', orgGrantsByGrantorId: 'OrgGrant', + parentOrgChartEdges: 'OrgChartEdge', + orgChartEdgesByEntityId: 'OrgChartEdge', + childOrgChartEdges: 'OrgChartEdge', + parentOrgChartEdgeGrants: 'OrgChartEdgeGrant', + orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', + orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', + childOrgChartEdgeGrants: 'OrgChartEdgeGrant', appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', @@ -13743,51 +14842,6 @@ export type DeleteIndexPayloadSelect = { select: IndexEdgeSelect; }; }; -export interface CreateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was created by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type CreateLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; -export interface UpdateLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was updated by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type UpdateLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; -export interface DeleteLimitFunctionPayload { - clientMutationId?: string | null; - /** The `LimitFunction` that was deleted by this mutation. */ - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export type DeleteLimitFunctionPayloadSelect = { - clientMutationId?: boolean; - limitFunction?: { - select: LimitFunctionSelect; - }; - limitFunctionEdge?: { - select: LimitFunctionEdgeSelect; - }; -}; export interface CreatePolicyPayload { clientMutationId?: string | null; /** The `Policy` that was created by this mutation. */ @@ -14283,6 +15337,96 @@ export type DeleteTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; +export interface CreateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type CreateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface UpdateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type UpdateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface DeleteSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type DeleteSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type CreateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type UpdateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type DeleteRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -14328,6 +15472,51 @@ export type DeleteSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type CreateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type UpdateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type DeleteDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -14598,51 +15787,6 @@ export type DeleteSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; -export interface CreateProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was created by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type CreateProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; -export interface UpdateProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was updated by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type UpdateProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; -export interface DeleteProcedurePayload { - clientMutationId?: string | null; - /** The `Procedure` that was deleted by this mutation. */ - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export type DeleteProcedurePayloadSelect = { - clientMutationId?: boolean; - procedure?: { - select: ProcedureSelect; - }; - procedureEdge?: { - select: ProcedureEdgeSelect; - }; -}; export interface CreateTriggerFunctionPayload { clientMutationId?: string | null; /** The `TriggerFunction` that was created by this mutation. */ @@ -16218,61 +17362,151 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateAppLimitPayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateAppLimitPayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteAppLimitPayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteAppLimitPayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface CreateOrgLimitPayload { +export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export type CreateOrgLimitPayloadSelect = { +export type CreateOrgChartEdgeGrantPayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type UpdateOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} +export type DeleteOrgChartEdgeGrantPayloadSelect = { + clientMutationId?: boolean; + orgChartEdgeGrant?: { + select: OrgChartEdgeGrantSelect; + }; + orgChartEdgeGrantEdge?: { + select: OrgChartEdgeGrantEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type CreateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; }; orgLimitEdge?: { select: OrgLimitEdgeSelect; @@ -16578,51 +17812,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -16713,6 +17902,51 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; +export interface CreateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type CreateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type UpdateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type DeleteAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -16803,6 +18037,51 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type DeleteCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ @@ -16893,96 +18172,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; export interface CreateConnectedAccountPayload { clientMutationId?: string | null; /** The `ConnectedAccount` that was created by this mutation. */ @@ -17073,49 +18262,49 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateNodeTypeRegistryPayload { @@ -17163,6 +18352,51 @@ export type DeleteNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -17253,51 +18487,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; export interface CreateAuditLogPayload { clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ @@ -17384,8 +18573,53 @@ export type DeleteAppLevelPayloadSelect = { appLevel?: { select: AppLevelSelect; }; - appLevelEdge?: { - select: AppLevelEdgeSelect; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; }; }; export interface CreateSqlMigrationPayload { @@ -17410,51 +18644,6 @@ export type CreateAstMigrationPayloadSelect = { select: AstMigrationSelect; }; }; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -17500,6 +18689,51 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type CreateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; export interface CreateHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was created by this mutation. */ @@ -17696,18 +18930,30 @@ export type SignUpRecordSelect = { isVerified?: boolean; totpEnabled?: boolean; }; +/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { id: string; + /** References the authenticated user; NULL for anonymous sessions */ userId?: string | null; + /** Whether this is an anonymous session (no authenticated user) */ isAnonymous: boolean; + /** When this session expires and can no longer be used for authentication */ expiresAt: string; + /** When this session was explicitly revoked (soft delete); NULL means active */ revokedAt?: string | null; + /** The origin (protocol + host) from which the session was created, used for fingerprint validation */ origin?: ConstructiveInternalTypeOrigin | null; + /** IP address from which the session was created, used for strict fingerprint validation */ ip?: string | null; + /** User-Agent string from the client, used for strict fingerprint validation */ uagent?: string | null; + /** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */ fingerprintMode: string; + /** Timestamp of last password re-verification for step-up authentication */ lastPasswordVerified?: string | null; + /** Timestamp of last MFA verification for step-up authentication */ lastMfaVerified?: string | null; + /** Secret used to generate and validate CSRF tokens for cookie-based sessions */ csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -17824,18 +19070,6 @@ export type IndexEdgeSelect = { select: IndexSelect; }; }; -/** A `LimitFunction` edge in the connection. */ -export interface LimitFunctionEdge { - cursor?: string | null; - /** The `LimitFunction` at the end of the edge. */ - node?: LimitFunction | null; -} -export type LimitFunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: LimitFunctionSelect; - }; -}; /** A `Policy` edge in the connection. */ export interface PolicyEdge { cursor?: string | null; @@ -17968,6 +19202,30 @@ export type TableTemplateModuleEdgeSelect = { select: TableTemplateModuleSelect; }; }; +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} +export type SecureTableProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: SecureTableProvisionSelect; + }; +}; +/** A `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} +export type RelationProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: RelationProvisionSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -17980,6 +19238,18 @@ export type SchemaGrantEdgeSelect = { select: SchemaGrantSelect; }; }; +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +export type DefaultPrivilegeEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultPrivilegeSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -18052,18 +19322,6 @@ export type SiteThemeEdgeSelect = { select: SiteThemeSelect; }; }; -/** A `Procedure` edge in the connection. */ -export interface ProcedureEdge { - cursor?: string | null; - /** The `Procedure` at the end of the edge. */ - node?: Procedure | null; -} -export type ProcedureEdgeSelect = { - cursor?: boolean; - node?: { - select: ProcedureSelect; - }; -}; /** A `TriggerFunction` edge in the connection. */ export interface TriggerFunctionEdge { cursor?: string | null; @@ -18484,6 +19742,30 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} +export type OrgChartEdgeEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeSelect; + }; +}; +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} +export type OrgChartEdgeGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgChartEdgeGrantSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -18580,18 +19862,6 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -18616,6 +19886,18 @@ export type StoreEdgeSelect = { select: StoreSelect; }; }; +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { + cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -18640,6 +19922,18 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -18664,30 +19958,6 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; /** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { cursor?: string | null; @@ -18712,16 +19982,16 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `NodeTypeRegistry` edge in the connection. */ @@ -18736,6 +20006,18 @@ export type NodeTypeRegistryEdgeSelect = { select: NodeTypeRegistrySelect; }; }; +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +export type AppMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipDefaultSelect; + }; +}; /** A `Commit` edge in the connection. */ export interface CommitEdge { cursor?: string | null; @@ -18760,18 +20042,6 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { cursor?: string | null; @@ -18796,16 +20066,16 @@ export type AppLevelEdgeSelect = { select: AppLevelSelect; }; }; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } -export type AppMembershipEdgeSelect = { +export type EmailEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: EmailSelect; }; }; /** A `User` edge in the connection. */ @@ -18820,6 +20090,18 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { + cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; /** A `HierarchyModule` edge in the connection. */ export interface HierarchyModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/public/orm/models/defaultPrivilege.ts b/sdk/constructive-sdk/src/public/orm/models/defaultPrivilege.ts new file mode 100644 index 000000000..73079ad7f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/defaultPrivilege.ts @@ -0,0 +1,236 @@ +/** + * DefaultPrivilege model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DefaultPrivilege, + DefaultPrivilegeWithRelations, + DefaultPrivilegeSelect, + DefaultPrivilegeFilter, + DefaultPrivilegeOrderBy, + CreateDefaultPrivilegeInput, + UpdateDefaultPrivilegeInput, + DefaultPrivilegePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DefaultPrivilegeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivileges: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DefaultPrivilegeFilter', + 'DefaultPrivilegeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivileges', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivileges: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: args?.where, + }, + 'DefaultPrivilegeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivileges', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultPrivilege: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultPrivilege', + 'defaultPrivileges', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DefaultPrivilegeFilter', + 'DefaultPrivilegeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultPrivilege', + fieldName: 'defaultPrivilege', + document, + variables, + transform: (data: { + defaultPrivileges?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + defaultPrivilege: data.defaultPrivileges?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DefaultPrivilege', + 'createDefaultPrivilege', + 'defaultPrivilege', + args.select, + args.data, + 'CreateDefaultPrivilegeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'createDefaultPrivilege', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DefaultPrivilegePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DefaultPrivilege', + 'updateDefaultPrivilege', + 'defaultPrivilege', + args.select, + args.where.id, + args.data, + 'UpdateDefaultPrivilegeInput', + 'id', + 'defaultPrivilegePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'updateDefaultPrivilege', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDefaultPrivilege: { + defaultPrivilege: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DefaultPrivilege', + 'deleteDefaultPrivilege', + 'defaultPrivilege', + args.where.id, + 'DeleteDefaultPrivilegeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultPrivilege', + fieldName: 'deleteDefaultPrivilege', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/index.ts b/sdk/constructive-sdk/src/public/orm/models/index.ts index b76148dfe..69c875e89 100644 --- a/sdk/constructive-sdk/src/public/orm/models/index.ts +++ b/sdk/constructive-sdk/src/public/orm/models/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; +export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; @@ -16,7 +18,6 @@ export { FieldModel } from './field'; export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { IndexModel } from './indexModel'; -export { LimitFunctionModel } from './limitFunction'; export { PolicyModel } from './policy'; export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { TableGrantModel } from './tableGrant'; @@ -28,14 +29,16 @@ export { ViewGrantModel } from './viewGrant'; export { ViewRuleModel } from './viewRule'; export { TableModuleModel } from './tableModule'; export { TableTemplateModuleModel } from './tableTemplateModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; +export { RelationProvisionModel } from './relationProvision'; export { SchemaGrantModel } from './schemaGrant'; +export { DefaultPrivilegeModel } from './defaultPrivilege'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; export { SiteThemeModel } from './siteTheme'; -export { ProcedureModel } from './procedure'; export { TriggerFunctionModel } from './triggerFunction'; export { ApiModel } from './api'; export { SiteModel } from './site'; @@ -71,6 +74,8 @@ export { OrgMemberModel } from './orgMember'; export { OrgAdminGrantModel } from './orgAdminGrant'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; export { AppStepModel } from './appStep'; @@ -79,26 +84,26 @@ export { InviteModel } from './invite'; export { ClaimedInviteModel } from './claimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; export { RefModel } from './ref'; export { StoreModel } from './store'; +export { AppPermissionDefaultModel } from './appPermissionDefault'; export { RoleTypeModel } from './roleType'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { CryptoAddressModel } from './cryptoAddress'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { CryptoAddressModel } from './cryptoAddress'; -export { MembershipTypeModel } from './membershipType'; export { ConnectedAccountModel } from './connectedAccount'; export { PhoneNumberModel } from './phoneNumber'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; export { CommitModel } from './commit'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { EmailModel } from './email'; export { AuditLogModel } from './auditLog'; export { AppLevelModel } from './appLevel'; +export { EmailModel } from './email'; export { SqlMigrationModel } from './sqlMigration'; export { AstMigrationModel } from './astMigration'; -export { AppMembershipModel } from './appMembership'; export { UserModel } from './user'; +export { AppMembershipModel } from './appMembership'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-sdk/src/public/orm/models/limitFunction.ts b/sdk/constructive-sdk/src/public/orm/models/limitFunction.ts deleted file mode 100644 index 9df58af2a..000000000 --- a/sdk/constructive-sdk/src/public/orm/models/limitFunction.ts +++ /dev/null @@ -1,236 +0,0 @@ -/** - * LimitFunction model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - LimitFunction, - LimitFunctionWithRelations, - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy, - CreateLimitFunctionInput, - UpdateLimitFunctionInput, - LimitFunctionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class LimitFunctionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - limitFunctions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'LimitFunction', - 'limitFunctions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'LimitFunctionFilter', - 'LimitFunctionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunctions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - limitFunctions: { - nodes: InferSelectResult[]; - }; - }> { - const { document, variables } = buildFindFirstDocument( - 'LimitFunction', - 'limitFunctions', - args.select, - { - where: args?.where, - }, - 'LimitFunctionFilter', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunctions', - document, - variables, - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - limitFunction: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'LimitFunction', - 'limitFunctions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'LimitFunctionFilter', - 'LimitFunctionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'LimitFunction', - fieldName: 'limitFunction', - document, - variables, - transform: (data: { - limitFunctions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - limitFunction: data.limitFunctions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createLimitFunction: { - limitFunction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'LimitFunction', - 'createLimitFunction', - 'limitFunction', - args.select, - args.data, - 'CreateLimitFunctionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'createLimitFunction', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - LimitFunctionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateLimitFunction: { - limitFunction: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'LimitFunction', - 'updateLimitFunction', - 'limitFunction', - args.select, - args.where.id, - args.data, - 'UpdateLimitFunctionInput', - 'id', - 'limitFunctionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'updateLimitFunction', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteLimitFunction: { - limitFunction: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'LimitFunction', - 'deleteLimitFunction', - 'limitFunction', - args.where.id, - 'DeleteLimitFunctionInput', - 'id', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'LimitFunction', - fieldName: 'deleteLimitFunction', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgChartEdge.ts b/sdk/constructive-sdk/src/public/orm/models/orgChartEdge.ts new file mode 100644 index 000000000..3ff845429 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/orgChartEdge.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdge model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgChartEdge, + OrgChartEdgeWithRelations, + OrgChartEdgeSelect, + OrgChartEdgeFilter, + OrgChartEdgeOrderBy, + CreateOrgChartEdgeInput, + UpdateOrgChartEdgeInput, + OrgChartEdgePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdges: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdges: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdges', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdge: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdge', + 'orgChartEdges', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeFilter', + 'OrgChartEdgeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdge', + fieldName: 'orgChartEdge', + document, + variables, + transform: (data: { + orgChartEdges?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdge', + 'createOrgChartEdge', + 'orgChartEdge', + args.select, + args.data, + 'CreateOrgChartEdgeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'createOrgChartEdge', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdge', + 'updateOrgChartEdge', + 'orgChartEdge', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeInput', + 'id', + 'orgChartEdgePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'updateOrgChartEdge', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdge: { + orgChartEdge: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdge', + 'deleteOrgChartEdge', + 'orgChartEdge', + args.where.id, + 'DeleteOrgChartEdgeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdge', + fieldName: 'deleteOrgChartEdge', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts new file mode 100644 index 000000000..40dba3391 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgChartEdgeGrant model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgChartEdgeGrant, + OrgChartEdgeGrantWithRelations, + OrgChartEdgeGrantSelect, + OrgChartEdgeGrantFilter, + OrgChartEdgeGrantOrderBy, + CreateOrgChartEdgeGrantInput, + UpdateOrgChartEdgeGrantInput, + OrgChartEdgeGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgChartEdgeGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: args?.where, + }, + 'OrgChartEdgeGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgChartEdgeGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgChartEdgeGrant', + 'orgChartEdgeGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgChartEdgeGrantFilter', + 'OrgChartEdgeGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgChartEdgeGrant', + fieldName: 'orgChartEdgeGrant', + document, + variables, + transform: (data: { + orgChartEdgeGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgChartEdgeGrant', + 'createOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.data, + 'CreateOrgChartEdgeGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'createOrgChartEdgeGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgChartEdgeGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgChartEdgeGrant', + 'updateOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgChartEdgeGrantInput', + 'id', + 'orgChartEdgeGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'updateOrgChartEdgeGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgChartEdgeGrant: { + orgChartEdgeGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgChartEdgeGrant', + 'deleteOrgChartEdgeGrant', + 'orgChartEdgeGrant', + args.where.id, + 'DeleteOrgChartEdgeGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgChartEdgeGrant', + fieldName: 'deleteOrgChartEdgeGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts b/sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts new file mode 100644 index 000000000..9a0cefa8a --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts @@ -0,0 +1,127 @@ +/** + * OrgGetManagersRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgGetManagersRecord, + OrgGetManagersRecordWithRelations, + OrgGetManagersRecordSelect, + OrgGetManagersRecordFilter, + OrgGetManagersRecordsOrderBy, + CreateOrgGetManagersRecordInput, + UpdateOrgGetManagersRecordInput, + OrgGetManagersRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetManagersRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgGetManagersRecordFilter', + 'OrgGetManagersRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetManagers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetManagersRecord', + 'orgGetManagers', + args.select, + { + where: args?.where, + }, + 'OrgGetManagersRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetManagersRecord', + fieldName: 'orgGetManagers', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetManagersRecord: { + orgGetManagersRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetManagersRecord', + 'createOrgGetManagersRecord', + 'orgGetManagersRecord', + args.select, + args.data, + 'CreateOrgGetManagersRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetManagersRecord', + fieldName: 'createOrgGetManagersRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts new file mode 100644 index 000000000..5eeec50ca --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts @@ -0,0 +1,129 @@ +/** + * OrgGetSubordinatesRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgGetSubordinatesRecord, + OrgGetSubordinatesRecordWithRelations, + OrgGetSubordinatesRecordSelect, + OrgGetSubordinatesRecordFilter, + OrgGetSubordinatesRecordsOrderBy, + CreateOrgGetSubordinatesRecordInput, + UpdateOrgGetSubordinatesRecordInput, + OrgGetSubordinatesRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGetSubordinatesRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgGetSubordinatesRecordFilter', + 'OrgGetSubordinatesRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGetSubordinates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGetSubordinatesRecord', + 'orgGetSubordinates', + args.select, + { + where: args?.where, + }, + 'OrgGetSubordinatesRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'orgGetSubordinates', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGetSubordinatesRecord: { + orgGetSubordinatesRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGetSubordinatesRecord', + 'createOrgGetSubordinatesRecord', + 'orgGetSubordinatesRecord', + args.select, + args.data, + 'CreateOrgGetSubordinatesRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGetSubordinatesRecord', + fieldName: 'createOrgGetSubordinatesRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/procedure.ts b/sdk/constructive-sdk/src/public/orm/models/procedure.ts deleted file mode 100644 index 6725b1577..000000000 --- a/sdk/constructive-sdk/src/public/orm/models/procedure.ts +++ /dev/null @@ -1,236 +0,0 @@ -/** - * Procedure model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - Procedure, - ProcedureWithRelations, - ProcedureSelect, - ProcedureFilter, - ProcedureOrderBy, - CreateProcedureInput, - UpdateProcedureInput, - ProcedurePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class ProcedureModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - procedures: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Procedure', - 'procedures', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'ProcedureFilter', - 'ProcedureOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Procedure', - fieldName: 'procedures', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - procedures: { - nodes: InferSelectResult[]; - }; - }> { - const { document, variables } = buildFindFirstDocument( - 'Procedure', - 'procedures', - args.select, - { - where: args?.where, - }, - 'ProcedureFilter', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Procedure', - fieldName: 'procedures', - document, - variables, - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - procedure: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Procedure', - 'procedures', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'ProcedureFilter', - 'ProcedureOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Procedure', - fieldName: 'procedure', - document, - variables, - transform: (data: { - procedures?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - procedure: data.procedures?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createProcedure: { - procedure: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Procedure', - 'createProcedure', - 'procedure', - args.select, - args.data, - 'CreateProcedureInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Procedure', - fieldName: 'createProcedure', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - ProcedurePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateProcedure: { - procedure: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Procedure', - 'updateProcedure', - 'procedure', - args.select, - args.where.id, - args.data, - 'UpdateProcedureInput', - 'id', - 'procedurePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Procedure', - fieldName: 'updateProcedure', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteProcedure: { - procedure: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Procedure', - 'deleteProcedure', - 'procedure', - args.where.id, - 'DeleteProcedureInput', - 'id', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Procedure', - fieldName: 'deleteProcedure', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/relationProvision.ts b/sdk/constructive-sdk/src/public/orm/models/relationProvision.ts new file mode 100644 index 000000000..83dcb30fd --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/relationProvision.ts @@ -0,0 +1,236 @@ +/** + * RelationProvision model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + RelationProvision, + RelationProvisionWithRelations, + RelationProvisionSelect, + RelationProvisionFilter, + RelationProvisionOrderBy, + CreateRelationProvisionInput, + UpdateRelationProvisionInput, + RelationProvisionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RelationProvisionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvisions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'RelationProvisionFilter', + 'RelationProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvisions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvisions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: args?.where, + }, + 'RelationProvisionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvisions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + relationProvision: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RelationProvision', + 'relationProvisions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RelationProvisionFilter', + 'RelationProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RelationProvision', + fieldName: 'relationProvision', + document, + variables, + transform: (data: { + relationProvisions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + relationProvision: data.relationProvisions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RelationProvision', + 'createRelationProvision', + 'relationProvision', + args.select, + args.data, + 'CreateRelationProvisionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'createRelationProvision', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RelationProvisionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RelationProvision', + 'updateRelationProvision', + 'relationProvision', + args.select, + args.where.id, + args.data, + 'UpdateRelationProvisionInput', + 'id', + 'relationProvisionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'updateRelationProvision', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRelationProvision: { + relationProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RelationProvision', + 'deleteRelationProvision', + 'relationProvision', + args.where.id, + 'DeleteRelationProvisionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RelationProvision', + fieldName: 'deleteRelationProvision', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/secureTableProvision.ts b/sdk/constructive-sdk/src/public/orm/models/secureTableProvision.ts new file mode 100644 index 000000000..713dc44c8 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/secureTableProvision.ts @@ -0,0 +1,238 @@ +/** + * SecureTableProvision model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + SecureTableProvision, + SecureTableProvisionWithRelations, + SecureTableProvisionSelect, + SecureTableProvisionFilter, + SecureTableProvisionOrderBy, + CreateSecureTableProvisionInput, + UpdateSecureTableProvisionInput, + SecureTableProvisionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SecureTableProvisionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvisions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'SecureTableProvisionFilter', + 'SecureTableProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvisions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvisions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: args?.where, + }, + 'SecureTableProvisionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvisions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + secureTableProvision: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SecureTableProvision', + 'secureTableProvisions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SecureTableProvisionFilter', + 'SecureTableProvisionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecureTableProvision', + fieldName: 'secureTableProvision', + document, + variables, + transform: (data: { + secureTableProvisions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secureTableProvision: data.secureTableProvisions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SecureTableProvision', + 'createSecureTableProvision', + 'secureTableProvision', + args.select, + args.data, + 'CreateSecureTableProvisionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'createSecureTableProvision', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SecureTableProvisionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SecureTableProvision', + 'updateSecureTableProvision', + 'secureTableProvision', + args.select, + args.where.id, + args.data, + 'UpdateSecureTableProvisionInput', + 'id', + 'secureTableProvisionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'updateSecureTableProvision', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSecureTableProvision: { + secureTableProvision: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SecureTableProvision', + 'deleteSecureTableProvision', + 'secureTableProvision', + args.where.id, + 'DeleteSecureTableProvisionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecureTableProvision', + fieldName: 'deleteSecureTableProvision', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/query/index.ts b/sdk/constructive-sdk/src/public/orm/query/index.ts index 468211e98..12a89b785 100644 --- a/sdk/constructive-sdk/src/public/orm/query/index.ts +++ b/sdk/constructive-sdk/src/public/orm/query/index.ts @@ -32,6 +32,12 @@ export interface RevParseVariables { storeId?: string; refname?: string; } +export interface OrgIsManagerOfVariables { + pEntityId?: string; + pManagerId?: string; + pUserId?: string; + pMaxDepth?: number; +} export interface AppPermissionsGetMaskVariables { ids?: string[]; } @@ -301,6 +307,47 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + orgIsManagerOf: ( + args: OrgIsManagerOfVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgIsManagerOf: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'OrgIsManagerOf', + fieldName: 'orgIsManagerOf', + ...buildCustomDocument( + 'query', + 'OrgIsManagerOf', + 'orgIsManagerOf', + options?.select, + args, + [ + { + name: 'pEntityId', + type: 'UUID', + }, + { + name: 'pManagerId', + type: 'UUID', + }, + { + name: 'pUserId', + type: 'UUID', + }, + { + name: 'pMaxDepth', + type: 'Int', + }, + ], + connectionFieldsMap, + undefined + ), + }), appPermissionsGetMask: ( args: AppPermissionsGetMaskVariables, options?: { diff --git a/sdk/constructive-sdk/src/public/orm/skills/api.md b/sdk/constructive-sdk/src/public/orm/skills/api.md deleted file mode 100644 index 4fbea1f24..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/api.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-api - - - -ORM operations for Api records - -## Usage - -```typescript -db.api.findMany({ select: { id: true } }).execute() -db.api.findOne({ id: '', select: { id: true } }).execute() -db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute() -db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.api.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all api records - -```typescript -const items = await db.api.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a api - -```typescript -const item = await db.api.create({ - data: { databaseId: 'value', name: 'value', dbname: 'value', roleName: 'value', anonRole: 'value', isPublic: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/apiModule.md b/sdk/constructive-sdk/src/public/orm/skills/apiModule.md deleted file mode 100644 index bc5e1a7b6..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/apiModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-apiModule - - - -ORM operations for ApiModule records - -## Usage - -```typescript -db.apiModule.findMany({ select: { id: true } }).execute() -db.apiModule.findOne({ id: '', select: { id: true } }).execute() -db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute() -db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.apiModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiModule records - -```typescript -const items = await db.apiModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a apiModule - -```typescript -const item = await db.apiModule.create({ - data: { databaseId: 'value', apiId: 'value', name: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/apiSchema.md b/sdk/constructive-sdk/src/public/orm/skills/apiSchema.md deleted file mode 100644 index 965a1cded..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/apiSchema.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-apiSchema - - - -ORM operations for ApiSchema records - -## Usage - -```typescript -db.apiSchema.findMany({ select: { id: true } }).execute() -db.apiSchema.findOne({ id: '', select: { id: true } }).execute() -db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute() -db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.apiSchema.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiSchema records - -```typescript -const items = await db.apiSchema.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a apiSchema - -```typescript -const item = await db.apiSchema.create({ - data: { databaseId: 'value', schemaId: 'value', apiId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/app.md b/sdk/constructive-sdk/src/public/orm/skills/app.md deleted file mode 100644 index aa0d12b64..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/app.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-app - - - -ORM operations for App records - -## Usage - -```typescript -db.app.findMany({ select: { id: true } }).execute() -db.app.findOne({ id: '', select: { id: true } }).execute() -db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute() -db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.app.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all app records - -```typescript -const items = await db.app.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a app - -```typescript -const item = await db.app.create({ - data: { databaseId: 'value', siteId: 'value', name: 'value', appImage: 'value', appStoreLink: 'value', appStoreId: 'value', appIdPrefix: 'value', playStoreLink: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md b/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md deleted file mode 100644 index 92ab466a3..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAchievement - - - -This table represents the users progress for particular level requirements, tallying the total count. This table is updated via triggers and should not be updated maually. - -## Usage - -```typescript -db.appAchievement.findMany({ select: { id: true } }).execute() -db.appAchievement.findOne({ id: '', select: { id: true } }).execute() -db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appAchievement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAchievement records - -```typescript -const items = await db.appAchievement.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appAchievement - -```typescript -const item = await db.appAchievement.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md b/sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md deleted file mode 100644 index 6b585abee..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appAdminGrant - - - -ORM operations for AppAdminGrant records - -## Usage - -```typescript -db.appAdminGrant.findMany({ select: { id: true } }).execute() -db.appAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAdminGrant records - -```typescript -const items = await db.appAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appAdminGrant - -```typescript -const item = await db.appAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appGrant.md b/sdk/constructive-sdk/src/public/orm/skills/appGrant.md deleted file mode 100644 index 017771262..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appGrant - - - -ORM operations for AppGrant records - -## Usage - -```typescript -db.appGrant.findMany({ select: { id: true } }).execute() -db.appGrant.findOne({ id: '', select: { id: true } }).execute() -db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appGrant records - -```typescript -const items = await db.appGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appGrant - -```typescript -const item = await db.appGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLevel.md b/sdk/constructive-sdk/src/public/orm/skills/appLevel.md deleted file mode 100644 index 3677ecc37..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appLevel.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevel - - - -Levels for achievement - -## Usage - -```typescript -db.appLevel.findMany({ select: { id: true } }).execute() -db.appLevel.findOne({ id: '', select: { id: true } }).execute() -db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() -db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevel.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevel records - -```typescript -const items = await db.appLevel.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevel - -```typescript -const item = await db.appLevel.create({ - data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md b/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md deleted file mode 100644 index 28df77ff5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLevelRequirement - - - -Requirements to achieve a level - -## Usage - -```typescript -db.appLevelRequirement.findMany({ select: { id: true } }).execute() -db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() -db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() -db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevelRequirement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelRequirement records - -```typescript -const items = await db.appLevelRequirement.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevelRequirement - -```typescript -const item = await db.appLevelRequirement.create({ - data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLimit.md b/sdk/constructive-sdk/src/public/orm/skills/appLimit.md deleted file mode 100644 index 50fa2b37f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimit - - - -ORM operations for AppLimit records - -## Usage - -```typescript -db.appLimit.findMany({ select: { id: true } }).execute() -db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() -db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimit records - -```typescript -const items = await db.appLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimit - -```typescript -const item = await db.appLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md b/sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md deleted file mode 100644 index eb070a028..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appLimitDefault - - - -ORM operations for AppLimitDefault records - -## Usage - -```typescript -db.appLimitDefault.findMany({ select: { id: true } }).execute() -db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitDefault records - -```typescript -const items = await db.appLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitDefault - -```typescript -const item = await db.appLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appMembership.md b/sdk/constructive-sdk/src/public/orm/skills/appMembership.md deleted file mode 100644 index 07e8f9763..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembership - - - -ORM operations for AppMembership records - -## Usage - -```typescript -db.appMembership.findMany({ select: { id: true } }).execute() -db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() -db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembership records - -```typescript -const items = await db.appMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembership - -```typescript -const item = await db.appMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md b/sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md deleted file mode 100644 index 82c322958..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appMembershipDefault - - - -ORM operations for AppMembershipDefault records - -## Usage - -```typescript -db.appMembershipDefault.findMany({ select: { id: true } }).execute() -db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() -db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembershipDefault records - -```typescript -const items = await db.appMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembershipDefault - -```typescript -const item = await db.appMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md b/sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md deleted file mode 100644 index 89c574dd7..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appOwnerGrant - - - -ORM operations for AppOwnerGrant records - -## Usage - -```typescript -db.appOwnerGrant.findMany({ select: { id: true } }).execute() -db.appOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appOwnerGrant records - -```typescript -const items = await db.appOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appOwnerGrant - -```typescript -const item = await db.appOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermission.md b/sdk/constructive-sdk/src/public/orm/skills/appPermission.md deleted file mode 100644 index a497f7b8a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermission - - - -ORM operations for AppPermission records - -## Usage - -```typescript -db.appPermission.findMany({ select: { id: true } }).execute() -db.appPermission.findOne({ id: '', select: { id: true } }).execute() -db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermission records - -```typescript -const items = await db.appPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appPermission - -```typescript -const item = await db.appPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md deleted file mode 100644 index ef8289183..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appPermissionDefault - - - -ORM operations for AppPermissionDefault records - -## Usage - -```typescript -db.appPermissionDefault.findMany({ select: { id: true } }).execute() -db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefault records - -```typescript -const items = await db.appPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appPermissionDefault - -```typescript -const item = await db.appPermissionDefault.create({ - data: { permissions: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md deleted file mode 100644 index 369df9f26..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetByMask - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md deleted file mode 100644 index ceca5548f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```typescript -db.query.appPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMask - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md deleted file mode 100644 index c3f40dddc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.appPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md deleted file mode 100644 index accce0eed..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appStep.md b/sdk/constructive-sdk/src/public/orm/skills/appStep.md deleted file mode 100644 index 3c349de1f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/appStep.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-appStep - - - -The user achieving a requirement for a level. Log table that has every single step ever taken. - -## Usage - -```typescript -db.appStep.findMany({ select: { id: true } }).execute() -db.appStep.findOne({ id: '', select: { id: true } }).execute() -db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appStep.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appStep records - -```typescript -const items = await db.appStep.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appStep - -```typescript -const item = await db.appStep.create({ - data: { actorId: 'value', name: 'value', count: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/applyRls.md b/sdk/constructive-sdk/src/public/orm/skills/applyRls.md deleted file mode 100644 index 4716da759..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/applyRls.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-applyRls - - - -Execute the applyRls mutation - -## Usage - -```typescript -db.mutation.applyRls({ input: '' }).execute() -``` - -## Examples - -### Run applyRls - -```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/astMigration.md b/sdk/constructive-sdk/src/public/orm/skills/astMigration.md deleted file mode 100644 index 96c82138c..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/astMigration.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-astMigration - - - -ORM operations for AstMigration records - -## Usage - -```typescript -db.astMigration.findMany({ select: { id: true } }).execute() -db.astMigration.findOne({ id: '', select: { id: true } }).execute() -db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() -db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.astMigration.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all astMigration records - -```typescript -const items = await db.astMigration.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a astMigration - -```typescript -const item = await db.astMigration.create({ - data: { databaseId: 'value', name: 'value', requires: 'value', payload: 'value', deploys: 'value', deploy: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/auditLog.md b/sdk/constructive-sdk/src/public/orm/skills/auditLog.md deleted file mode 100644 index d7eed269a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/auditLog.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-auditLog - - - -ORM operations for AuditLog records - -## Usage - -```typescript -db.auditLog.findMany({ select: { id: true } }).execute() -db.auditLog.findOne({ id: '', select: { id: true } }).execute() -db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() -db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() -db.auditLog.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all auditLog records - -```typescript -const items = await db.auditLog.findMany({ - select: { id: true, event: true } -}).execute(); -``` - -### Create a auditLog - -```typescript -const item = await db.auditLog.create({ - data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md b/sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md deleted file mode 100644 index 08fff3805..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-bootstrapUser - - - -Execute the bootstrapUser mutation - -## Usage - -```typescript -db.mutation.bootstrapUser({ input: '' }).execute() -``` - -## Examples - -### Run bootstrapUser - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md deleted file mode 100644 index 1e13d4f10..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-checkConstraint - - - -ORM operations for CheckConstraint records - -## Usage - -```typescript -db.checkConstraint.findMany({ select: { id: true } }).execute() -db.checkConstraint.findOne({ id: '', select: { id: true } }).execute() -db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.checkConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all checkConstraint records - -```typescript -const items = await db.checkConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a checkConstraint - -```typescript -const item = await db.checkConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', expr: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/checkPassword.md b/sdk/constructive-sdk/src/public/orm/skills/checkPassword.md deleted file mode 100644 index 1c5c3d8ba..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/checkPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-checkPassword - - - -Execute the checkPassword mutation - -## Usage - -```typescript -db.mutation.checkPassword({ input: '' }).execute() -``` - -## Examples - -### Run checkPassword - -```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md b/sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md deleted file mode 100644 index 3d5de6b3b..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-claimedInvite - - - -ORM operations for ClaimedInvite records - -## Usage - -```typescript -db.claimedInvite.findMany({ select: { id: true } }).execute() -db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() -db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.claimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all claimedInvite records - -```typescript -const items = await db.claimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a claimedInvite - -```typescript -const item = await db.claimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/commit.md b/sdk/constructive-sdk/src/public/orm/skills/commit.md deleted file mode 100644 index 85ded9d62..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -db.commit.findMany({ select: { id: true } }).execute() -db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() -db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() -db.commit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all commit records - -```typescript -const items = await db.commit.findMany({ - select: { id: true, message: true } -}).execute(); -``` - -### Create a commit - -```typescript -const item = await db.commit.create({ - data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md b/sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md deleted file mode 100644 index 4d76c3194..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-confirmDeleteAccount - - - -Execute the confirmDeleteAccount mutation - -## Usage - -```typescript -db.mutation.confirmDeleteAccount({ input: '' }).execute() -``` - -## Examples - -### Run confirmDeleteAccount - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md b/sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md deleted file mode 100644 index ff7e10281..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-connectedAccount - - - -ORM operations for ConnectedAccount records - -## Usage - -```typescript -db.connectedAccount.findMany({ select: { id: true } }).execute() -db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() -db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.connectedAccount.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccount records - -```typescript -const items = await db.connectedAccount.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a connectedAccount - -```typescript -const item = await db.connectedAccount.create({ - data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md b/sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md deleted file mode 100644 index 5a0a95552..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-connectedAccountsModule - - - -ORM operations for ConnectedAccountsModule records - -## Usage - -```typescript -db.connectedAccountsModule.findMany({ select: { id: true } }).execute() -db.connectedAccountsModule.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.connectedAccountsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccountsModule records - -```typescript -const items = await db.connectedAccountsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a connectedAccountsModule - -```typescript -const item = await db.connectedAccountsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md b/sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md deleted file mode 100644 index aeaeb3f50..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md +++ /dev/null @@ -1,35 +0,0 @@ -# orm-createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include levels/achievements (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```typescript -db.mutation.createUserDatabase({ input: '' }).execute() -``` - -## Examples - -### Run createUserDatabase - -```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md b/sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md deleted file mode 100644 index 70e896572..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAddress - - - -ORM operations for CryptoAddress records - -## Usage - -```typescript -db.cryptoAddress.findMany({ select: { id: true } }).execute() -db.cryptoAddress.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.cryptoAddress.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddress records - -```typescript -const items = await db.cryptoAddress.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a cryptoAddress - -```typescript -const item = await db.cryptoAddress.create({ - data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md b/sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md deleted file mode 100644 index 1eb3867b9..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAddressesModule - - - -ORM operations for CryptoAddressesModule records - -## Usage - -```typescript -db.cryptoAddressesModule.findMany({ select: { id: true } }).execute() -db.cryptoAddressesModule.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute() -db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.cryptoAddressesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddressesModule records - -```typescript -const items = await db.cryptoAddressesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a cryptoAddressesModule - -```typescript -const item = await db.cryptoAddressesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', cryptoNetwork: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md b/sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md deleted file mode 100644 index 2cb20a2ec..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-cryptoAuthModule - - - -ORM operations for CryptoAuthModule records - -## Usage - -```typescript -db.cryptoAuthModule.findMany({ select: { id: true } }).execute() -db.cryptoAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute() -db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.cryptoAuthModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAuthModule records - -```typescript -const items = await db.cryptoAuthModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a cryptoAuthModule - -```typescript -const item = await db.cryptoAuthModule.create({ - data: { databaseId: 'value', schemaId: 'value', usersTableId: 'value', secretsTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', addressesTableId: 'value', userField: 'value', cryptoNetwork: 'value', signInRequestChallenge: 'value', signInRecordFailure: 'value', signUpWithKey: 'value', signInWithChallenge: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md b/sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md deleted file mode 100644 index 63d2d9969..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentIpAddress - - - -Execute the currentIpAddress query - -## Usage - -```typescript -db.query.currentIpAddress().execute() -``` - -## Examples - -### Run currentIpAddress - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentUser.md b/sdk/constructive-sdk/src/public/orm/skills/currentUser.md deleted file mode 100644 index ca907fcb4..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/currentUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUser - - - -Execute the currentUser query - -## Usage - -```typescript -db.query.currentUser().execute() -``` - -## Examples - -### Run currentUser - -```typescript -const result = await db.query.currentUser().execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md b/sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md deleted file mode 100644 index e5ba1e850..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserAgent - - - -Execute the currentUserAgent query - -## Usage - -```typescript -db.query.currentUserAgent().execute() -``` - -## Examples - -### Run currentUserAgent - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentUserId.md b/sdk/constructive-sdk/src/public/orm/skills/currentUserId.md deleted file mode 100644 index c27ebc8c5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/currentUserId.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-currentUserId - - - -Execute the currentUserId query - -## Usage - -```typescript -db.query.currentUserId().execute() -``` - -## Examples - -### Run currentUserId - -```typescript -const result = await db.query.currentUserId().execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/database.md b/sdk/constructive-sdk/src/public/orm/skills/database.md deleted file mode 100644 index cc4593c1d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/database.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-database - - - -ORM operations for Database records - -## Usage - -```typescript -db.database.findMany({ select: { id: true } }).execute() -db.database.findOne({ id: '', select: { id: true } }).execute() -db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute() -db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.database.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all database records - -```typescript -const items = await db.database.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a database - -```typescript -const item = await db.database.create({ - data: { ownerId: 'value', schemaHash: 'value', name: 'value', label: 'value', hash: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md b/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md deleted file mode 100644 index 89a929c4f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-databaseProvisionModule - - - -Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. - -## Usage - -```typescript -db.databaseProvisionModule.findMany({ select: { id: true } }).execute() -db.databaseProvisionModule.findOne({ id: '', select: { id: true } }).execute() -db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute() -db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute() -db.databaseProvisionModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all databaseProvisionModule records - -```typescript -const items = await db.databaseProvisionModule.findMany({ - select: { id: true, databaseName: true } -}).execute(); -``` - -### Create a databaseProvisionModule - -```typescript -const item = await db.databaseProvisionModule.create({ - data: { databaseName: 'value', ownerId: 'value', subdomain: 'value', domain: 'value', modules: 'value', options: 'value', bootstrapUser: 'value', status: 'value', errorMessage: 'value', databaseId: 'value', completedAt: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md b/sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md deleted file mode 100644 index 23189ab90..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-defaultIdsModule - - - -ORM operations for DefaultIdsModule records - -## Usage - -```typescript -db.defaultIdsModule.findMany({ select: { id: true } }).execute() -db.defaultIdsModule.findOne({ id: '', select: { id: true } }).execute() -db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute() -db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.defaultIdsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all defaultIdsModule records - -```typescript -const items = await db.defaultIdsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a defaultIdsModule - -```typescript -const item = await db.defaultIdsModule.create({ - data: { databaseId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md b/sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md deleted file mode 100644 index 4d81ed52e..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-denormalizedTableField - - - -ORM operations for DenormalizedTableField records - -## Usage - -```typescript -db.denormalizedTableField.findMany({ select: { id: true } }).execute() -db.denormalizedTableField.findOne({ id: '', select: { id: true } }).execute() -db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute() -db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.denormalizedTableField.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all denormalizedTableField records - -```typescript -const items = await db.denormalizedTableField.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a denormalizedTableField - -```typescript -const item = await db.denormalizedTableField.create({ - data: { databaseId: 'value', tableId: 'value', fieldId: 'value', setIds: 'value', refTableId: 'value', refFieldId: 'value', refIds: 'value', useUpdates: 'value', updateDefaults: 'value', funcName: 'value', funcOrder: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/domain.md b/sdk/constructive-sdk/src/public/orm/skills/domain.md deleted file mode 100644 index 382a92135..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/domain.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-domain - - - -ORM operations for Domain records - -## Usage - -```typescript -db.domain.findMany({ select: { id: true } }).execute() -db.domain.findOne({ id: '', select: { id: true } }).execute() -db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute() -db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.domain.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all domain records - -```typescript -const items = await db.domain.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a domain - -```typescript -const item = await db.domain.create({ - data: { databaseId: 'value', apiId: 'value', siteId: 'value', subdomain: 'value', domain: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/email.md b/sdk/constructive-sdk/src/public/orm/skills/email.md deleted file mode 100644 index 9bc21e74f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-email - - - -ORM operations for Email records - -## Usage - -```typescript -db.email.findMany({ select: { id: true } }).execute() -db.email.findOne({ id: '', select: { id: true } }).execute() -db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.email.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all email records - -```typescript -const items = await db.email.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a email - -```typescript -const item = await db.email.create({ - data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/emailsModule.md b/sdk/constructive-sdk/src/public/orm/skills/emailsModule.md deleted file mode 100644 index 2634c1661..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/emailsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-emailsModule - - - -ORM operations for EmailsModule records - -## Usage - -```typescript -db.emailsModule.findMany({ select: { id: true } }).execute() -db.emailsModule.findOne({ id: '', select: { id: true } }).execute() -db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.emailsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all emailsModule records - -```typescript -const items = await db.emailsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a emailsModule - -```typescript -const item = await db.emailsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md b/sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md deleted file mode 100644 index af02ae8c9..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-encryptedSecretsModule - - - -ORM operations for EncryptedSecretsModule records - -## Usage - -```typescript -db.encryptedSecretsModule.findMany({ select: { id: true } }).execute() -db.encryptedSecretsModule.findOne({ id: '', select: { id: true } }).execute() -db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.encryptedSecretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all encryptedSecretsModule records - -```typescript -const items = await db.encryptedSecretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a encryptedSecretsModule - -```typescript -const item = await db.encryptedSecretsModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md b/sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md deleted file mode 100644 index d587afacb..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-extendTokenExpires - - - -Execute the extendTokenExpires mutation - -## Usage - -```typescript -db.mutation.extendTokenExpires({ input: '' }).execute() -``` - -## Examples - -### Run extendTokenExpires - -```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/field.md b/sdk/constructive-sdk/src/public/orm/skills/field.md deleted file mode 100644 index e22588cfc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/field.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-field - - - -ORM operations for Field records - -## Usage - -```typescript -db.field.findMany({ select: { id: true } }).execute() -db.field.findOne({ id: '', select: { id: true } }).execute() -db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute() -db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.field.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all field records - -```typescript -const items = await db.field.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a field - -```typescript -const item = await db.field.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', isRequired: 'value', defaultValue: 'value', defaultValueAst: 'value', isHidden: 'value', type: 'value', fieldOrder: 'value', regexp: 'value', chk: 'value', chkExpr: 'value', min: 'value', max: 'value', tags: 'value', category: 'value', module: 'value', scope: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/fieldModule.md b/sdk/constructive-sdk/src/public/orm/skills/fieldModule.md deleted file mode 100644 index c4cbbbce9..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/fieldModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-fieldModule - - - -ORM operations for FieldModule records - -## Usage - -```typescript -db.fieldModule.findMany({ select: { id: true } }).execute() -db.fieldModule.findOne({ id: '', select: { id: true } }).execute() -db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute() -db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.fieldModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all fieldModule records - -```typescript -const items = await db.fieldModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a fieldModule - -```typescript -const item = await db.fieldModule.create({ - data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', fieldId: 'value', nodeType: 'value', data: 'value', triggers: 'value', functions: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md deleted file mode 100644 index fa445e8f4..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-foreignKeyConstraint - - - -ORM operations for ForeignKeyConstraint records - -## Usage - -```typescript -db.foreignKeyConstraint.findMany({ select: { id: true } }).execute() -db.foreignKeyConstraint.findOne({ id: '', select: { id: true } }).execute() -db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.foreignKeyConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all foreignKeyConstraint records - -```typescript -const items = await db.foreignKeyConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a foreignKeyConstraint - -```typescript -const item = await db.foreignKeyConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', refTableId: 'value', refFieldIds: 'value', deleteAction: 'value', updateAction: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md b/sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md deleted file mode 100644 index 38c59f662..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-forgotPassword - - - -Execute the forgotPassword mutation - -## Usage - -```typescript -db.mutation.forgotPassword({ input: '' }).execute() -``` - -## Examples - -### Run forgotPassword - -```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md b/sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md deleted file mode 100644 index b3f195547..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```typescript -db.mutation.freezeObjects({ input: '' }).execute() -``` - -## Examples - -### Run freezeObjects - -```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md b/sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md deleted file mode 100644 index 996c517da..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-fullTextSearch - - - -ORM operations for FullTextSearch records - -## Usage - -```typescript -db.fullTextSearch.findMany({ select: { id: true } }).execute() -db.fullTextSearch.findOne({ id: '', select: { id: true } }).execute() -db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute() -db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.fullTextSearch.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all fullTextSearch records - -```typescript -const items = await db.fullTextSearch.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a fullTextSearch - -```typescript -const item = await db.fullTextSearch.create({ - data: { databaseId: 'value', tableId: 'value', fieldId: 'value', fieldIds: 'value', weights: 'value', langs: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md b/sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md deleted file mode 100644 index 71c5db4db..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getAllObjectsFromRoot - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md b/sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md deleted file mode 100644 index 9c61daad2..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-getAllRecord - - - -ORM operations for GetAllRecord records - -## Usage - -```typescript -db.getAllRecord.findMany({ select: { id: true } }).execute() -db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() -db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() -db.getAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all getAllRecord records - -```typescript -const items = await db.getAllRecord.findMany({ - select: { id: true, path: true } -}).execute(); -``` - -### Create a getAllRecord - -```typescript -const item = await db.getAllRecord.create({ - data: { path: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md deleted file mode 100644 index 820b6d5fc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() -``` - -## Examples - -### Run getObjectAtPath - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md b/sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md deleted file mode 100644 index 954943d90..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getPathObjectsFromRoot - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md b/sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md deleted file mode 100644 index c6ba413a2..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-hierarchyModule - - - -ORM operations for HierarchyModule records - -## Usage - -```typescript -db.hierarchyModule.findMany({ select: { id: true } }).execute() -db.hierarchyModule.findOne({ id: '', select: { id: true } }).execute() -db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute() -db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.hierarchyModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all hierarchyModule records - -```typescript -const items = await db.hierarchyModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a hierarchyModule - -```typescript -const item = await db.hierarchyModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', chartEdgesTableId: 'value', chartEdgesTableName: 'value', hierarchySprtTableId: 'value', hierarchySprtTableName: 'value', chartEdgeGrantsTableId: 'value', chartEdgeGrantsTableName: 'value', entityTableId: 'value', usersTableId: 'value', prefix: 'value', privateSchemaName: 'value', sprtTableName: 'value', rebuildHierarchyFunction: 'value', getSubordinatesFunction: 'value', getManagersFunction: 'value', isManagerOfFunction: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/index.md b/sdk/constructive-sdk/src/public/orm/skills/index.md deleted file mode 100644 index 0a848a2e1..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/index.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-index - - - -ORM operations for Index records - -## Usage - -```typescript -db.index.findMany({ select: { id: true } }).execute() -db.index.findOne({ id: '', select: { id: true } }).execute() -db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.index.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all index records - -```typescript -const items = await db.index.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a index - -```typescript -const item = await db.index.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', fieldIds: 'value', includeFieldIds: 'value', accessMethod: 'value', indexParams: 'value', whereClause: 'value', isUnique: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md b/sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md deleted file mode 100644 index 43a46841f..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-initEmptyRepo - - - -Execute the initEmptyRepo mutation - -## Usage - -```typescript -db.mutation.initEmptyRepo({ input: '' }).execute() -``` - -## Examples - -### Run initEmptyRepo - -```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md deleted file mode 100644 index 2e9db15a0..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-insertNodeAtPath - - - -Execute the insertNodeAtPath mutation - -## Usage - -```typescript -db.mutation.insertNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run insertNodeAtPath - -```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/invite.md b/sdk/constructive-sdk/src/public/orm/skills/invite.md deleted file mode 100644 index 727a2107e..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-invite - - - -ORM operations for Invite records - -## Usage - -```typescript -db.invite.findMany({ select: { id: true } }).execute() -db.invite.findOne({ id: '', select: { id: true } }).execute() -db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() -db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.invite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invite records - -```typescript -const items = await db.invite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a invite - -```typescript -const item = await db.invite.create({ - data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/invitesModule.md b/sdk/constructive-sdk/src/public/orm/skills/invitesModule.md deleted file mode 100644 index 64bdeacaa..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/invitesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-invitesModule - - - -ORM operations for InvitesModule records - -## Usage - -```typescript -db.invitesModule.findMany({ select: { id: true } }).execute() -db.invitesModule.findOne({ id: '', select: { id: true } }).execute() -db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute() -db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.invitesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invitesModule records - -```typescript -const items = await db.invitesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a invitesModule - -```typescript -const item = await db.invitesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', emailsTableId: 'value', usersTableId: 'value', invitesTableId: 'value', claimedInvitesTableId: 'value', invitesTableName: 'value', claimedInvitesTableName: 'value', submitInviteCodeFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/levelsModule.md b/sdk/constructive-sdk/src/public/orm/skills/levelsModule.md deleted file mode 100644 index 50a907813..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/levelsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-levelsModule - - - -ORM operations for LevelsModule records - -## Usage - -```typescript -db.levelsModule.findMany({ select: { id: true } }).execute() -db.levelsModule.findOne({ id: '', select: { id: true } }).execute() -db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() -db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.levelsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all levelsModule records - -```typescript -const items = await db.levelsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a levelsModule - -```typescript -const item = await db.levelsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', stepsTableId: 'value', stepsTableName: 'value', achievementsTableId: 'value', achievementsTableName: 'value', levelsTableId: 'value', levelsTableName: 'value', levelRequirementsTableId: 'value', levelRequirementsTableName: 'value', completedStep: 'value', incompletedStep: 'value', tgAchievement: 'value', tgAchievementToggle: 'value', tgAchievementToggleBoolean: 'value', tgAchievementBoolean: 'value', upsertAchievement: 'value', tgUpdateAchievements: 'value', stepsRequired: 'value', levelAchieved: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/limitFunction.md b/sdk/constructive-sdk/src/public/orm/skills/limitFunction.md deleted file mode 100644 index 7db5044ee..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/limitFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-limitFunction - - - -ORM operations for LimitFunction records - -## Usage - -```typescript -db.limitFunction.findMany({ select: { id: true } }).execute() -db.limitFunction.findOne({ id: '', select: { id: true } }).execute() -db.limitFunction.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }, select: { id: true } }).execute() -db.limitFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.limitFunction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all limitFunction records - -```typescript -const items = await db.limitFunction.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a limitFunction - -```typescript -const item = await db.limitFunction.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', data: 'value', security: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/limitsModule.md b/sdk/constructive-sdk/src/public/orm/skills/limitsModule.md deleted file mode 100644 index 6f9cccea1..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/limitsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-limitsModule - - - -ORM operations for LimitsModule records - -## Usage - -```typescript -db.limitsModule.findMany({ select: { id: true } }).execute() -db.limitsModule.findOne({ id: '', select: { id: true } }).execute() -db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() -db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.limitsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all limitsModule records - -```typescript -const items = await db.limitsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a limitsModule - -```typescript -const item = await db.limitsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', limitIncrementFunction: 'value', limitDecrementFunction: 'value', limitIncrementTrigger: 'value', limitDecrementTrigger: 'value', limitUpdateTrigger: 'value', limitCheckFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/membershipType.md b/sdk/constructive-sdk/src/public/orm/skills/membershipType.md deleted file mode 100644 index 898d85107..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/membershipType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipType - - - -ORM operations for MembershipType records - -## Usage - -```typescript -db.membershipType.findMany({ select: { id: true } }).execute() -db.membershipType.findOne({ id: '', select: { id: true } }).execute() -db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() -db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.membershipType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipType records - -```typescript -const items = await db.membershipType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a membershipType - -```typescript -const item = await db.membershipType.create({ - data: { name: 'value', description: 'value', prefix: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md b/sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md deleted file mode 100644 index 17b77bb4b..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipTypesModule - - - -ORM operations for MembershipTypesModule records - -## Usage - -```typescript -db.membershipTypesModule.findMany({ select: { id: true } }).execute() -db.membershipTypesModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.membershipTypesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipTypesModule records - -```typescript -const items = await db.membershipTypesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a membershipTypesModule - -```typescript -const item = await db.membershipTypesModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md b/sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md deleted file mode 100644 index 6851144a5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-membershipsModule - - - -ORM operations for MembershipsModule records - -## Usage - -```typescript -db.membershipsModule.findMany({ select: { id: true } }).execute() -db.membershipsModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }, select: { id: true } }).execute() -db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.membershipsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipsModule records - -```typescript -const items = await db.membershipsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a membershipsModule - -```typescript -const item = await db.membershipsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', membershipsTableId: 'value', membershipsTableName: 'value', membersTableId: 'value', membersTableName: 'value', membershipDefaultsTableId: 'value', membershipDefaultsTableName: 'value', grantsTableId: 'value', grantsTableName: 'value', actorTableId: 'value', limitsTableId: 'value', defaultLimitsTableId: 'value', permissionsTableId: 'value', defaultPermissionsTableId: 'value', sprtTableId: 'value', adminGrantsTableId: 'value', adminGrantsTableName: 'value', ownerGrantsTableId: 'value', ownerGrantsTableName: 'value', membershipType: 'value', entityTableId: 'value', entityTableOwnerId: 'value', prefix: 'value', actorMaskCheck: 'value', actorPermCheck: 'value', entityIdsByMask: 'value', entityIdsByPerm: 'value', entityIdsFunction: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md b/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md deleted file mode 100644 index 0024949c1..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-nodeTypeRegistry - - - -Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). - -## Usage - -```typescript -db.nodeTypeRegistry.findMany({ select: { id: true } }).execute() -db.nodeTypeRegistry.findOne({ name: '', select: { id: true } }).execute() -db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { id: true } }).execute() -db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { id: true } }).execute() -db.nodeTypeRegistry.delete({ where: { name: '' } }).execute() -``` - -## Examples - -### List all nodeTypeRegistry records - -```typescript -const items = await db.nodeTypeRegistry.findMany({ - select: { name: true, slug: true } -}).execute(); -``` - -### Create a nodeTypeRegistry - -```typescript -const item = await db.nodeTypeRegistry.create({ - data: { slug: 'value', category: 'value', displayName: 'value', description: 'value', parameterSchema: 'value', tags: 'value' }, - select: { name: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/object.md b/sdk/constructive-sdk/src/public/orm/skills/object.md deleted file mode 100644 index e006a0b5a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-object - - - -ORM operations for Object records - -## Usage - -```typescript -db.object.findMany({ select: { id: true } }).execute() -db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() -db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() -db.object.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all object records - -```typescript -const items = await db.object.findMany({ - select: { id: true, hashUuid: true } -}).execute(); -``` - -### Create a object - -```typescript -const item = await db.object.create({ - data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md b/sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md deleted file mode 100644 index 2ac3f962d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```typescript -db.mutation.oneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run oneTimeToken - -```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md b/sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md deleted file mode 100644 index 675b76741..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgAdminGrant - - - -ORM operations for OrgAdminGrant records - -## Usage - -```typescript -db.orgAdminGrant.findMany({ select: { id: true } }).execute() -db.orgAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgAdminGrant records - -```typescript -const items = await db.orgAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgAdminGrant - -```typescript -const item = await db.orgAdminGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md b/sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md deleted file mode 100644 index 5693e2856..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgClaimedInvite - - - -ORM operations for OrgClaimedInvite records - -## Usage - -```typescript -db.orgClaimedInvite.findMany({ select: { id: true } }).execute() -db.orgClaimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgClaimedInvite records - -```typescript -const items = await db.orgClaimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a orgClaimedInvite - -```typescript -const item = await db.orgClaimedInvite.create({ - data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgGrant.md b/sdk/constructive-sdk/src/public/orm/skills/orgGrant.md deleted file mode 100644 index ac4c4b896..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgGrant - - - -ORM operations for OrgGrant records - -## Usage - -```typescript -db.orgGrant.findMany({ select: { id: true } }).execute() -db.orgGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgGrant records - -```typescript -const items = await db.orgGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgGrant - -```typescript -const item = await db.orgGrant.create({ - data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgInvite.md b/sdk/constructive-sdk/src/public/orm/skills/orgInvite.md deleted file mode 100644 index ea7ff346d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgInvite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgInvite - - - -ORM operations for OrgInvite records - -## Usage - -```typescript -db.orgInvite.findMany({ select: { id: true } }).execute() -db.orgInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() -db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.orgInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgInvite records - -```typescript -const items = await db.orgInvite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a orgInvite - -```typescript -const item = await db.orgInvite.create({ - data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgLimit.md b/sdk/constructive-sdk/src/public/orm/skills/orgLimit.md deleted file mode 100644 index 19681fddf..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgLimit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimit - - - -ORM operations for OrgLimit records - -## Usage - -```typescript -db.orgLimit.findMany({ select: { id: true } }).execute() -db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() -db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimit records - -```typescript -const items = await db.orgLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimit - -```typescript -const item = await db.orgLimit.create({ - data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md b/sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md deleted file mode 100644 index 4a4e505bd..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgLimitDefault - - - -ORM operations for OrgLimitDefault records - -## Usage - -```typescript -db.orgLimitDefault.findMany({ select: { id: true } }).execute() -db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitDefault records - -```typescript -const items = await db.orgLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitDefault - -```typescript -const item = await db.orgLimitDefault.create({ - data: { name: 'value', max: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgMember.md b/sdk/constructive-sdk/src/public/orm/skills/orgMember.md deleted file mode 100644 index 2aadbafd3..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgMember.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMember - - - -ORM operations for OrgMember records - -## Usage - -```typescript -db.orgMember.findMany({ select: { id: true } }).execute() -db.orgMember.findOne({ id: '', select: { id: true } }).execute() -db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() -db.orgMember.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMember records - -```typescript -const items = await db.orgMember.findMany({ - select: { id: true, isAdmin: true } -}).execute(); -``` - -### Create a orgMember - -```typescript -const item = await db.orgMember.create({ - data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgMembership.md b/sdk/constructive-sdk/src/public/orm/skills/orgMembership.md deleted file mode 100644 index b98b850b2..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgMembership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembership - - - -ORM operations for OrgMembership records - -## Usage - -```typescript -db.orgMembership.findMany({ select: { id: true } }).execute() -db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembership records - -```typescript -const items = await db.orgMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembership - -```typescript -const item = await db.orgMembership.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md b/sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md deleted file mode 100644 index cd8146f14..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgMembershipDefault - - - -ORM operations for OrgMembershipDefault records - -## Usage - -```typescript -db.orgMembershipDefault.findMany({ select: { id: true } }).execute() -db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembershipDefault records - -```typescript -const items = await db.orgMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembershipDefault - -```typescript -const item = await db.orgMembershipDefault.create({ - data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md b/sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md deleted file mode 100644 index 8a490261b..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgOwnerGrant - - - -ORM operations for OrgOwnerGrant records - -## Usage - -```typescript -db.orgOwnerGrant.findMany({ select: { id: true } }).execute() -db.orgOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgOwnerGrant records - -```typescript -const items = await db.orgOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgOwnerGrant - -```typescript -const item = await db.orgOwnerGrant.create({ - data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermission.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermission.md deleted file mode 100644 index 1f18add5d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermission - - - -ORM operations for OrgPermission records - -## Usage - -```typescript -db.orgPermission.findMany({ select: { id: true } }).execute() -db.orgPermission.findOne({ id: '', select: { id: true } }).execute() -db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermission records - -```typescript -const items = await db.orgPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgPermission - -```typescript -const item = await db.orgPermission.create({ - data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md deleted file mode 100644 index 8d8e20afc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-orgPermissionDefault - - - -ORM operations for OrgPermissionDefault records - -## Usage - -```typescript -db.orgPermissionDefault.findMany({ select: { id: true } }).execute() -db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefault records - -```typescript -const items = await db.orgPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgPermissionDefault - -```typescript -const item = await db.orgPermissionDefault.create({ - data: { permissions: 'value', entityId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md deleted file mode 100644 index 437f5c98b..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetByMask - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md deleted file mode 100644 index c626883ad..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```typescript -db.query.orgPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMask - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md deleted file mode 100644 index f67397dcc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md deleted file mode 100644 index a67198a29..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md b/sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md deleted file mode 100644 index 4b11e8d55..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-permissionsModule - - - -ORM operations for PermissionsModule records - -## Usage - -```typescript -db.permissionsModule.findMany({ select: { id: true } }).execute() -db.permissionsModule.findOne({ id: '', select: { id: true } }).execute() -db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute() -db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.permissionsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all permissionsModule records - -```typescript -const items = await db.permissionsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a permissionsModule - -```typescript -const item = await db.permissionsModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', prefix: 'value', getPaddedMask: 'value', getMask: 'value', getByMask: 'value', getMaskByName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md b/sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md deleted file mode 100644 index 2a77480fa..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-phoneNumber - - - -ORM operations for PhoneNumber records - -## Usage - -```typescript -db.phoneNumber.findMany({ select: { id: true } }).execute() -db.phoneNumber.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() -db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.phoneNumber.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumber records - -```typescript -const items = await db.phoneNumber.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a phoneNumber - -```typescript -const item = await db.phoneNumber.create({ - data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md b/sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md deleted file mode 100644 index 309f0bc88..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-phoneNumbersModule - - - -ORM operations for PhoneNumbersModule records - -## Usage - -```typescript -db.phoneNumbersModule.findMany({ select: { id: true } }).execute() -db.phoneNumbersModule.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.phoneNumbersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumbersModule records - -```typescript -const items = await db.phoneNumbersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a phoneNumbersModule - -```typescript -const item = await db.phoneNumbersModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/policy.md b/sdk/constructive-sdk/src/public/orm/skills/policy.md deleted file mode 100644 index c31b2d4dd..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/policy.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-policy - - - -ORM operations for Policy records - -## Usage - -```typescript -db.policy.findMany({ select: { id: true } }).execute() -db.policy.findOne({ id: '', select: { id: true } }).execute() -db.policy.create({ data: { databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.policy.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all policy records - -```typescript -const items = await db.policy.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a policy - -```typescript -const item = await db.policy.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', roleName: 'value', privilege: 'value', permissive: 'value', disabled: 'value', policyType: 'value', data: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md deleted file mode 100644 index 65e798742..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-primaryKeyConstraint - - - -ORM operations for PrimaryKeyConstraint records - -## Usage - -```typescript -db.primaryKeyConstraint.findMany({ select: { id: true } }).execute() -db.primaryKeyConstraint.findOne({ id: '', select: { id: true } }).execute() -db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.primaryKeyConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all primaryKeyConstraint records - -```typescript -const items = await db.primaryKeyConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a primaryKeyConstraint - -```typescript -const item = await db.primaryKeyConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/procedure.md b/sdk/constructive-sdk/src/public/orm/skills/procedure.md deleted file mode 100644 index 838b474d3..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/procedure.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-procedure - - - -ORM operations for Procedure records - -## Usage - -```typescript -db.procedure.findMany({ select: { id: true } }).execute() -db.procedure.findOne({ id: '', select: { id: true } }).execute() -db.procedure.create({ data: { databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.procedure.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.procedure.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all procedure records - -```typescript -const items = await db.procedure.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a procedure - -```typescript -const item = await db.procedure.create({ - data: { databaseId: 'value', name: 'value', argnames: 'value', argtypes: 'value', argdefaults: 'value', langName: 'value', definition: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/profilesModule.md b/sdk/constructive-sdk/src/public/orm/skills/profilesModule.md deleted file mode 100644 index b6a9caa1a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/profilesModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-profilesModule - - - -ORM operations for ProfilesModule records - -## Usage - -```typescript -db.profilesModule.findMany({ select: { id: true } }).execute() -db.profilesModule.findOne({ id: '', select: { id: true } }).execute() -db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() -db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.profilesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all profilesModule records - -```typescript -const items = await db.profilesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a profilesModule - -```typescript -const item = await db.profilesModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', profilePermissionsTableId: 'value', profilePermissionsTableName: 'value', profileGrantsTableId: 'value', profileGrantsTableName: 'value', profileDefinitionGrantsTableId: 'value', profileDefinitionGrantsTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', permissionsTableId: 'value', membershipsTableId: 'value', prefix: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md b/sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md deleted file mode 100644 index 447ffb844..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-provisionDatabaseWithUser - - - -Execute the provisionDatabaseWithUser mutation - -## Usage - -```typescript -db.mutation.provisionDatabaseWithUser({ input: '' }).execute() -``` - -## Examples - -### Run provisionDatabaseWithUser - -```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/ref.md b/sdk/constructive-sdk/src/public/orm/skills/ref.md deleted file mode 100644 index 3165ec41e..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -db.ref.findMany({ select: { id: true } }).execute() -db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() -db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.ref.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all ref records - -```typescript -const items = await db.ref.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a ref - -```typescript -const item = await db.ref.create({ - data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md deleted file mode 100644 index 116c41c0a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```typescript -db.mutation.removeNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run removeNodeAtPath - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/resetPassword.md b/sdk/constructive-sdk/src/public/orm/skills/resetPassword.md deleted file mode 100644 index fe676ada5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/resetPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-resetPassword - - - -Execute the resetPassword mutation - -## Usage - -```typescript -db.mutation.resetPassword({ input: '' }).execute() -``` - -## Examples - -### Run resetPassword - -```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/revParse.md b/sdk/constructive-sdk/src/public/orm/skills/revParse.md deleted file mode 100644 index 0a1830ff8..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/revParse.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-revParse - - - -Execute the revParse query - -## Usage - -```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() -``` - -## Examples - -### Run revParse - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/rlsModule.md b/sdk/constructive-sdk/src/public/orm/skills/rlsModule.md deleted file mode 100644 index 2d97f0fe6..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/rlsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-rlsModule - - - -ORM operations for RlsModule records - -## Usage - -```typescript -db.rlsModule.findMany({ select: { id: true } }).execute() -db.rlsModule.findOne({ id: '', select: { id: true } }).execute() -db.rlsModule.create({ data: { databaseId: '', apiId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute() -db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.rlsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all rlsModule records - -```typescript -const items = await db.rlsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a rlsModule - -```typescript -const item = await db.rlsModule.create({ - data: { databaseId: 'value', apiId: 'value', schemaId: 'value', privateSchemaId: 'value', sessionCredentialsTableId: 'value', sessionsTableId: 'value', usersTableId: 'value', authenticate: 'value', authenticateStrict: 'value', currentRole: 'value', currentRoleId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/roleType.md b/sdk/constructive-sdk/src/public/orm/skills/roleType.md deleted file mode 100644 index 261296f03..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/roleType.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-roleType - - - -ORM operations for RoleType records - -## Usage - -```typescript -db.roleType.findMany({ select: { id: true } }).execute() -db.roleType.findOne({ id: '', select: { id: true } }).execute() -db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() -db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.roleType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all roleType records - -```typescript -const items = await db.roleType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a roleType - -```typescript -const item = await db.roleType.create({ - data: { name: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/schema.md b/sdk/constructive-sdk/src/public/orm/skills/schema.md deleted file mode 100644 index d02fb12ca..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/schema.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-schema - - - -ORM operations for Schema records - -## Usage - -```typescript -db.schema.findMany({ select: { id: true } }).execute() -db.schema.findOne({ id: '', select: { id: true } }).execute() -db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute() -db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.schema.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all schema records - -```typescript -const items = await db.schema.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a schema - -```typescript -const item = await db.schema.create({ - data: { databaseId: 'value', name: 'value', schemaName: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value', isPublic: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md b/sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md deleted file mode 100644 index 296f97ae4..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-schemaGrant - - - -ORM operations for SchemaGrant records - -## Usage - -```typescript -db.schemaGrant.findMany({ select: { id: true } }).execute() -db.schemaGrant.findOne({ id: '', select: { id: true } }).execute() -db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute() -db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.schemaGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all schemaGrant records - -```typescript -const items = await db.schemaGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a schemaGrant - -```typescript -const item = await db.schemaGrant.create({ - data: { databaseId: 'value', schemaId: 'value', granteeName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/secretsModule.md b/sdk/constructive-sdk/src/public/orm/skills/secretsModule.md deleted file mode 100644 index e2e1a03a7..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/secretsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-secretsModule - - - -ORM operations for SecretsModule records - -## Usage - -```typescript -db.secretsModule.findMany({ select: { id: true } }).execute() -db.secretsModule.findOne({ id: '', select: { id: true } }).execute() -db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.secretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all secretsModule records - -```typescript -const items = await db.secretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a secretsModule - -```typescript -const item = await db.secretsModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md b/sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md deleted file mode 100644 index aaf0470b5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendAccountDeletionEmail - - - -Execute the sendAccountDeletionEmail mutation - -## Usage - -```typescript -db.mutation.sendAccountDeletionEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendAccountDeletionEmail - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md b/sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md deleted file mode 100644 index 2f0cfea9a..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-sendVerificationEmail - - - -Execute the sendVerificationEmail mutation - -## Usage - -```typescript -db.mutation.sendVerificationEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendVerificationEmail - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md b/sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md deleted file mode 100644 index df8c99266..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-sessionsModule - - - -ORM operations for SessionsModule records - -## Usage - -```typescript -db.sessionsModule.findMany({ select: { id: true } }).execute() -db.sessionsModule.findOne({ id: '', select: { id: true } }).execute() -db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute() -db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.sessionsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sessionsModule records - -```typescript -const items = await db.sessionsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a sessionsModule - -```typescript -const item = await db.sessionsModule.create({ - data: { databaseId: 'value', schemaId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', authSettingsTableId: 'value', usersTableId: 'value', sessionsDefaultExpiration: 'value', sessionsTable: 'value', sessionCredentialsTable: 'value', authSettingsTable: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md b/sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md deleted file mode 100644 index a5fa6e0d9..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setAndCommit - - - -Execute the setAndCommit mutation - -## Usage - -```typescript -db.mutation.setAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setAndCommit - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md deleted file mode 100644 index 7f09dab97..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setDataAtPath - - - -Execute the setDataAtPath mutation - -## Usage - -```typescript -db.mutation.setDataAtPath({ input: '' }).execute() -``` - -## Examples - -### Run setDataAtPath - -```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md b/sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md deleted file mode 100644 index 7a221b219..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setFieldOrder - - - -Execute the setFieldOrder mutation - -## Usage - -```typescript -db.mutation.setFieldOrder({ input: '' }).execute() -``` - -## Examples - -### Run setFieldOrder - -```typescript -const result = await db.mutation.setFieldOrder({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setPassword.md b/sdk/constructive-sdk/src/public/orm/skills/setPassword.md deleted file mode 100644 index bbf15b68d..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPassword - - - -Execute the setPassword mutation - -## Usage - -```typescript -db.mutation.setPassword({ input: '' }).execute() -``` - -## Examples - -### Run setPassword - -```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md b/sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md deleted file mode 100644 index 7248c0e1c..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```typescript -db.mutation.setPropsAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setPropsAndCommit - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signIn.md b/sdk/constructive-sdk/src/public/orm/skills/signIn.md deleted file mode 100644 index d49334136..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/signIn.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signIn - - - -Execute the signIn mutation - -## Usage - -```typescript -db.mutation.signIn({ input: '' }).execute() -``` - -## Examples - -### Run signIn - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md b/sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md deleted file mode 100644 index 9a87fd088..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```typescript -db.mutation.signInOneTimeToken({ input: '' }).execute() -``` - -## Examples - -### Run signInOneTimeToken - -```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signOut.md b/sdk/constructive-sdk/src/public/orm/skills/signOut.md deleted file mode 100644 index 7ada67374..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/signOut.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signOut - - - -Execute the signOut mutation - -## Usage - -```typescript -db.mutation.signOut({ input: '' }).execute() -``` - -## Examples - -### Run signOut - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signUp.md b/sdk/constructive-sdk/src/public/orm/skills/signUp.md deleted file mode 100644 index 8c999d2b8..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/signUp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-signUp - - - -Execute the signUp mutation - -## Usage - -```typescript -db.mutation.signUp({ input: '' }).execute() -``` - -## Examples - -### Run signUp - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/site.md b/sdk/constructive-sdk/src/public/orm/skills/site.md deleted file mode 100644 index 93aa35cdd..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/site.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-site - - - -ORM operations for Site records - -## Usage - -```typescript -db.site.findMany({ select: { id: true } }).execute() -db.site.findOne({ id: '', select: { id: true } }).execute() -db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute() -db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.site.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all site records - -```typescript -const items = await db.site.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a site - -```typescript -const item = await db.site.create({ - data: { databaseId: 'value', title: 'value', description: 'value', ogImage: 'value', favicon: 'value', appleTouchIcon: 'value', logo: 'value', dbname: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md b/sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md deleted file mode 100644 index b1aaf8017..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-siteMetadatum - - - -ORM operations for SiteMetadatum records - -## Usage - -```typescript -db.siteMetadatum.findMany({ select: { id: true } }).execute() -db.siteMetadatum.findOne({ id: '', select: { id: true } }).execute() -db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute() -db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteMetadatum.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteMetadatum records - -```typescript -const items = await db.siteMetadatum.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteMetadatum - -```typescript -const item = await db.siteMetadatum.create({ - data: { databaseId: 'value', siteId: 'value', title: 'value', description: 'value', ogImage: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/siteModule.md b/sdk/constructive-sdk/src/public/orm/skills/siteModule.md deleted file mode 100644 index 94a650431..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/siteModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-siteModule - - - -ORM operations for SiteModule records - -## Usage - -```typescript -db.siteModule.findMany({ select: { id: true } }).execute() -db.siteModule.findOne({ id: '', select: { id: true } }).execute() -db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute() -db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteModule records - -```typescript -const items = await db.siteModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteModule - -```typescript -const item = await db.siteModule.create({ - data: { databaseId: 'value', siteId: 'value', name: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/siteTheme.md b/sdk/constructive-sdk/src/public/orm/skills/siteTheme.md deleted file mode 100644 index 4b58181c8..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/siteTheme.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-siteTheme - - - -ORM operations for SiteTheme records - -## Usage - -```typescript -db.siteTheme.findMany({ select: { id: true } }).execute() -db.siteTheme.findOne({ id: '', select: { id: true } }).execute() -db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute() -db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteTheme.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteTheme records - -```typescript -const items = await db.siteTheme.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteTheme - -```typescript -const item = await db.siteTheme.create({ - data: { databaseId: 'value', siteId: 'value', theme: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md b/sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md deleted file mode 100644 index f02f86fd5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-sqlMigration - - - -ORM operations for SqlMigration records - -## Usage - -```typescript -db.sqlMigration.findMany({ select: { id: true } }).execute() -db.sqlMigration.findOne({ id: '', select: { id: true } }).execute() -db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() -db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.sqlMigration.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sqlMigration records - -```typescript -const items = await db.sqlMigration.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a sqlMigration - -```typescript -const item = await db.sqlMigration.create({ - data: { name: 'value', databaseId: 'value', deploy: 'value', deps: 'value', payload: 'value', content: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md b/sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md deleted file mode 100644 index bce806fd4..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```typescript -db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() -``` - -## Examples - -### Run stepsAchieved - -```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md b/sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md deleted file mode 100644 index 8ea0ad638..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run stepsRequired - -```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/store.md b/sdk/constructive-sdk/src/public/orm/skills/store.md deleted file mode 100644 index 1a9bfc8a5..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -db.store.findMany({ select: { id: true } }).execute() -db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() -db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.store.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all store records - -```typescript -const items = await db.store.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a store - -```typescript -const item = await db.store.create({ - data: { name: 'value', databaseId: 'value', hash: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md b/sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md deleted file mode 100644 index ae946fe75..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```typescript -db.mutation.submitInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitInviteCode - -```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md b/sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md deleted file mode 100644 index 0ceff0ee1..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-submitOrgInviteCode - - - -Execute the submitOrgInviteCode mutation - -## Usage - -```typescript -db.mutation.submitOrgInviteCode({ input: '' }).execute() -``` - -## Examples - -### Run submitOrgInviteCode - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/table.md b/sdk/constructive-sdk/src/public/orm/skills/table.md deleted file mode 100644 index eae9607ea..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/table.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-table - - - -ORM operations for Table records - -## Usage - -```typescript -db.table.findMany({ select: { id: true } }).execute() -db.table.findOne({ id: '', select: { id: true } }).execute() -db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }, select: { id: true } }).execute() -db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.table.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all table records - -```typescript -const items = await db.table.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a table - -```typescript -const item = await db.table.create({ - data: { databaseId: 'value', schemaId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', useRls: 'value', timestamps: 'value', peoplestamps: 'value', pluralName: 'value', singularName: 'value', tags: 'value', inheritsId: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/tableGrant.md b/sdk/constructive-sdk/src/public/orm/skills/tableGrant.md deleted file mode 100644 index e31fcb8ff..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/tableGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-tableGrant - - - -ORM operations for TableGrant records - -## Usage - -```typescript -db.tableGrant.findMany({ select: { id: true } }).execute() -db.tableGrant.findOne({ id: '', select: { id: true } }).execute() -db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute() -db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableGrant records - -```typescript -const items = await db.tableGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableGrant - -```typescript -const item = await db.tableGrant.create({ - data: { databaseId: 'value', tableId: 'value', privilege: 'value', roleName: 'value', fieldIds: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/tableModule.md b/sdk/constructive-sdk/src/public/orm/skills/tableModule.md deleted file mode 100644 index 38fa64d39..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/tableModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-tableModule - - - -ORM operations for TableModule records - -## Usage - -```typescript -db.tableModule.findMany({ select: { id: true } }).execute() -db.tableModule.findOne({ id: '', select: { id: true } }).execute() -db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute() -db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableModule records - -```typescript -const items = await db.tableModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableModule - -```typescript -const item = await db.tableModule.create({ - data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', nodeType: 'value', data: 'value', fields: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md b/sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md deleted file mode 100644 index f829a0de9..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-tableTemplateModule - - - -ORM operations for TableTemplateModule records - -## Usage - -```typescript -db.tableTemplateModule.findMany({ select: { id: true } }).execute() -db.tableTemplateModule.findOne({ id: '', select: { id: true } }).execute() -db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute() -db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableTemplateModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableTemplateModule records - -```typescript -const items = await db.tableTemplateModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableTemplateModule - -```typescript -const item = await db.tableTemplateModule.create({ - data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', nodeType: 'value', data: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/trigger.md b/sdk/constructive-sdk/src/public/orm/skills/trigger.md deleted file mode 100644 index ef4d73ecc..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/trigger.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-trigger - - - -ORM operations for Trigger records - -## Usage - -```typescript -db.trigger.findMany({ select: { id: true } }).execute() -db.trigger.findOne({ id: '', select: { id: true } }).execute() -db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.trigger.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all trigger records - -```typescript -const items = await db.trigger.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a trigger - -```typescript -const item = await db.trigger.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', event: 'value', functionName: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md b/sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md deleted file mode 100644 index 739e3f267..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-triggerFunction - - - -ORM operations for TriggerFunction records - -## Usage - -```typescript -db.triggerFunction.findMany({ select: { id: true } }).execute() -db.triggerFunction.findOne({ id: '', select: { id: true } }).execute() -db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute() -db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.triggerFunction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all triggerFunction records - -```typescript -const items = await db.triggerFunction.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a triggerFunction - -```typescript -const item = await db.triggerFunction.create({ - data: { databaseId: 'value', name: 'value', code: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md deleted file mode 100644 index 8724c6983..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-uniqueConstraint - - - -ORM operations for UniqueConstraint records - -## Usage - -```typescript -db.uniqueConstraint.findMany({ select: { id: true } }).execute() -db.uniqueConstraint.findOne({ id: '', select: { id: true } }).execute() -db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.uniqueConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all uniqueConstraint records - -```typescript -const items = await db.uniqueConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a uniqueConstraint - -```typescript -const item = await db.uniqueConstraint.create({ - data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md deleted file mode 100644 index d1a7bbf95..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```typescript -db.mutation.updateNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run updateNodeAtPath - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/user.md b/sdk/constructive-sdk/src/public/orm/skills/user.md deleted file mode 100644 index e80b99583..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/user.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-user - - - -ORM operations for User records - -## Usage - -```typescript -db.user.findMany({ select: { id: true } }).execute() -db.user.findOne({ id: '', select: { id: true } }).execute() -db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() -db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() -db.user.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all user records - -```typescript -const items = await db.user.findMany({ - select: { id: true, username: true } -}).execute(); -``` - -### Create a user - -```typescript -const item = await db.user.create({ - data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md b/sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md deleted file mode 100644 index 4b022d732..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-userAuthModule - - - -ORM operations for UserAuthModule records - -## Usage - -```typescript -db.userAuthModule.findMany({ select: { id: true } }).execute() -db.userAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }, select: { id: true } }).execute() -db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.userAuthModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all userAuthModule records - -```typescript -const items = await db.userAuthModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a userAuthModule - -```typescript -const item = await db.userAuthModule.create({ - data: { databaseId: 'value', schemaId: 'value', emailsTableId: 'value', usersTableId: 'value', secretsTableId: 'value', encryptedTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', auditsTableId: 'value', auditsTableName: 'value', signInFunction: 'value', signUpFunction: 'value', signOutFunction: 'value', setPasswordFunction: 'value', resetPasswordFunction: 'value', forgotPasswordFunction: 'value', sendVerificationEmailFunction: 'value', verifyEmailFunction: 'value', verifyPasswordFunction: 'value', checkPasswordFunction: 'value', sendAccountDeletionEmailFunction: 'value', deleteAccountFunction: 'value', signInOneTimeTokenFunction: 'value', oneTimeTokenFunction: 'value', extendTokenExpires: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/usersModule.md b/sdk/constructive-sdk/src/public/orm/skills/usersModule.md deleted file mode 100644 index 320d49201..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/usersModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-usersModule - - - -ORM operations for UsersModule records - -## Usage - -```typescript -db.usersModule.findMany({ select: { id: true } }).execute() -db.usersModule.findOne({ id: '', select: { id: true } }).execute() -db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute() -db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.usersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all usersModule records - -```typescript -const items = await db.usersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a usersModule - -```typescript -const item = await db.usersModule.create({ - data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value', typeTableId: 'value', typeTableName: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/uuidModule.md b/sdk/constructive-sdk/src/public/orm/skills/uuidModule.md deleted file mode 100644 index 3f2a19a32..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/uuidModule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-uuidModule - - - -ORM operations for UuidModule records - -## Usage - -```typescript -db.uuidModule.findMany({ select: { id: true } }).execute() -db.uuidModule.findOne({ id: '', select: { id: true } }).execute() -db.uuidModule.create({ data: { databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '' }, select: { id: true } }).execute() -db.uuidModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.uuidModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all uuidModule records - -```typescript -const items = await db.uuidModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a uuidModule - -```typescript -const item = await db.uuidModule.create({ - data: { databaseId: 'value', schemaId: 'value', uuidFunction: 'value', uuidSeed: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md b/sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md deleted file mode 100644 index c9a3f4ac1..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyEmail - - - -Execute the verifyEmail mutation - -## Usage - -```typescript -db.mutation.verifyEmail({ input: '' }).execute() -``` - -## Examples - -### Run verifyEmail - -```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md b/sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md deleted file mode 100644 index 10b75c518..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyPassword - - - -Execute the verifyPassword mutation - -## Usage - -```typescript -db.mutation.verifyPassword({ input: '' }).execute() -``` - -## Examples - -### Run verifyPassword - -```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md b/sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md deleted file mode 100644 index 5541069f3..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md +++ /dev/null @@ -1,19 +0,0 @@ -# orm-verifyTotp - - - -Execute the verifyTotp mutation - -## Usage - -```typescript -db.mutation.verifyTotp({ input: '' }).execute() -``` - -## Examples - -### Run verifyTotp - -```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/view.md b/sdk/constructive-sdk/src/public/orm/skills/view.md deleted file mode 100644 index c2db2a347..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/view.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-view - - - -ORM operations for View records - -## Usage - -```typescript -db.view.findMany({ select: { id: true } }).execute() -db.view.findOne({ id: '', select: { id: true } }).execute() -db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.view.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all view records - -```typescript -const items = await db.view.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a view - -```typescript -const item = await db.view.create({ - data: { databaseId: 'value', schemaId: 'value', name: 'value', tableId: 'value', viewType: 'value', data: 'value', filterType: 'value', filterData: 'value', securityInvoker: 'value', isReadOnly: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewGrant.md b/sdk/constructive-sdk/src/public/orm/skills/viewGrant.md deleted file mode 100644 index 062399792..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/viewGrant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-viewGrant - - - -ORM operations for ViewGrant records - -## Usage - -```typescript -db.viewGrant.findMany({ select: { id: true } }).execute() -db.viewGrant.findOne({ id: '', select: { id: true } }).execute() -db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute() -db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.viewGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewGrant records - -```typescript -const items = await db.viewGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a viewGrant - -```typescript -const item = await db.viewGrant.create({ - data: { databaseId: 'value', viewId: 'value', roleName: 'value', privilege: 'value', withGrantOption: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewRule.md b/sdk/constructive-sdk/src/public/orm/skills/viewRule.md deleted file mode 100644 index e6bd8f1ab..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/viewRule.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-viewRule - - - -DO INSTEAD rules for views (e.g., read-only enforcement) - -## Usage - -```typescript -db.viewRule.findMany({ select: { id: true } }).execute() -db.viewRule.findOne({ id: '', select: { id: true } }).execute() -db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute() -db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.viewRule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewRule records - -```typescript -const items = await db.viewRule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a viewRule - -```typescript -const item = await db.viewRule.create({ - data: { databaseId: 'value', viewId: 'value', name: 'value', event: 'value', action: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewTable.md b/sdk/constructive-sdk/src/public/orm/skills/viewTable.md deleted file mode 100644 index d3adc9f0e..000000000 --- a/sdk/constructive-sdk/src/public/orm/skills/viewTable.md +++ /dev/null @@ -1,34 +0,0 @@ -# orm-viewTable - - - -Junction table linking views to their joined tables for referential integrity - -## Usage - -```typescript -db.viewTable.findMany({ select: { id: true } }).execute() -db.viewTable.findOne({ id: '', select: { id: true } }).execute() -db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute() -db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute() -db.viewTable.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewTable records - -```typescript -const items = await db.viewTable.findMany({ - select: { id: true, viewId: true } -}).execute(); -``` - -### Create a viewTable - -```typescript -const item = await db.viewTable.create({ - data: { viewId: 'value', tableId: 'value', joinOrder: 'value' }, - select: { id: true } -}).execute(); -``` diff --git a/skills/hooks-admin/SKILL.md b/skills/hooks-admin/SKILL.md new file mode 100644 index 000000000..a41799d36 --- /dev/null +++ b/skills/hooks-admin/SKILL.md @@ -0,0 +1,84 @@ +--- +name: hooks-admin +description: React Query hooks for the admin API — provides typed query and mutation hooks for 32 tables and 13 custom operations +--- + +# hooks-admin + + + +React Query hooks for the admin API — provides typed query and mutation hooks for 32 tables and 13 custom operations + +## Usage + +```typescript +// Import hooks +import { useOrgGetManagersQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [org-get-managers-record](references/org-get-managers-record.md) +- [org-get-subordinates-record](references/org-get-subordinates-record.md) +- [app-permission](references/app-permission.md) +- [org-permission](references/org-permission.md) +- [app-level-requirement](references/app-level-requirement.md) +- [org-member](references/org-member.md) +- [app-permission-default](references/app-permission-default.md) +- [org-permission-default](references/org-permission-default.md) +- [app-admin-grant](references/app-admin-grant.md) +- [app-owner-grant](references/app-owner-grant.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-owner-grant](references/org-owner-grant.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [membership-type](references/membership-type.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-limit](references/app-limit.md) +- [app-achievement](references/app-achievement.md) +- [app-step](references/app-step.md) +- [claimed-invite](references/claimed-invite.md) +- [app-grant](references/app-grant.md) +- [app-membership-default](references/app-membership-default.md) +- [org-limit](references/org-limit.md) +- [org-claimed-invite](references/org-claimed-invite.md) +- [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) +- [org-membership-default](references/org-membership-default.md) +- [invite](references/invite.md) +- [app-level](references/app-level.md) +- [app-membership](references/app-membership.md) +- [org-membership](references/org-membership.md) +- [org-invite](references/org-invite.md) +- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) +- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) +- [org-is-manager-of](references/org-is-manager-of.md) +- [steps-achieved](references/steps-achieved.md) +- [app-permissions-get-mask](references/app-permissions-get-mask.md) +- [org-permissions-get-mask](references/org-permissions-get-mask.md) +- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) +- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) +- [steps-required](references/steps-required.md) +- [submit-invite-code](references/submit-invite-code.md) +- [submit-org-invite-code](references/submit-org-invite-code.md) diff --git a/skills/hooks-admin/references/app-achievement.md b/skills/hooks-admin/references/app-achievement.md new file mode 100644 index 000000000..3a0751437 --- /dev/null +++ b/skills/hooks-admin/references/app-achievement.md @@ -0,0 +1,34 @@ +# appAchievement + + + +Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually + +## Usage + +```typescript +useAppAchievementsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) +useAppAchievementQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) +useCreateAppAchievementMutation({ selection: { fields: { id: true } } }) +useUpdateAppAchievementMutation({ selection: { fields: { id: true } } }) +useDeleteAppAchievementMutation({}) +``` + +## Examples + +### List all appAchievements + +```typescript +const { data, isLoading } = useAppAchievementsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appAchievement + +```typescript +const { mutate } = useCreateAppAchievementMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', name: '', count: '' }); +``` diff --git a/skills/hooks-admin/references/app-admin-grant.md b/skills/hooks-admin/references/app-admin-grant.md new file mode 100644 index 000000000..dbfaacfe8 --- /dev/null +++ b/skills/hooks-admin/references/app-admin-grant.md @@ -0,0 +1,34 @@ +# appAdminGrant + + + +Records of admin role grants and revocations between members + +## Usage + +```typescript +useAppAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useAppAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateAppAdminGrantMutation({ selection: { fields: { id: true } } }) +useUpdateAppAdminGrantMutation({ selection: { fields: { id: true } } }) +useDeleteAppAdminGrantMutation({}) +``` + +## Examples + +### List all appAdminGrants + +```typescript +const { data, isLoading } = useAppAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appAdminGrant + +```typescript +const { mutate } = useCreateAppAdminGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isGrant: '', actorId: '', grantorId: '' }); +``` diff --git a/skills/hooks-admin/references/app-grant.md b/skills/hooks-admin/references/app-grant.md new file mode 100644 index 000000000..38cd132ec --- /dev/null +++ b/skills/hooks-admin/references/app-grant.md @@ -0,0 +1,34 @@ +# appGrant + + + +Records of individual permission grants and revocations for members via bitmask + +## Usage + +```typescript +useAppGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useAppGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateAppGrantMutation({ selection: { fields: { id: true } } }) +useUpdateAppGrantMutation({ selection: { fields: { id: true } } }) +useDeleteAppGrantMutation({}) +``` + +## Examples + +### List all appGrants + +```typescript +const { data, isLoading } = useAppGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appGrant + +```typescript +const { mutate } = useCreateAppGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); +``` diff --git a/skills/hooks-admin/references/app-level-requirement.md b/skills/hooks-admin/references/app-level-requirement.md new file mode 100644 index 000000000..876f64838 --- /dev/null +++ b/skills/hooks-admin/references/app-level-requirement.md @@ -0,0 +1,34 @@ +# appLevelRequirement + + + +Defines the specific requirements that must be met to achieve a level + +## Usage + +```typescript +useAppLevelRequirementsQuery({ selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) +useAppLevelRequirementQuery({ id: '', selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) +useCreateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) +useUpdateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) +useDeleteAppLevelRequirementMutation({}) +``` + +## Examples + +### List all appLevelRequirements + +```typescript +const { data, isLoading } = useAppLevelRequirementsQuery({ + selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appLevelRequirement + +```typescript +const { mutate } = useCreateAppLevelRequirementMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', level: '', description: '', requiredCount: '', priority: '' }); +``` diff --git a/skills/hooks-admin/references/app-level.md b/skills/hooks-admin/references/app-level.md new file mode 100644 index 000000000..eb2989219 --- /dev/null +++ b/skills/hooks-admin/references/app-level.md @@ -0,0 +1,34 @@ +# appLevel + + + +Defines available levels that users can achieve by completing requirements + +## Usage + +```typescript +useAppLevelsQuery({ selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) +useAppLevelQuery({ id: '', selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) +useCreateAppLevelMutation({ selection: { fields: { id: true } } }) +useUpdateAppLevelMutation({ selection: { fields: { id: true } } }) +useDeleteAppLevelMutation({}) +``` + +## Examples + +### List all appLevels + +```typescript +const { data, isLoading } = useAppLevelsQuery({ + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appLevel + +```typescript +const { mutate } = useCreateAppLevelMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', description: '', image: '', ownerId: '' }); +``` diff --git a/skills/hooks-admin/references/app-limit-default.md b/skills/hooks-admin/references/app-limit-default.md new file mode 100644 index 000000000..dc0a272af --- /dev/null +++ b/skills/hooks-admin/references/app-limit-default.md @@ -0,0 +1,34 @@ +# appLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) +useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitDefaultMutation({}) +``` + +## Examples + +### List all appLimitDefaults + +```typescript +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); +``` + +### Create a appLimitDefault + +```typescript +const { mutate } = useCreateAppLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', max: '' }); +``` diff --git a/skills/hooks-admin/references/app-limit.md b/skills/hooks-admin/references/app-limit.md new file mode 100644 index 000000000..17d5b20ed --- /dev/null +++ b/skills/hooks-admin/references/app-limit.md @@ -0,0 +1,34 @@ +# appLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) +useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) +useCreateAppLimitMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitMutation({}) +``` + +## Examples + +### List all appLimits + +```typescript +const { data, isLoading } = useAppLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, +}); +``` + +### Create a appLimit + +```typescript +const { mutate } = useCreateAppLimitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', num: '', max: '' }); +``` diff --git a/skills/hooks-admin/references/app-membership-default.md b/skills/hooks-admin/references/app-membership-default.md new file mode 100644 index 000000000..49de40fe1 --- /dev/null +++ b/skills/hooks-admin/references/app-membership-default.md @@ -0,0 +1,34 @@ +# appMembershipDefault + + + +Default membership settings per entity, controlling initial approval and verification state for new members + +## Usage + +```typescript +useAppMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) +useAppMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) +useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteAppMembershipDefaultMutation({}) +``` + +## Examples + +### List all appMembershipDefaults + +```typescript +const { data, isLoading } = useAppMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +}); +``` + +### Create a appMembershipDefault + +```typescript +const { mutate } = useCreateAppMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +``` diff --git a/skills/hooks-admin/references/app-membership.md b/skills/hooks-admin/references/app-membership.md new file mode 100644 index 000000000..f0f2b9e9f --- /dev/null +++ b/skills/hooks-admin/references/app-membership.md @@ -0,0 +1,34 @@ +# appMembership + + + +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + +## Usage + +```typescript +useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) +useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) +useDeleteAppMembershipMutation({}) +``` + +## Examples + +### List all appMemberships + +```typescript +const { data, isLoading } = useAppMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, +}); +``` + +### Create a appMembership + +```typescript +const { mutate } = useCreateAppMembershipMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +``` diff --git a/skills/hooks-admin/references/app-owner-grant.md b/skills/hooks-admin/references/app-owner-grant.md new file mode 100644 index 000000000..4ffbb08e3 --- /dev/null +++ b/skills/hooks-admin/references/app-owner-grant.md @@ -0,0 +1,34 @@ +# appOwnerGrant + + + +Records of ownership transfers and grants between members + +## Usage + +```typescript +useAppOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useAppOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) +useUpdateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) +useDeleteAppOwnerGrantMutation({}) +``` + +## Examples + +### List all appOwnerGrants + +```typescript +const { data, isLoading } = useAppOwnerGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appOwnerGrant + +```typescript +const { mutate } = useCreateAppOwnerGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isGrant: '', actorId: '', grantorId: '' }); +``` diff --git a/skills/hooks-admin/references/app-permission-default.md b/skills/hooks-admin/references/app-permission-default.md new file mode 100644 index 000000000..b4fa77c76 --- /dev/null +++ b/skills/hooks-admin/references/app-permission-default.md @@ -0,0 +1,34 @@ +# appPermissionDefault + + + +Stores the default permission bitmask assigned to new members upon joining + +## Usage + +```typescript +useAppPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true } } }) +useAppPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true } } }) +useCreateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteAppPermissionDefaultMutation({}) +``` + +## Examples + +### List all appPermissionDefaults + +```typescript +const { data, isLoading } = useAppPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true } }, +}); +``` + +### Create a appPermissionDefault + +```typescript +const { mutate } = useCreateAppPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissions: '' }); +``` diff --git a/skills/hooks-admin/references/app-permission.md b/skills/hooks-admin/references/app-permission.md new file mode 100644 index 000000000..3d015a2bc --- /dev/null +++ b/skills/hooks-admin/references/app-permission.md @@ -0,0 +1,34 @@ +# appPermission + + + +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + +## Usage + +```typescript +useAppPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) +useAppPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) +useCreateAppPermissionMutation({ selection: { fields: { id: true } } }) +useUpdateAppPermissionMutation({ selection: { fields: { id: true } } }) +useDeleteAppPermissionMutation({}) +``` + +## Examples + +### List all appPermissions + +```typescript +const { data, isLoading } = useAppPermissionsQuery({ + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); +``` + +### Create a appPermission + +```typescript +const { mutate } = useCreateAppPermissionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', bitnum: '', bitstr: '', description: '' }); +``` diff --git a/skills/hooks-admin/references/app-permissions-get-by-mask.md b/skills/hooks-admin/references/app-permissions-get-by-mask.md new file mode 100644 index 000000000..36b60a157 --- /dev/null +++ b/skills/hooks-admin/references/app-permissions-get-by-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetByMask + + + +Reads and enables pagination through a set of `AppPermission`. + +## Usage + +```typescript +useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useAppPermissionsGetByMaskQuery + +```typescript +const { data, isLoading } = useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-admin/references/app-permissions-get-mask-by-names.md b/skills/hooks-admin/references/app-permissions-get-mask-by-names.md new file mode 100644 index 000000000..d7ae1ad22 --- /dev/null +++ b/skills/hooks-admin/references/app-permissions-get-mask-by-names.md @@ -0,0 +1,19 @@ +# appPermissionsGetMaskByNames + + + +React Query query hook for appPermissionsGetMaskByNames + +## Usage + +```typescript +useAppPermissionsGetMaskByNamesQuery({ names: '' }) +``` + +## Examples + +### Use useAppPermissionsGetMaskByNamesQuery + +```typescript +const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ names: '' }); +``` diff --git a/skills/hooks-admin/references/app-permissions-get-mask.md b/skills/hooks-admin/references/app-permissions-get-mask.md new file mode 100644 index 000000000..291cecff5 --- /dev/null +++ b/skills/hooks-admin/references/app-permissions-get-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetMask + + + +React Query query hook for appPermissionsGetMask + +## Usage + +```typescript +useAppPermissionsGetMaskQuery({ ids: '' }) +``` + +## Examples + +### Use useAppPermissionsGetMaskQuery + +```typescript +const { data, isLoading } = useAppPermissionsGetMaskQuery({ ids: '' }); +``` diff --git a/skills/hooks-admin/references/app-permissions-get-padded-mask.md b/skills/hooks-admin/references/app-permissions-get-padded-mask.md new file mode 100644 index 000000000..fa12f4bda --- /dev/null +++ b/skills/hooks-admin/references/app-permissions-get-padded-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetPaddedMask + + + +React Query query hook for appPermissionsGetPaddedMask + +## Usage + +```typescript +useAppPermissionsGetPaddedMaskQuery({ mask: '' }) +``` + +## Examples + +### Use useAppPermissionsGetPaddedMaskQuery + +```typescript +const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ mask: '' }); +``` diff --git a/skills/hooks-admin/references/app-step.md b/skills/hooks-admin/references/app-step.md new file mode 100644 index 000000000..dff4c8520 --- /dev/null +++ b/skills/hooks-admin/references/app-step.md @@ -0,0 +1,34 @@ +# appStep + + + +Log of individual user actions toward level requirements; every single step ever taken is recorded here + +## Usage + +```typescript +useAppStepsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) +useAppStepQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) +useCreateAppStepMutation({ selection: { fields: { id: true } } }) +useUpdateAppStepMutation({ selection: { fields: { id: true } } }) +useDeleteAppStepMutation({}) +``` + +## Examples + +### List all appSteps + +```typescript +const { data, isLoading } = useAppStepsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appStep + +```typescript +const { mutate } = useCreateAppStepMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', name: '', count: '' }); +``` diff --git a/skills/hooks-admin/references/claimed-invite.md b/skills/hooks-admin/references/claimed-invite.md new file mode 100644 index 000000000..7b3be74dd --- /dev/null +++ b/skills/hooks-admin/references/claimed-invite.md @@ -0,0 +1,34 @@ +# claimedInvite + + + +Records of successfully claimed invitations, linking senders to receivers + +## Usage + +```typescript +useClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) +useClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) +useCreateClaimedInviteMutation({ selection: { fields: { id: true } } }) +useUpdateClaimedInviteMutation({ selection: { fields: { id: true } } }) +useDeleteClaimedInviteMutation({}) +``` + +## Examples + +### List all claimedInvites + +```typescript +const { data, isLoading } = useClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a claimedInvite + +```typescript +const { mutate } = useCreateClaimedInviteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ data: '', senderId: '', receiverId: '' }); +``` diff --git a/skills/hooks-admin/references/invite.md b/skills/hooks-admin/references/invite.md new file mode 100644 index 000000000..3d968b414 --- /dev/null +++ b/skills/hooks-admin/references/invite.md @@ -0,0 +1,34 @@ +# invite + + + +Invitation records sent to prospective members via email, with token-based redemption and expiration + +## Usage + +```typescript +useInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) +useInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) +useCreateInviteMutation({ selection: { fields: { id: true } } }) +useUpdateInviteMutation({ selection: { fields: { id: true } } }) +useDeleteInviteMutation({}) +``` + +## Examples + +### List all invites + +```typescript +const { data, isLoading } = useInvitesQuery({ + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a invite + +```typescript +const { mutate } = useCreateInviteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); +``` diff --git a/skills/hooks-admin/references/membership-type.md b/skills/hooks-admin/references/membership-type.md new file mode 100644 index 000000000..d603f30be --- /dev/null +++ b/skills/hooks-admin/references/membership-type.md @@ -0,0 +1,34 @@ +# membershipType + + + +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) + +## Usage + +```typescript +useMembershipTypesQuery({ selection: { fields: { id: true, name: true, description: true, prefix: true } } }) +useMembershipTypeQuery({ id: '', selection: { fields: { id: true, name: true, description: true, prefix: true } } }) +useCreateMembershipTypeMutation({ selection: { fields: { id: true } } }) +useUpdateMembershipTypeMutation({ selection: { fields: { id: true } } }) +useDeleteMembershipTypeMutation({}) +``` + +## Examples + +### List all membershipTypes + +```typescript +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true } }, +}); +``` + +### Create a membershipType + +```typescript +const { mutate } = useCreateMembershipTypeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', description: '', prefix: '' }); +``` diff --git a/skills/hooks-admin/references/org-admin-grant.md b/skills/hooks-admin/references/org-admin-grant.md new file mode 100644 index 000000000..0c33888b4 --- /dev/null +++ b/skills/hooks-admin/references/org-admin-grant.md @@ -0,0 +1,34 @@ +# orgAdminGrant + + + +Records of admin role grants and revocations between members + +## Usage + +```typescript +useOrgAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useOrgAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgAdminGrantMutation({}) +``` + +## Examples + +### List all orgAdminGrants + +```typescript +const { data, isLoading } = useOrgAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a orgAdminGrant + +```typescript +const { mutate } = useCreateOrgAdminGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` diff --git a/skills/hooks-admin/references/org-chart-edge-grant.md b/skills/hooks-admin/references/org-chart-edge-grant.md new file mode 100644 index 000000000..89e9aa996 --- /dev/null +++ b/skills/hooks-admin/references/org-chart-edge-grant.md @@ -0,0 +1,34 @@ +# orgChartEdgeGrant + + + +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + +## Usage + +```typescript +useOrgChartEdgeGrantsQuery({ selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) +useOrgChartEdgeGrantQuery({ id: '', selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) +useCreateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgChartEdgeGrantMutation({}) +``` + +## Examples + +### List all orgChartEdgeGrants + +```typescript +const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); +``` + +### Create a orgChartEdgeGrant + +```typescript +const { mutate } = useCreateOrgChartEdgeGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); +``` diff --git a/skills/hooks-admin/references/org-chart-edge.md b/skills/hooks-admin/references/org-chart-edge.md new file mode 100644 index 000000000..c2c1e4e01 --- /dev/null +++ b/skills/hooks-admin/references/org-chart-edge.md @@ -0,0 +1,34 @@ +# orgChartEdge + + + +Organizational chart edges defining parent-child reporting relationships between members within an entity + +## Usage + +```typescript +useOrgChartEdgesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) +useOrgChartEdgeQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) +useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) +useUpdateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) +useDeleteOrgChartEdgeMutation({}) +``` + +## Examples + +### List all orgChartEdges + +```typescript +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); +``` + +### Create a orgChartEdge + +```typescript +const { mutate } = useCreateOrgChartEdgeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); +``` diff --git a/skills/hooks-admin/references/org-claimed-invite.md b/skills/hooks-admin/references/org-claimed-invite.md new file mode 100644 index 000000000..a03250a6b --- /dev/null +++ b/skills/hooks-admin/references/org-claimed-invite.md @@ -0,0 +1,34 @@ +# orgClaimedInvite + + + +Records of successfully claimed invitations, linking senders to receivers + +## Usage + +```typescript +useOrgClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) +useCreateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) +useUpdateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) +useDeleteOrgClaimedInviteMutation({}) +``` + +## Examples + +### List all orgClaimedInvites + +```typescript +const { data, isLoading } = useOrgClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, +}); +``` + +### Create a orgClaimedInvite + +```typescript +const { mutate } = useCreateOrgClaimedInviteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ data: '', senderId: '', receiverId: '', entityId: '' }); +``` diff --git a/skills/hooks-admin/references/org-get-managers-record.md b/skills/hooks-admin/references/org-get-managers-record.md new file mode 100644 index 000000000..26045a477 --- /dev/null +++ b/skills/hooks-admin/references/org-get-managers-record.md @@ -0,0 +1,31 @@ +# orgGetManagersRecord + + + +React Query hooks for OrgGetManagersRecord data operations + +## Usage + +```typescript +useOrgGetManagersQuery({ selection: { fields: { userId: true, depth: true } } }) +useCreateOrgGetManagersRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgGetManagers + +```typescript +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { userId: true, depth: true } }, +}); +``` + +### Create a orgGetManagersRecord + +```typescript +const { mutate } = useCreateOrgGetManagersRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ userId: '', depth: '' }); +``` diff --git a/skills/hooks-admin/references/org-get-subordinates-record.md b/skills/hooks-admin/references/org-get-subordinates-record.md new file mode 100644 index 000000000..bd2be4581 --- /dev/null +++ b/skills/hooks-admin/references/org-get-subordinates-record.md @@ -0,0 +1,31 @@ +# orgGetSubordinatesRecord + + + +React Query hooks for OrgGetSubordinatesRecord data operations + +## Usage + +```typescript +useOrgGetSubordinatesQuery({ selection: { fields: { userId: true, depth: true } } }) +useCreateOrgGetSubordinatesRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgGetSubordinates + +```typescript +const { data, isLoading } = useOrgGetSubordinatesQuery({ + selection: { fields: { userId: true, depth: true } }, +}); +``` + +### Create a orgGetSubordinatesRecord + +```typescript +const { mutate } = useCreateOrgGetSubordinatesRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ userId: '', depth: '' }); +``` diff --git a/skills/hooks-admin/references/org-grant.md b/skills/hooks-admin/references/org-grant.md new file mode 100644 index 000000000..97c64dfd3 --- /dev/null +++ b/skills/hooks-admin/references/org-grant.md @@ -0,0 +1,34 @@ +# orgGrant + + + +Records of individual permission grants and revocations for members via bitmask + +## Usage + +```typescript +useOrgGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useOrgGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateOrgGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgGrantMutation({}) +``` + +## Examples + +### List all orgGrants + +```typescript +const { data, isLoading } = useOrgGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a orgGrant + +```typescript +const { mutate } = useCreateOrgGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` diff --git a/skills/hooks-admin/references/org-invite.md b/skills/hooks-admin/references/org-invite.md new file mode 100644 index 000000000..7f42032c5 --- /dev/null +++ b/skills/hooks-admin/references/org-invite.md @@ -0,0 +1,34 @@ +# orgInvite + + + +Invitation records sent to prospective members via email, with token-based redemption and expiration + +## Usage + +```typescript +useOrgInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useCreateOrgInviteMutation({ selection: { fields: { id: true } } }) +useUpdateOrgInviteMutation({ selection: { fields: { id: true } } }) +useDeleteOrgInviteMutation({}) +``` + +## Examples + +### List all orgInvites + +```typescript +const { data, isLoading } = useOrgInvitesQuery({ + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, +}); +``` + +### Create a orgInvite + +```typescript +const { mutate } = useCreateOrgInviteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); +``` diff --git a/skills/hooks-admin/references/org-is-manager-of.md b/skills/hooks-admin/references/org-is-manager-of.md new file mode 100644 index 000000000..3832c5a99 --- /dev/null +++ b/skills/hooks-admin/references/org-is-manager-of.md @@ -0,0 +1,19 @@ +# orgIsManagerOf + + + +React Query query hook for orgIsManagerOf + +## Usage + +```typescript +useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }) +``` + +## Examples + +### Use useOrgIsManagerOfQuery + +```typescript +const { data, isLoading } = useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }); +``` diff --git a/skills/hooks-admin/references/org-limit-default.md b/skills/hooks-admin/references/org-limit-default.md new file mode 100644 index 000000000..0a41c4449 --- /dev/null +++ b/skills/hooks-admin/references/org-limit-default.md @@ -0,0 +1,34 @@ +# orgLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) +useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitDefaultMutation({}) +``` + +## Examples + +### List all orgLimitDefaults + +```typescript +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); +``` + +### Create a orgLimitDefault + +```typescript +const { mutate } = useCreateOrgLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', max: '' }); +``` diff --git a/skills/hooks-admin/references/org-limit.md b/skills/hooks-admin/references/org-limit.md new file mode 100644 index 000000000..0bcd78e02 --- /dev/null +++ b/skills/hooks-admin/references/org-limit.md @@ -0,0 +1,34 @@ +# orgLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) +useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) +useCreateOrgLimitMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitMutation({}) +``` + +## Examples + +### List all orgLimits + +```typescript +const { data, isLoading } = useOrgLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, +}); +``` + +### Create a orgLimit + +```typescript +const { mutate } = useCreateOrgLimitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', num: '', max: '', entityId: '' }); +``` diff --git a/skills/hooks-admin/references/org-member.md b/skills/hooks-admin/references/org-member.md new file mode 100644 index 000000000..76db77752 --- /dev/null +++ b/skills/hooks-admin/references/org-member.md @@ -0,0 +1,34 @@ +# orgMember + + + +Simplified view of active members in an entity, used for listing who belongs to an org or group + +## Usage + +```typescript +useOrgMembersQuery({ selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) +useOrgMemberQuery({ id: '', selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) +useCreateOrgMemberMutation({ selection: { fields: { id: true } } }) +useUpdateOrgMemberMutation({ selection: { fields: { id: true } } }) +useDeleteOrgMemberMutation({}) +``` + +## Examples + +### List all orgMembers + +```typescript +const { data, isLoading } = useOrgMembersQuery({ + selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, +}); +``` + +### Create a orgMember + +```typescript +const { mutate } = useCreateOrgMemberMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isAdmin: '', actorId: '', entityId: '' }); +``` diff --git a/skills/hooks-admin/references/org-membership-default.md b/skills/hooks-admin/references/org-membership-default.md new file mode 100644 index 000000000..a6749380d --- /dev/null +++ b/skills/hooks-admin/references/org-membership-default.md @@ -0,0 +1,34 @@ +# orgMembershipDefault + + + +Default membership settings per entity, controlling initial approval and verification state for new members + +## Usage + +```typescript +useOrgMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } } }) +useOrgMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } } }) +useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteOrgMembershipDefaultMutation({}) +``` + +## Examples + +### List all orgMembershipDefaults + +```typescript +const { data, isLoading } = useOrgMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, +}); +``` + +### Create a orgMembershipDefault + +```typescript +const { mutate } = useCreateOrgMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); +``` diff --git a/skills/hooks-admin/references/org-membership.md b/skills/hooks-admin/references/org-membership.md new file mode 100644 index 000000000..b31702606 --- /dev/null +++ b/skills/hooks-admin/references/org-membership.md @@ -0,0 +1,34 @@ +# orgMembership + + + +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + +## Usage + +```typescript +useOrgMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } } }) +useOrgMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } } }) +useCreateOrgMembershipMutation({ selection: { fields: { id: true } } }) +useUpdateOrgMembershipMutation({ selection: { fields: { id: true } } }) +useDeleteOrgMembershipMutation({}) +``` + +## Examples + +### List all orgMemberships + +```typescript +const { data, isLoading } = useOrgMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, +}); +``` + +### Create a orgMembership + +```typescript +const { mutate } = useCreateOrgMembershipMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); +``` diff --git a/skills/hooks-admin/references/org-owner-grant.md b/skills/hooks-admin/references/org-owner-grant.md new file mode 100644 index 000000000..95febd1ff --- /dev/null +++ b/skills/hooks-admin/references/org-owner-grant.md @@ -0,0 +1,34 @@ +# orgOwnerGrant + + + +Records of ownership transfers and grants between members + +## Usage + +```typescript +useOrgOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useOrgOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgOwnerGrantMutation({}) +``` + +## Examples + +### List all orgOwnerGrants + +```typescript +const { data, isLoading } = useOrgOwnerGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a orgOwnerGrant + +```typescript +const { mutate } = useCreateOrgOwnerGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` diff --git a/skills/hooks-admin/references/org-permission-default.md b/skills/hooks-admin/references/org-permission-default.md new file mode 100644 index 000000000..0db4e9538 --- /dev/null +++ b/skills/hooks-admin/references/org-permission-default.md @@ -0,0 +1,34 @@ +# orgPermissionDefault + + + +Stores the default permission bitmask assigned to new members upon joining + +## Usage + +```typescript +useOrgPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true, entityId: true } } }) +useOrgPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true, entityId: true } } }) +useCreateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteOrgPermissionDefaultMutation({}) +``` + +## Examples + +### List all orgPermissionDefaults + +```typescript +const { data, isLoading } = useOrgPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); +``` + +### Create a orgPermissionDefault + +```typescript +const { mutate } = useCreateOrgPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissions: '', entityId: '' }); +``` diff --git a/skills/hooks-admin/references/org-permission.md b/skills/hooks-admin/references/org-permission.md new file mode 100644 index 000000000..fed780e55 --- /dev/null +++ b/skills/hooks-admin/references/org-permission.md @@ -0,0 +1,34 @@ +# orgPermission + + + +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + +## Usage + +```typescript +useOrgPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) +useOrgPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) +useCreateOrgPermissionMutation({ selection: { fields: { id: true } } }) +useUpdateOrgPermissionMutation({ selection: { fields: { id: true } } }) +useDeleteOrgPermissionMutation({}) +``` + +## Examples + +### List all orgPermissions + +```typescript +const { data, isLoading } = useOrgPermissionsQuery({ + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); +``` + +### Create a orgPermission + +```typescript +const { mutate } = useCreateOrgPermissionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', bitnum: '', bitstr: '', description: '' }); +``` diff --git a/skills/hooks-admin/references/org-permissions-get-by-mask.md b/skills/hooks-admin/references/org-permissions-get-by-mask.md new file mode 100644 index 000000000..91a602577 --- /dev/null +++ b/skills/hooks-admin/references/org-permissions-get-by-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetByMask + + + +Reads and enables pagination through a set of `OrgPermission`. + +## Usage + +```typescript +useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useOrgPermissionsGetByMaskQuery + +```typescript +const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-admin/references/org-permissions-get-mask-by-names.md b/skills/hooks-admin/references/org-permissions-get-mask-by-names.md new file mode 100644 index 000000000..d2652adfd --- /dev/null +++ b/skills/hooks-admin/references/org-permissions-get-mask-by-names.md @@ -0,0 +1,19 @@ +# orgPermissionsGetMaskByNames + + + +React Query query hook for orgPermissionsGetMaskByNames + +## Usage + +```typescript +useOrgPermissionsGetMaskByNamesQuery({ names: '' }) +``` + +## Examples + +### Use useOrgPermissionsGetMaskByNamesQuery + +```typescript +const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ names: '' }); +``` diff --git a/skills/hooks-admin/references/org-permissions-get-mask.md b/skills/hooks-admin/references/org-permissions-get-mask.md new file mode 100644 index 000000000..75dc58097 --- /dev/null +++ b/skills/hooks-admin/references/org-permissions-get-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetMask + + + +React Query query hook for orgPermissionsGetMask + +## Usage + +```typescript +useOrgPermissionsGetMaskQuery({ ids: '' }) +``` + +## Examples + +### Use useOrgPermissionsGetMaskQuery + +```typescript +const { data, isLoading } = useOrgPermissionsGetMaskQuery({ ids: '' }); +``` diff --git a/skills/hooks-admin/references/org-permissions-get-padded-mask.md b/skills/hooks-admin/references/org-permissions-get-padded-mask.md new file mode 100644 index 000000000..a23bbbf76 --- /dev/null +++ b/skills/hooks-admin/references/org-permissions-get-padded-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetPaddedMask + + + +React Query query hook for orgPermissionsGetPaddedMask + +## Usage + +```typescript +useOrgPermissionsGetPaddedMaskQuery({ mask: '' }) +``` + +## Examples + +### Use useOrgPermissionsGetPaddedMaskQuery + +```typescript +const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ mask: '' }); +``` diff --git a/skills/hooks-admin/references/steps-achieved.md b/skills/hooks-admin/references/steps-achieved.md new file mode 100644 index 000000000..cf0a84d43 --- /dev/null +++ b/skills/hooks-admin/references/steps-achieved.md @@ -0,0 +1,19 @@ +# stepsAchieved + + + +React Query query hook for stepsAchieved + +## Usage + +```typescript +useStepsAchievedQuery({ vlevel: '', vroleId: '' }) +``` + +## Examples + +### Use useStepsAchievedQuery + +```typescript +const { data, isLoading } = useStepsAchievedQuery({ vlevel: '', vroleId: '' }); +``` diff --git a/skills/hooks-admin/references/steps-required.md b/skills/hooks-admin/references/steps-required.md new file mode 100644 index 000000000..e50844b6b --- /dev/null +++ b/skills/hooks-admin/references/steps-required.md @@ -0,0 +1,19 @@ +# stepsRequired + + + +Reads and enables pagination through a set of `AppLevelRequirement`. + +## Usage + +```typescript +useStepsRequiredQuery({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useStepsRequiredQuery + +```typescript +const { data, isLoading } = useStepsRequiredQuery({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-admin/references/submit-invite-code.md b/skills/hooks-admin/references/submit-invite-code.md new file mode 100644 index 000000000..e774b7aba --- /dev/null +++ b/skills/hooks-admin/references/submit-invite-code.md @@ -0,0 +1,20 @@ +# submitInviteCode + + + +React Query mutation hook for submitInviteCode + +## Usage + +```typescript +const { mutate } = useSubmitInviteCodeMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSubmitInviteCodeMutation + +```typescript +const { mutate, isLoading } = useSubmitInviteCodeMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-admin/references/submit-org-invite-code.md b/skills/hooks-admin/references/submit-org-invite-code.md new file mode 100644 index 000000000..4a70f698f --- /dev/null +++ b/skills/hooks-admin/references/submit-org-invite-code.md @@ -0,0 +1,20 @@ +# submitOrgInviteCode + + + +React Query mutation hook for submitOrgInviteCode + +## Usage + +```typescript +const { mutate } = useSubmitOrgInviteCodeMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSubmitOrgInviteCodeMutation + +```typescript +const { mutate, isLoading } = useSubmitOrgInviteCodeMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/SKILL.md b/skills/hooks-auth/SKILL.md new file mode 100644 index 000000000..32030190d --- /dev/null +++ b/skills/hooks-auth/SKILL.md @@ -0,0 +1,66 @@ +--- +name: hooks-auth +description: React Query hooks for the auth API — provides typed query and mutation hooks for 7 tables and 20 custom operations +--- + +# hooks-auth + + + +React Query hooks for the auth API — provides typed query and mutation hooks for 7 tables and 20 custom operations + +## Usage + +```typescript +// Import hooks +import { useRoleTypesQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [role-type](references/role-type.md) +- [crypto-address](references/crypto-address.md) +- [phone-number](references/phone-number.md) +- [connected-account](references/connected-account.md) +- [audit-log](references/audit-log.md) +- [email](references/email.md) +- [user](references/user.md) +- [current-ip-address](references/current-ip-address.md) +- [current-user-agent](references/current-user-agent.md) +- [current-user-id](references/current-user-id.md) +- [current-user](references/current-user.md) +- [sign-out](references/sign-out.md) +- [send-account-deletion-email](references/send-account-deletion-email.md) +- [check-password](references/check-password.md) +- [confirm-delete-account](references/confirm-delete-account.md) +- [set-password](references/set-password.md) +- [verify-email](references/verify-email.md) +- [reset-password](references/reset-password.md) +- [sign-in-one-time-token](references/sign-in-one-time-token.md) +- [sign-in](references/sign-in.md) +- [sign-up](references/sign-up.md) +- [one-time-token](references/one-time-token.md) +- [extend-token-expires](references/extend-token-expires.md) +- [forgot-password](references/forgot-password.md) +- [send-verification-email](references/send-verification-email.md) +- [verify-password](references/verify-password.md) +- [verify-totp](references/verify-totp.md) diff --git a/skills/hooks-auth/references/audit-log.md b/skills/hooks-auth/references/audit-log.md new file mode 100644 index 000000000..2510fbb60 --- /dev/null +++ b/skills/hooks-auth/references/audit-log.md @@ -0,0 +1,34 @@ +# auditLog + + + +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + +## Usage + +```typescript +useAuditLogsQuery({ selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) +useAuditLogQuery({ id: '', selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) +useCreateAuditLogMutation({ selection: { fields: { id: true } } }) +useUpdateAuditLogMutation({ selection: { fields: { id: true } } }) +useDeleteAuditLogMutation({}) +``` + +## Examples + +### List all auditLogs + +```typescript +const { data, isLoading } = useAuditLogsQuery({ + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, +}); +``` + +### Create a auditLog + +```typescript +const { mutate } = useCreateAuditLogMutation({ + selection: { fields: { id: true } }, +}); +mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); +``` diff --git a/skills/hooks-auth/references/check-password.md b/skills/hooks-auth/references/check-password.md new file mode 100644 index 000000000..d288b0d59 --- /dev/null +++ b/skills/hooks-auth/references/check-password.md @@ -0,0 +1,20 @@ +# checkPassword + + + +React Query mutation hook for checkPassword + +## Usage + +```typescript +const { mutate } = useCheckPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useCheckPasswordMutation + +```typescript +const { mutate, isLoading } = useCheckPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/confirm-delete-account.md b/skills/hooks-auth/references/confirm-delete-account.md new file mode 100644 index 000000000..2cbaddf1e --- /dev/null +++ b/skills/hooks-auth/references/confirm-delete-account.md @@ -0,0 +1,20 @@ +# confirmDeleteAccount + + + +React Query mutation hook for confirmDeleteAccount + +## Usage + +```typescript +const { mutate } = useConfirmDeleteAccountMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useConfirmDeleteAccountMutation + +```typescript +const { mutate, isLoading } = useConfirmDeleteAccountMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/connected-account.md b/skills/hooks-auth/references/connected-account.md new file mode 100644 index 000000000..460e81e5b --- /dev/null +++ b/skills/hooks-auth/references/connected-account.md @@ -0,0 +1,34 @@ +# connectedAccount + + + +OAuth and social login connections linking external service accounts to users + +## Usage + +```typescript +useConnectedAccountsQuery({ selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) +useConnectedAccountQuery({ id: '', selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) +useCreateConnectedAccountMutation({ selection: { fields: { id: true } } }) +useUpdateConnectedAccountMutation({ selection: { fields: { id: true } } }) +useDeleteConnectedAccountMutation({}) +``` + +## Examples + +### List all connectedAccounts + +```typescript +const { data, isLoading } = useConnectedAccountsQuery({ + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a connectedAccount + +```typescript +const { mutate } = useCreateConnectedAccountMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); +``` diff --git a/skills/hooks-auth/references/crypto-address.md b/skills/hooks-auth/references/crypto-address.md new file mode 100644 index 000000000..99c41ff1e --- /dev/null +++ b/skills/hooks-auth/references/crypto-address.md @@ -0,0 +1,34 @@ +# cryptoAddress + + + +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification + +## Usage + +```typescript +useCryptoAddressesQuery({ selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCryptoAddressQuery({ id: '', selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCreateCryptoAddressMutation({ selection: { fields: { id: true } } }) +useUpdateCryptoAddressMutation({ selection: { fields: { id: true } } }) +useDeleteCryptoAddressMutation({}) +``` + +## Examples + +### List all cryptoAddresses + +```typescript +const { data, isLoading } = useCryptoAddressesQuery({ + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a cryptoAddress + +```typescript +const { mutate } = useCreateCryptoAddressMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); +``` diff --git a/skills/hooks-auth/references/current-ip-address.md b/skills/hooks-auth/references/current-ip-address.md new file mode 100644 index 000000000..ddb702e16 --- /dev/null +++ b/skills/hooks-auth/references/current-ip-address.md @@ -0,0 +1,19 @@ +# currentIpAddress + + + +React Query query hook for currentIpAddress + +## Usage + +```typescript +useCurrentIpAddressQuery() +``` + +## Examples + +### Use useCurrentIpAddressQuery + +```typescript +const { data, isLoading } = useCurrentIpAddressQuery(); +``` diff --git a/skills/hooks-auth/references/current-user-agent.md b/skills/hooks-auth/references/current-user-agent.md new file mode 100644 index 000000000..3bc483ff7 --- /dev/null +++ b/skills/hooks-auth/references/current-user-agent.md @@ -0,0 +1,19 @@ +# currentUserAgent + + + +React Query query hook for currentUserAgent + +## Usage + +```typescript +useCurrentUserAgentQuery() +``` + +## Examples + +### Use useCurrentUserAgentQuery + +```typescript +const { data, isLoading } = useCurrentUserAgentQuery(); +``` diff --git a/skills/hooks-auth/references/current-user-id.md b/skills/hooks-auth/references/current-user-id.md new file mode 100644 index 000000000..0dcf21a7f --- /dev/null +++ b/skills/hooks-auth/references/current-user-id.md @@ -0,0 +1,19 @@ +# currentUserId + + + +React Query query hook for currentUserId + +## Usage + +```typescript +useCurrentUserIdQuery() +``` + +## Examples + +### Use useCurrentUserIdQuery + +```typescript +const { data, isLoading } = useCurrentUserIdQuery(); +``` diff --git a/skills/hooks-auth/references/current-user.md b/skills/hooks-auth/references/current-user.md new file mode 100644 index 000000000..3411f5951 --- /dev/null +++ b/skills/hooks-auth/references/current-user.md @@ -0,0 +1,19 @@ +# currentUser + + + +React Query query hook for currentUser + +## Usage + +```typescript +useCurrentUserQuery() +``` + +## Examples + +### Use useCurrentUserQuery + +```typescript +const { data, isLoading } = useCurrentUserQuery(); +``` diff --git a/skills/hooks-auth/references/email.md b/skills/hooks-auth/references/email.md new file mode 100644 index 000000000..4bf0c0eab --- /dev/null +++ b/skills/hooks-auth/references/email.md @@ -0,0 +1,34 @@ +# email + + + +User email addresses with verification and primary-email management + +## Usage + +```typescript +useEmailsQuery({ selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useEmailQuery({ id: '', selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCreateEmailMutation({ selection: { fields: { id: true } } }) +useUpdateEmailMutation({ selection: { fields: { id: true } } }) +useDeleteEmailMutation({}) +``` + +## Examples + +### List all emails + +```typescript +const { data, isLoading } = useEmailsQuery({ + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a email + +```typescript +const { mutate } = useCreateEmailMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); +``` diff --git a/skills/hooks-auth/references/extend-token-expires.md b/skills/hooks-auth/references/extend-token-expires.md new file mode 100644 index 000000000..ecbad8c6a --- /dev/null +++ b/skills/hooks-auth/references/extend-token-expires.md @@ -0,0 +1,20 @@ +# extendTokenExpires + + + +React Query mutation hook for extendTokenExpires + +## Usage + +```typescript +const { mutate } = useExtendTokenExpiresMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useExtendTokenExpiresMutation + +```typescript +const { mutate, isLoading } = useExtendTokenExpiresMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/forgot-password.md b/skills/hooks-auth/references/forgot-password.md new file mode 100644 index 000000000..04d19984b --- /dev/null +++ b/skills/hooks-auth/references/forgot-password.md @@ -0,0 +1,20 @@ +# forgotPassword + + + +React Query mutation hook for forgotPassword + +## Usage + +```typescript +const { mutate } = useForgotPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useForgotPasswordMutation + +```typescript +const { mutate, isLoading } = useForgotPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/one-time-token.md b/skills/hooks-auth/references/one-time-token.md new file mode 100644 index 000000000..1b5ddf37f --- /dev/null +++ b/skills/hooks-auth/references/one-time-token.md @@ -0,0 +1,20 @@ +# oneTimeToken + + + +React Query mutation hook for oneTimeToken + +## Usage + +```typescript +const { mutate } = useOneTimeTokenMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useOneTimeTokenMutation + +```typescript +const { mutate, isLoading } = useOneTimeTokenMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/phone-number.md b/skills/hooks-auth/references/phone-number.md new file mode 100644 index 000000000..0ce6e26c1 --- /dev/null +++ b/skills/hooks-auth/references/phone-number.md @@ -0,0 +1,34 @@ +# phoneNumber + + + +User phone numbers with country code, verification, and primary-number management + +## Usage + +```typescript +usePhoneNumbersQuery({ selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +usePhoneNumberQuery({ id: '', selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCreatePhoneNumberMutation({ selection: { fields: { id: true } } }) +useUpdatePhoneNumberMutation({ selection: { fields: { id: true } } }) +useDeletePhoneNumberMutation({}) +``` + +## Examples + +### List all phoneNumbers + +```typescript +const { data, isLoading } = usePhoneNumbersQuery({ + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a phoneNumber + +```typescript +const { mutate } = useCreatePhoneNumberMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); +``` diff --git a/skills/hooks-auth/references/reset-password.md b/skills/hooks-auth/references/reset-password.md new file mode 100644 index 000000000..490bccf5d --- /dev/null +++ b/skills/hooks-auth/references/reset-password.md @@ -0,0 +1,20 @@ +# resetPassword + + + +React Query mutation hook for resetPassword + +## Usage + +```typescript +const { mutate } = useResetPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useResetPasswordMutation + +```typescript +const { mutate, isLoading } = useResetPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/role-type.md b/skills/hooks-auth/references/role-type.md new file mode 100644 index 000000000..8ba5dde40 --- /dev/null +++ b/skills/hooks-auth/references/role-type.md @@ -0,0 +1,34 @@ +# roleType + + + +React Query hooks for RoleType data operations + +## Usage + +```typescript +useRoleTypesQuery({ selection: { fields: { id: true, name: true } } }) +useRoleTypeQuery({ id: '', selection: { fields: { id: true, name: true } } }) +useCreateRoleTypeMutation({ selection: { fields: { id: true } } }) +useUpdateRoleTypeMutation({ selection: { fields: { id: true } } }) +useDeleteRoleTypeMutation({}) +``` + +## Examples + +### List all roleTypes + +```typescript +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true, name: true } }, +}); +``` + +### Create a roleType + +```typescript +const { mutate } = useCreateRoleTypeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '' }); +``` diff --git a/skills/hooks-auth/references/send-account-deletion-email.md b/skills/hooks-auth/references/send-account-deletion-email.md new file mode 100644 index 000000000..6d43414a2 --- /dev/null +++ b/skills/hooks-auth/references/send-account-deletion-email.md @@ -0,0 +1,20 @@ +# sendAccountDeletionEmail + + + +React Query mutation hook for sendAccountDeletionEmail + +## Usage + +```typescript +const { mutate } = useSendAccountDeletionEmailMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSendAccountDeletionEmailMutation + +```typescript +const { mutate, isLoading } = useSendAccountDeletionEmailMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/send-verification-email.md b/skills/hooks-auth/references/send-verification-email.md new file mode 100644 index 000000000..36e6216fd --- /dev/null +++ b/skills/hooks-auth/references/send-verification-email.md @@ -0,0 +1,20 @@ +# sendVerificationEmail + + + +React Query mutation hook for sendVerificationEmail + +## Usage + +```typescript +const { mutate } = useSendVerificationEmailMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSendVerificationEmailMutation + +```typescript +const { mutate, isLoading } = useSendVerificationEmailMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/set-password.md b/skills/hooks-auth/references/set-password.md new file mode 100644 index 000000000..7c43ee11f --- /dev/null +++ b/skills/hooks-auth/references/set-password.md @@ -0,0 +1,20 @@ +# setPassword + + + +React Query mutation hook for setPassword + +## Usage + +```typescript +const { mutate } = useSetPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetPasswordMutation + +```typescript +const { mutate, isLoading } = useSetPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/sign-in-one-time-token.md b/skills/hooks-auth/references/sign-in-one-time-token.md new file mode 100644 index 000000000..8f7d4515c --- /dev/null +++ b/skills/hooks-auth/references/sign-in-one-time-token.md @@ -0,0 +1,20 @@ +# signInOneTimeToken + + + +React Query mutation hook for signInOneTimeToken + +## Usage + +```typescript +const { mutate } = useSignInOneTimeTokenMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignInOneTimeTokenMutation + +```typescript +const { mutate, isLoading } = useSignInOneTimeTokenMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/sign-in.md b/skills/hooks-auth/references/sign-in.md new file mode 100644 index 000000000..bdc2cec2c --- /dev/null +++ b/skills/hooks-auth/references/sign-in.md @@ -0,0 +1,20 @@ +# signIn + + + +React Query mutation hook for signIn + +## Usage + +```typescript +const { mutate } = useSignInMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignInMutation + +```typescript +const { mutate, isLoading } = useSignInMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/sign-out.md b/skills/hooks-auth/references/sign-out.md new file mode 100644 index 000000000..e36cac158 --- /dev/null +++ b/skills/hooks-auth/references/sign-out.md @@ -0,0 +1,20 @@ +# signOut + + + +React Query mutation hook for signOut + +## Usage + +```typescript +const { mutate } = useSignOutMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignOutMutation + +```typescript +const { mutate, isLoading } = useSignOutMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/sign-up.md b/skills/hooks-auth/references/sign-up.md new file mode 100644 index 000000000..ba93ac7ed --- /dev/null +++ b/skills/hooks-auth/references/sign-up.md @@ -0,0 +1,20 @@ +# signUp + + + +React Query mutation hook for signUp + +## Usage + +```typescript +const { mutate } = useSignUpMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignUpMutation + +```typescript +const { mutate, isLoading } = useSignUpMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/user.md b/skills/hooks-auth/references/user.md new file mode 100644 index 000000000..9d3a8cf6b --- /dev/null +++ b/skills/hooks-auth/references/user.md @@ -0,0 +1,34 @@ +# user + + + +React Query hooks for User data operations + +## Usage + +```typescript +useUsersQuery({ selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) +useUserQuery({ id: '', selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) +useCreateUserMutation({ selection: { fields: { id: true } } }) +useUpdateUserMutation({ selection: { fields: { id: true } } }) +useDeleteUserMutation({}) +``` + +## Examples + +### List all users + +```typescript +const { data, isLoading } = useUsersQuery({ + selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, +}); +``` + +### Create a user + +```typescript +const { mutate } = useCreateUserMutation({ + selection: { fields: { id: true } }, +}); +mutate({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); +``` diff --git a/skills/hooks-auth/references/verify-email.md b/skills/hooks-auth/references/verify-email.md new file mode 100644 index 000000000..14a317763 --- /dev/null +++ b/skills/hooks-auth/references/verify-email.md @@ -0,0 +1,20 @@ +# verifyEmail + + + +React Query mutation hook for verifyEmail + +## Usage + +```typescript +const { mutate } = useVerifyEmailMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useVerifyEmailMutation + +```typescript +const { mutate, isLoading } = useVerifyEmailMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/verify-password.md b/skills/hooks-auth/references/verify-password.md new file mode 100644 index 000000000..09e407a2b --- /dev/null +++ b/skills/hooks-auth/references/verify-password.md @@ -0,0 +1,20 @@ +# verifyPassword + + + +React Query mutation hook for verifyPassword + +## Usage + +```typescript +const { mutate } = useVerifyPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useVerifyPasswordMutation + +```typescript +const { mutate, isLoading } = useVerifyPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-auth/references/verify-totp.md b/skills/hooks-auth/references/verify-totp.md new file mode 100644 index 000000000..b5654b525 --- /dev/null +++ b/skills/hooks-auth/references/verify-totp.md @@ -0,0 +1,20 @@ +# verifyTotp + + + +React Query mutation hook for verifyTotp + +## Usage + +```typescript +const { mutate } = useVerifyTotpMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useVerifyTotpMutation + +```typescript +const { mutate, isLoading } = useVerifyTotpMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects/SKILL.md b/skills/hooks-objects/SKILL.md new file mode 100644 index 000000000..f7bf1d251 --- /dev/null +++ b/skills/hooks-objects/SKILL.md @@ -0,0 +1,56 @@ +--- +name: hooks-objects +description: React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 12 custom operations +--- + +# hooks-objects + + + +React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 12 custom operations + +## Usage + +```typescript +// Import hooks +import { useGetAllQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [get-all-record](references/get-all-record.md) +- [object](references/object.md) +- [ref](references/ref.md) +- [store](references/store.md) +- [commit](references/commit.md) +- [rev-parse](references/rev-parse.md) +- [get-all-objects-from-root](references/get-all-objects-from-root.md) +- [get-path-objects-from-root](references/get-path-objects-from-root.md) +- [get-object-at-path](references/get-object-at-path.md) +- [freeze-objects](references/freeze-objects.md) +- [init-empty-repo](references/init-empty-repo.md) +- [remove-node-at-path](references/remove-node-at-path.md) +- [set-data-at-path](references/set-data-at-path.md) +- [set-props-and-commit](references/set-props-and-commit.md) +- [insert-node-at-path](references/insert-node-at-path.md) +- [update-node-at-path](references/update-node-at-path.md) +- [set-and-commit](references/set-and-commit.md) diff --git a/skills/hooks-objects/references/commit.md b/skills/hooks-objects/references/commit.md new file mode 100644 index 000000000..6c4d4710e --- /dev/null +++ b/skills/hooks-objects/references/commit.md @@ -0,0 +1,34 @@ +# commit + + + +A commit records changes to the repository. + +## Usage + +```typescript +useCommitsQuery({ selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCommitQuery({ id: '', selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCreateCommitMutation({ selection: { fields: { id: true } } }) +useUpdateCommitMutation({ selection: { fields: { id: true } } }) +useDeleteCommitMutation({}) +``` + +## Examples + +### List all commits + +```typescript +const { data, isLoading } = useCommitsQuery({ + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); +``` + +### Create a commit + +```typescript +const { mutate } = useCreateCommitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +``` diff --git a/skills/hooks-objects/references/freeze-objects.md b/skills/hooks-objects/references/freeze-objects.md new file mode 100644 index 000000000..15d3b5afc --- /dev/null +++ b/skills/hooks-objects/references/freeze-objects.md @@ -0,0 +1,20 @@ +# freezeObjects + + + +React Query mutation hook for freezeObjects + +## Usage + +```typescript +const { mutate } = useFreezeObjectsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useFreezeObjectsMutation + +```typescript +const { mutate, isLoading } = useFreezeObjectsMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects/references/get-all-objects-from-root.md b/skills/hooks-objects/references/get-all-objects-from-root.md new file mode 100644 index 000000000..dea9b354e --- /dev/null +++ b/skills/hooks-objects/references/get-all-objects-from-root.md @@ -0,0 +1,19 @@ +# getAllObjectsFromRoot + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useGetAllObjectsFromRootQuery + +```typescript +const { data, isLoading } = useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-objects/references/get-all-record.md b/skills/hooks-objects/references/get-all-record.md new file mode 100644 index 000000000..6251812bb --- /dev/null +++ b/skills/hooks-objects/references/get-all-record.md @@ -0,0 +1,31 @@ +# getAllRecord + + + +React Query hooks for GetAllRecord data operations + +## Usage + +```typescript +useGetAllQuery({ selection: { fields: { path: true, data: true } } }) +useCreateGetAllRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all getAll + +```typescript +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); +``` + +### Create a getAllRecord + +```typescript +const { mutate } = useCreateGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ path: '', data: '' }); +``` diff --git a/skills/hooks-objects/references/get-object-at-path.md b/skills/hooks-objects/references/get-object-at-path.md new file mode 100644 index 000000000..7f8aeed00 --- /dev/null +++ b/skills/hooks-objects/references/get-object-at-path.md @@ -0,0 +1,19 @@ +# getObjectAtPath + + + +React Query query hook for getObjectAtPath + +## Usage + +```typescript +useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) +``` + +## Examples + +### Use useGetObjectAtPathQuery + +```typescript +const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); +``` diff --git a/skills/hooks-objects/references/get-path-objects-from-root.md b/skills/hooks-objects/references/get-path-objects-from-root.md new file mode 100644 index 000000000..a453967c7 --- /dev/null +++ b/skills/hooks-objects/references/get-path-objects-from-root.md @@ -0,0 +1,19 @@ +# getPathObjectsFromRoot + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useGetPathObjectsFromRootQuery + +```typescript +const { data, isLoading } = useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-objects/references/init-empty-repo.md b/skills/hooks-objects/references/init-empty-repo.md new file mode 100644 index 000000000..08928b0f4 --- /dev/null +++ b/skills/hooks-objects/references/init-empty-repo.md @@ -0,0 +1,20 @@ +# initEmptyRepo + + + +React Query mutation hook for initEmptyRepo + +## Usage + +```typescript +const { mutate } = useInitEmptyRepoMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInitEmptyRepoMutation + +```typescript +const { mutate, isLoading } = useInitEmptyRepoMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects/references/insert-node-at-path.md b/skills/hooks-objects/references/insert-node-at-path.md new file mode 100644 index 000000000..4b19bea31 --- /dev/null +++ b/skills/hooks-objects/references/insert-node-at-path.md @@ -0,0 +1,20 @@ +# insertNodeAtPath + + + +React Query mutation hook for insertNodeAtPath + +## Usage + +```typescript +const { mutate } = useInsertNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInsertNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useInsertNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects/references/object.md b/skills/hooks-objects/references/object.md new file mode 100644 index 000000000..14e14593f --- /dev/null +++ b/skills/hooks-objects/references/object.md @@ -0,0 +1,34 @@ +# object + + + +React Query hooks for Object data operations + +## Usage + +```typescript +useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useCreateObjectMutation({ selection: { fields: { id: true } } }) +useUpdateObjectMutation({ selection: { fields: { id: true } } }) +useDeleteObjectMutation({}) +``` + +## Examples + +### List all objects + +```typescript +const { data, isLoading } = useObjectsQuery({ + selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); +``` + +### Create a object + +```typescript +const { mutate } = useCreateObjectMutation({ + selection: { fields: { id: true } }, +}); +mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +``` diff --git a/skills/hooks-objects/references/ref.md b/skills/hooks-objects/references/ref.md new file mode 100644 index 000000000..d8b3b24c7 --- /dev/null +++ b/skills/hooks-objects/references/ref.md @@ -0,0 +1,34 @@ +# ref + + + +A ref is a data structure for pointing to a commit. + +## Usage + +```typescript +useRefsQuery({ selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) +useRefQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) +useCreateRefMutation({ selection: { fields: { id: true } } }) +useUpdateRefMutation({ selection: { fields: { id: true } } }) +useDeleteRefMutation({}) +``` + +## Examples + +### List all refs + +```typescript +const { data, isLoading } = useRefsQuery({ + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, +}); +``` + +### Create a ref + +```typescript +const { mutate } = useCreateRefMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); +``` diff --git a/skills/hooks-objects/references/remove-node-at-path.md b/skills/hooks-objects/references/remove-node-at-path.md new file mode 100644 index 000000000..32d199b7e --- /dev/null +++ b/skills/hooks-objects/references/remove-node-at-path.md @@ -0,0 +1,20 @@ +# removeNodeAtPath + + + +React Query mutation hook for removeNodeAtPath + +## Usage + +```typescript +const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useRemoveNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useRemoveNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects/references/rev-parse.md b/skills/hooks-objects/references/rev-parse.md new file mode 100644 index 000000000..653d003af --- /dev/null +++ b/skills/hooks-objects/references/rev-parse.md @@ -0,0 +1,19 @@ +# revParse + + + +React Query query hook for revParse + +## Usage + +```typescript +useRevParseQuery({ dbId: '', storeId: '', refname: '' }) +``` + +## Examples + +### Use useRevParseQuery + +```typescript +const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); +``` diff --git a/skills/hooks-objects/references/set-and-commit.md b/skills/hooks-objects/references/set-and-commit.md new file mode 100644 index 000000000..7e69d5b13 --- /dev/null +++ b/skills/hooks-objects/references/set-and-commit.md @@ -0,0 +1,20 @@ +# setAndCommit + + + +React Query mutation hook for setAndCommit + +## Usage + +```typescript +const { mutate } = useSetAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetAndCommitMutation + +```typescript +const { mutate, isLoading } = useSetAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects/references/set-data-at-path.md b/skills/hooks-objects/references/set-data-at-path.md new file mode 100644 index 000000000..ff6629dec --- /dev/null +++ b/skills/hooks-objects/references/set-data-at-path.md @@ -0,0 +1,20 @@ +# setDataAtPath + + + +React Query mutation hook for setDataAtPath + +## Usage + +```typescript +const { mutate } = useSetDataAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetDataAtPathMutation + +```typescript +const { mutate, isLoading } = useSetDataAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects/references/set-props-and-commit.md b/skills/hooks-objects/references/set-props-and-commit.md new file mode 100644 index 000000000..ff62e4969 --- /dev/null +++ b/skills/hooks-objects/references/set-props-and-commit.md @@ -0,0 +1,20 @@ +# setPropsAndCommit + + + +React Query mutation hook for setPropsAndCommit + +## Usage + +```typescript +const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetPropsAndCommitMutation + +```typescript +const { mutate, isLoading } = useSetPropsAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-objects/references/store.md b/skills/hooks-objects/references/store.md new file mode 100644 index 000000000..07e008520 --- /dev/null +++ b/skills/hooks-objects/references/store.md @@ -0,0 +1,34 @@ +# store + + + +A store represents an isolated object repository within a database. + +## Usage + +```typescript +useStoresQuery({ selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) +useStoreQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) +useCreateStoreMutation({ selection: { fields: { id: true } } }) +useUpdateStoreMutation({ selection: { fields: { id: true } } }) +useDeleteStoreMutation({}) +``` + +## Examples + +### List all stores + +```typescript +const { data, isLoading } = useStoresQuery({ + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +}); +``` + +### Create a store + +```typescript +const { mutate } = useCreateStoreMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', databaseId: '', hash: '' }); +``` diff --git a/skills/hooks-objects/references/update-node-at-path.md b/skills/hooks-objects/references/update-node-at-path.md new file mode 100644 index 000000000..97a9f8bc1 --- /dev/null +++ b/skills/hooks-objects/references/update-node-at-path.md @@ -0,0 +1,20 @@ +# updateNodeAtPath + + + +React Query mutation hook for updateNodeAtPath + +## Usage + +```typescript +const { mutate } = useUpdateNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useUpdateNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useUpdateNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/SKILL.md b/skills/hooks-public/SKILL.md new file mode 100644 index 000000000..87c7217f3 --- /dev/null +++ b/skills/hooks-public/SKILL.md @@ -0,0 +1,193 @@ +--- +name: hooks-public +description: React Query hooks for the public API — provides typed query and mutation hooks for 104 tables and 50 custom operations +--- + +# hooks-public + + + +React Query hooks for the public API — provides typed query and mutation hooks for 104 tables and 50 custom operations + +## Usage + +```typescript +// Import hooks +import { useOrgGetManagersQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation + +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [org-get-managers-record](references/org-get-managers-record.md) +- [org-get-subordinates-record](references/org-get-subordinates-record.md) +- [get-all-record](references/get-all-record.md) +- [app-permission](references/app-permission.md) +- [org-permission](references/org-permission.md) +- [object](references/object.md) +- [app-level-requirement](references/app-level-requirement.md) +- [database](references/database.md) +- [schema](references/schema.md) +- [table](references/table.md) +- [check-constraint](references/check-constraint.md) +- [field](references/field.md) +- [foreign-key-constraint](references/foreign-key-constraint.md) +- [full-text-search](references/full-text-search.md) +- [index](references/index.md) +- [policy](references/policy.md) +- [primary-key-constraint](references/primary-key-constraint.md) +- [table-grant](references/table-grant.md) +- [trigger](references/trigger.md) +- [unique-constraint](references/unique-constraint.md) +- [view](references/view.md) +- [view-table](references/view-table.md) +- [view-grant](references/view-grant.md) +- [view-rule](references/view-rule.md) +- [table-module](references/table-module.md) +- [table-template-module](references/table-template-module.md) +- [secure-table-provision](references/secure-table-provision.md) +- [relation-provision](references/relation-provision.md) +- [schema-grant](references/schema-grant.md) +- [default-privilege](references/default-privilege.md) +- [api-schema](references/api-schema.md) +- [api-module](references/api-module.md) +- [domain](references/domain.md) +- [site-metadatum](references/site-metadatum.md) +- [site-module](references/site-module.md) +- [site-theme](references/site-theme.md) +- [trigger-function](references/trigger-function.md) +- [api](references/api.md) +- [site](references/site.md) +- [app](references/app.md) +- [connected-accounts-module](references/connected-accounts-module.md) +- [crypto-addresses-module](references/crypto-addresses-module.md) +- [crypto-auth-module](references/crypto-auth-module.md) +- [default-ids-module](references/default-ids-module.md) +- [denormalized-table-field](references/denormalized-table-field.md) +- [emails-module](references/emails-module.md) +- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [field-module](references/field-module.md) +- [invites-module](references/invites-module.md) +- [levels-module](references/levels-module.md) +- [limits-module](references/limits-module.md) +- [membership-types-module](references/membership-types-module.md) +- [memberships-module](references/memberships-module.md) +- [permissions-module](references/permissions-module.md) +- [phone-numbers-module](references/phone-numbers-module.md) +- [profiles-module](references/profiles-module.md) +- [rls-module](references/rls-module.md) +- [secrets-module](references/secrets-module.md) +- [sessions-module](references/sessions-module.md) +- [user-auth-module](references/user-auth-module.md) +- [users-module](references/users-module.md) +- [uuid-module](references/uuid-module.md) +- [database-provision-module](references/database-provision-module.md) +- [app-admin-grant](references/app-admin-grant.md) +- [app-owner-grant](references/app-owner-grant.md) +- [app-grant](references/app-grant.md) +- [org-membership](references/org-membership.md) +- [org-member](references/org-member.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-owner-grant](references/org-owner-grant.md) +- [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-limit](references/app-limit.md) +- [org-limit](references/org-limit.md) +- [app-step](references/app-step.md) +- [app-achievement](references/app-achievement.md) +- [invite](references/invite.md) +- [claimed-invite](references/claimed-invite.md) +- [org-invite](references/org-invite.md) +- [org-claimed-invite](references/org-claimed-invite.md) +- [ref](references/ref.md) +- [store](references/store.md) +- [app-permission-default](references/app-permission-default.md) +- [role-type](references/role-type.md) +- [org-permission-default](references/org-permission-default.md) +- [crypto-address](references/crypto-address.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [connected-account](references/connected-account.md) +- [phone-number](references/phone-number.md) +- [membership-type](references/membership-type.md) +- [node-type-registry](references/node-type-registry.md) +- [app-membership-default](references/app-membership-default.md) +- [commit](references/commit.md) +- [org-membership-default](references/org-membership-default.md) +- [audit-log](references/audit-log.md) +- [app-level](references/app-level.md) +- [email](references/email.md) +- [sql-migration](references/sql-migration.md) +- [ast-migration](references/ast-migration.md) +- [user](references/user.md) +- [app-membership](references/app-membership.md) +- [hierarchy-module](references/hierarchy-module.md) +- [current-user-id](references/current-user-id.md) +- [current-ip-address](references/current-ip-address.md) +- [current-user-agent](references/current-user-agent.md) +- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) +- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) +- [steps-achieved](references/steps-achieved.md) +- [rev-parse](references/rev-parse.md) +- [org-is-manager-of](references/org-is-manager-of.md) +- [app-permissions-get-mask](references/app-permissions-get-mask.md) +- [org-permissions-get-mask](references/org-permissions-get-mask.md) +- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) +- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) +- [get-all-objects-from-root](references/get-all-objects-from-root.md) +- [get-path-objects-from-root](references/get-path-objects-from-root.md) +- [get-object-at-path](references/get-object-at-path.md) +- [steps-required](references/steps-required.md) +- [current-user](references/current-user.md) +- [sign-out](references/sign-out.md) +- [send-account-deletion-email](references/send-account-deletion-email.md) +- [check-password](references/check-password.md) +- [submit-invite-code](references/submit-invite-code.md) +- [submit-org-invite-code](references/submit-org-invite-code.md) +- [freeze-objects](references/freeze-objects.md) +- [init-empty-repo](references/init-empty-repo.md) +- [confirm-delete-account](references/confirm-delete-account.md) +- [set-password](references/set-password.md) +- [verify-email](references/verify-email.md) +- [reset-password](references/reset-password.md) +- [remove-node-at-path](references/remove-node-at-path.md) +- [bootstrap-user](references/bootstrap-user.md) +- [set-data-at-path](references/set-data-at-path.md) +- [set-props-and-commit](references/set-props-and-commit.md) +- [provision-database-with-user](references/provision-database-with-user.md) +- [sign-in-one-time-token](references/sign-in-one-time-token.md) +- [create-user-database](references/create-user-database.md) +- [extend-token-expires](references/extend-token-expires.md) +- [sign-in](references/sign-in.md) +- [sign-up](references/sign-up.md) +- [set-field-order](references/set-field-order.md) +- [one-time-token](references/one-time-token.md) +- [insert-node-at-path](references/insert-node-at-path.md) +- [update-node-at-path](references/update-node-at-path.md) +- [set-and-commit](references/set-and-commit.md) +- [apply-rls](references/apply-rls.md) +- [forgot-password](references/forgot-password.md) +- [send-verification-email](references/send-verification-email.md) +- [verify-password](references/verify-password.md) +- [verify-totp](references/verify-totp.md) diff --git a/skills/hooks-public/references/api-module.md b/skills/hooks-public/references/api-module.md new file mode 100644 index 000000000..70d115221 --- /dev/null +++ b/skills/hooks-public/references/api-module.md @@ -0,0 +1,34 @@ +# apiModule + + + +Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server + +## Usage + +```typescript +useApiModulesQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } } }) +useApiModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } } }) +useCreateApiModuleMutation({ selection: { fields: { id: true } } }) +useUpdateApiModuleMutation({ selection: { fields: { id: true } } }) +useDeleteApiModuleMutation({}) +``` + +## Examples + +### List all apiModules + +```typescript +const { data, isLoading } = useApiModulesQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, +}); +``` + +### Create a apiModule + +```typescript +const { mutate } = useCreateApiModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', apiId: '', name: '', data: '' }); +``` diff --git a/skills/hooks-public/references/api-schema.md b/skills/hooks-public/references/api-schema.md new file mode 100644 index 000000000..369bf55c6 --- /dev/null +++ b/skills/hooks-public/references/api-schema.md @@ -0,0 +1,34 @@ +# apiSchema + + + +Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API + +## Usage + +```typescript +useApiSchemasQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } } }) +useApiSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } } }) +useCreateApiSchemaMutation({ selection: { fields: { id: true } } }) +useUpdateApiSchemaMutation({ selection: { fields: { id: true } } }) +useDeleteApiSchemaMutation({}) +``` + +## Examples + +### List all apiSchemas + +```typescript +const { data, isLoading } = useApiSchemasQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, +}); +``` + +### Create a apiSchema + +```typescript +const { mutate } = useCreateApiSchemaMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', apiId: '' }); +``` diff --git a/skills/hooks-public/references/api.md b/skills/hooks-public/references/api.md new file mode 100644 index 000000000..164c8053c --- /dev/null +++ b/skills/hooks-public/references/api.md @@ -0,0 +1,34 @@ +# api + + + +API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings + +## Usage + +```typescript +useApisQuery({ selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } } }) +useApiQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } } }) +useCreateApiMutation({ selection: { fields: { id: true } } }) +useUpdateApiMutation({ selection: { fields: { id: true } } }) +useDeleteApiMutation({}) +``` + +## Examples + +### List all apis + +```typescript +const { data, isLoading } = useApisQuery({ + selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, +}); +``` + +### Create a api + +```typescript +const { mutate } = useCreateApiMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }); +``` diff --git a/skills/hooks-public/references/app-achievement.md b/skills/hooks-public/references/app-achievement.md new file mode 100644 index 000000000..3a0751437 --- /dev/null +++ b/skills/hooks-public/references/app-achievement.md @@ -0,0 +1,34 @@ +# appAchievement + + + +Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually + +## Usage + +```typescript +useAppAchievementsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) +useAppAchievementQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) +useCreateAppAchievementMutation({ selection: { fields: { id: true } } }) +useUpdateAppAchievementMutation({ selection: { fields: { id: true } } }) +useDeleteAppAchievementMutation({}) +``` + +## Examples + +### List all appAchievements + +```typescript +const { data, isLoading } = useAppAchievementsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appAchievement + +```typescript +const { mutate } = useCreateAppAchievementMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', name: '', count: '' }); +``` diff --git a/skills/hooks-public/references/app-admin-grant.md b/skills/hooks-public/references/app-admin-grant.md new file mode 100644 index 000000000..dbfaacfe8 --- /dev/null +++ b/skills/hooks-public/references/app-admin-grant.md @@ -0,0 +1,34 @@ +# appAdminGrant + + + +Records of admin role grants and revocations between members + +## Usage + +```typescript +useAppAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useAppAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateAppAdminGrantMutation({ selection: { fields: { id: true } } }) +useUpdateAppAdminGrantMutation({ selection: { fields: { id: true } } }) +useDeleteAppAdminGrantMutation({}) +``` + +## Examples + +### List all appAdminGrants + +```typescript +const { data, isLoading } = useAppAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appAdminGrant + +```typescript +const { mutate } = useCreateAppAdminGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isGrant: '', actorId: '', grantorId: '' }); +``` diff --git a/skills/hooks-public/references/app-grant.md b/skills/hooks-public/references/app-grant.md new file mode 100644 index 000000000..38cd132ec --- /dev/null +++ b/skills/hooks-public/references/app-grant.md @@ -0,0 +1,34 @@ +# appGrant + + + +Records of individual permission grants and revocations for members via bitmask + +## Usage + +```typescript +useAppGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useAppGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateAppGrantMutation({ selection: { fields: { id: true } } }) +useUpdateAppGrantMutation({ selection: { fields: { id: true } } }) +useDeleteAppGrantMutation({}) +``` + +## Examples + +### List all appGrants + +```typescript +const { data, isLoading } = useAppGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appGrant + +```typescript +const { mutate } = useCreateAppGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); +``` diff --git a/skills/hooks-public/references/app-level-requirement.md b/skills/hooks-public/references/app-level-requirement.md new file mode 100644 index 000000000..876f64838 --- /dev/null +++ b/skills/hooks-public/references/app-level-requirement.md @@ -0,0 +1,34 @@ +# appLevelRequirement + + + +Defines the specific requirements that must be met to achieve a level + +## Usage + +```typescript +useAppLevelRequirementsQuery({ selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) +useAppLevelRequirementQuery({ id: '', selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) +useCreateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) +useUpdateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) +useDeleteAppLevelRequirementMutation({}) +``` + +## Examples + +### List all appLevelRequirements + +```typescript +const { data, isLoading } = useAppLevelRequirementsQuery({ + selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appLevelRequirement + +```typescript +const { mutate } = useCreateAppLevelRequirementMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', level: '', description: '', requiredCount: '', priority: '' }); +``` diff --git a/skills/hooks-public/references/app-level.md b/skills/hooks-public/references/app-level.md new file mode 100644 index 000000000..eb2989219 --- /dev/null +++ b/skills/hooks-public/references/app-level.md @@ -0,0 +1,34 @@ +# appLevel + + + +Defines available levels that users can achieve by completing requirements + +## Usage + +```typescript +useAppLevelsQuery({ selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) +useAppLevelQuery({ id: '', selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) +useCreateAppLevelMutation({ selection: { fields: { id: true } } }) +useUpdateAppLevelMutation({ selection: { fields: { id: true } } }) +useDeleteAppLevelMutation({}) +``` + +## Examples + +### List all appLevels + +```typescript +const { data, isLoading } = useAppLevelsQuery({ + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appLevel + +```typescript +const { mutate } = useCreateAppLevelMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', description: '', image: '', ownerId: '' }); +``` diff --git a/skills/hooks-public/references/app-limit-default.md b/skills/hooks-public/references/app-limit-default.md new file mode 100644 index 000000000..dc0a272af --- /dev/null +++ b/skills/hooks-public/references/app-limit-default.md @@ -0,0 +1,34 @@ +# appLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) +useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitDefaultMutation({}) +``` + +## Examples + +### List all appLimitDefaults + +```typescript +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); +``` + +### Create a appLimitDefault + +```typescript +const { mutate } = useCreateAppLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', max: '' }); +``` diff --git a/skills/hooks-public/references/app-limit.md b/skills/hooks-public/references/app-limit.md new file mode 100644 index 000000000..17d5b20ed --- /dev/null +++ b/skills/hooks-public/references/app-limit.md @@ -0,0 +1,34 @@ +# appLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) +useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) +useCreateAppLimitMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitMutation({}) +``` + +## Examples + +### List all appLimits + +```typescript +const { data, isLoading } = useAppLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, +}); +``` + +### Create a appLimit + +```typescript +const { mutate } = useCreateAppLimitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', num: '', max: '' }); +``` diff --git a/skills/hooks-public/references/app-membership-default.md b/skills/hooks-public/references/app-membership-default.md new file mode 100644 index 000000000..49de40fe1 --- /dev/null +++ b/skills/hooks-public/references/app-membership-default.md @@ -0,0 +1,34 @@ +# appMembershipDefault + + + +Default membership settings per entity, controlling initial approval and verification state for new members + +## Usage + +```typescript +useAppMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) +useAppMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) +useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteAppMembershipDefaultMutation({}) +``` + +## Examples + +### List all appMembershipDefaults + +```typescript +const { data, isLoading } = useAppMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +}); +``` + +### Create a appMembershipDefault + +```typescript +const { mutate } = useCreateAppMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +``` diff --git a/skills/hooks-public/references/app-membership.md b/skills/hooks-public/references/app-membership.md new file mode 100644 index 000000000..f0f2b9e9f --- /dev/null +++ b/skills/hooks-public/references/app-membership.md @@ -0,0 +1,34 @@ +# appMembership + + + +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + +## Usage + +```typescript +useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) +useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) +useDeleteAppMembershipMutation({}) +``` + +## Examples + +### List all appMemberships + +```typescript +const { data, isLoading } = useAppMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, +}); +``` + +### Create a appMembership + +```typescript +const { mutate } = useCreateAppMembershipMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +``` diff --git a/skills/hooks-public/references/app-owner-grant.md b/skills/hooks-public/references/app-owner-grant.md new file mode 100644 index 000000000..4ffbb08e3 --- /dev/null +++ b/skills/hooks-public/references/app-owner-grant.md @@ -0,0 +1,34 @@ +# appOwnerGrant + + + +Records of ownership transfers and grants between members + +## Usage + +```typescript +useAppOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useAppOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) +useUpdateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) +useDeleteAppOwnerGrantMutation({}) +``` + +## Examples + +### List all appOwnerGrants + +```typescript +const { data, isLoading } = useAppOwnerGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appOwnerGrant + +```typescript +const { mutate } = useCreateAppOwnerGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isGrant: '', actorId: '', grantorId: '' }); +``` diff --git a/skills/hooks-public/references/app-permission-default.md b/skills/hooks-public/references/app-permission-default.md new file mode 100644 index 000000000..b4fa77c76 --- /dev/null +++ b/skills/hooks-public/references/app-permission-default.md @@ -0,0 +1,34 @@ +# appPermissionDefault + + + +Stores the default permission bitmask assigned to new members upon joining + +## Usage + +```typescript +useAppPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true } } }) +useAppPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true } } }) +useCreateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteAppPermissionDefaultMutation({}) +``` + +## Examples + +### List all appPermissionDefaults + +```typescript +const { data, isLoading } = useAppPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true } }, +}); +``` + +### Create a appPermissionDefault + +```typescript +const { mutate } = useCreateAppPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissions: '' }); +``` diff --git a/skills/hooks-public/references/app-permission.md b/skills/hooks-public/references/app-permission.md new file mode 100644 index 000000000..3d015a2bc --- /dev/null +++ b/skills/hooks-public/references/app-permission.md @@ -0,0 +1,34 @@ +# appPermission + + + +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + +## Usage + +```typescript +useAppPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) +useAppPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) +useCreateAppPermissionMutation({ selection: { fields: { id: true } } }) +useUpdateAppPermissionMutation({ selection: { fields: { id: true } } }) +useDeleteAppPermissionMutation({}) +``` + +## Examples + +### List all appPermissions + +```typescript +const { data, isLoading } = useAppPermissionsQuery({ + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); +``` + +### Create a appPermission + +```typescript +const { mutate } = useCreateAppPermissionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', bitnum: '', bitstr: '', description: '' }); +``` diff --git a/skills/hooks-public/references/app-permissions-get-by-mask.md b/skills/hooks-public/references/app-permissions-get-by-mask.md new file mode 100644 index 000000000..36b60a157 --- /dev/null +++ b/skills/hooks-public/references/app-permissions-get-by-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetByMask + + + +Reads and enables pagination through a set of `AppPermission`. + +## Usage + +```typescript +useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useAppPermissionsGetByMaskQuery + +```typescript +const { data, isLoading } = useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-public/references/app-permissions-get-mask-by-names.md b/skills/hooks-public/references/app-permissions-get-mask-by-names.md new file mode 100644 index 000000000..d7ae1ad22 --- /dev/null +++ b/skills/hooks-public/references/app-permissions-get-mask-by-names.md @@ -0,0 +1,19 @@ +# appPermissionsGetMaskByNames + + + +React Query query hook for appPermissionsGetMaskByNames + +## Usage + +```typescript +useAppPermissionsGetMaskByNamesQuery({ names: '' }) +``` + +## Examples + +### Use useAppPermissionsGetMaskByNamesQuery + +```typescript +const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ names: '' }); +``` diff --git a/skills/hooks-public/references/app-permissions-get-mask.md b/skills/hooks-public/references/app-permissions-get-mask.md new file mode 100644 index 000000000..291cecff5 --- /dev/null +++ b/skills/hooks-public/references/app-permissions-get-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetMask + + + +React Query query hook for appPermissionsGetMask + +## Usage + +```typescript +useAppPermissionsGetMaskQuery({ ids: '' }) +``` + +## Examples + +### Use useAppPermissionsGetMaskQuery + +```typescript +const { data, isLoading } = useAppPermissionsGetMaskQuery({ ids: '' }); +``` diff --git a/skills/hooks-public/references/app-permissions-get-padded-mask.md b/skills/hooks-public/references/app-permissions-get-padded-mask.md new file mode 100644 index 000000000..fa12f4bda --- /dev/null +++ b/skills/hooks-public/references/app-permissions-get-padded-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetPaddedMask + + + +React Query query hook for appPermissionsGetPaddedMask + +## Usage + +```typescript +useAppPermissionsGetPaddedMaskQuery({ mask: '' }) +``` + +## Examples + +### Use useAppPermissionsGetPaddedMaskQuery + +```typescript +const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ mask: '' }); +``` diff --git a/skills/hooks-public/references/app-step.md b/skills/hooks-public/references/app-step.md new file mode 100644 index 000000000..dff4c8520 --- /dev/null +++ b/skills/hooks-public/references/app-step.md @@ -0,0 +1,34 @@ +# appStep + + + +Log of individual user actions toward level requirements; every single step ever taken is recorded here + +## Usage + +```typescript +useAppStepsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) +useAppStepQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) +useCreateAppStepMutation({ selection: { fields: { id: true } } }) +useUpdateAppStepMutation({ selection: { fields: { id: true } } }) +useDeleteAppStepMutation({}) +``` + +## Examples + +### List all appSteps + +```typescript +const { data, isLoading } = useAppStepsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appStep + +```typescript +const { mutate } = useCreateAppStepMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', name: '', count: '' }); +``` diff --git a/skills/hooks-public/references/app.md b/skills/hooks-public/references/app.md new file mode 100644 index 000000000..0aa959cbf --- /dev/null +++ b/skills/hooks-public/references/app.md @@ -0,0 +1,34 @@ +# app + + + +Mobile and native app configuration linked to a site, including store links and identifiers + +## Usage + +```typescript +useAppsQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } } }) +useAppQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } } }) +useCreateAppMutation({ selection: { fields: { id: true } } }) +useUpdateAppMutation({ selection: { fields: { id: true } } }) +useDeleteAppMutation({}) +``` + +## Examples + +### List all apps + +```typescript +const { data, isLoading } = useAppsQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, +}); +``` + +### Create a app + +```typescript +const { mutate } = useCreateAppMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }); +``` diff --git a/skills/hooks-public/references/apply-rls.md b/skills/hooks-public/references/apply-rls.md new file mode 100644 index 000000000..484505759 --- /dev/null +++ b/skills/hooks-public/references/apply-rls.md @@ -0,0 +1,20 @@ +# applyRls + + + +React Query mutation hook for applyRls + +## Usage + +```typescript +const { mutate } = useApplyRlsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useApplyRlsMutation + +```typescript +const { mutate, isLoading } = useApplyRlsMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/ast-migration.md b/skills/hooks-public/references/ast-migration.md new file mode 100644 index 000000000..0f7b2b67e --- /dev/null +++ b/skills/hooks-public/references/ast-migration.md @@ -0,0 +1,34 @@ +# astMigration + + + +React Query hooks for AstMigration data operations + +## Usage + +```typescript +useAstMigrationsQuery({ selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) +useAstMigrationQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) +useCreateAstMigrationMutation({ selection: { fields: { id: true } } }) +useUpdateAstMigrationMutation({ selection: { fields: { id: true } } }) +useDeleteAstMigrationMutation({}) +``` + +## Examples + +### List all astMigrations + +```typescript +const { data, isLoading } = useAstMigrationsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); +``` + +### Create a astMigration + +```typescript +const { mutate } = useCreateAstMigrationMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +``` diff --git a/skills/hooks-public/references/audit-log.md b/skills/hooks-public/references/audit-log.md new file mode 100644 index 000000000..2510fbb60 --- /dev/null +++ b/skills/hooks-public/references/audit-log.md @@ -0,0 +1,34 @@ +# auditLog + + + +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + +## Usage + +```typescript +useAuditLogsQuery({ selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) +useAuditLogQuery({ id: '', selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) +useCreateAuditLogMutation({ selection: { fields: { id: true } } }) +useUpdateAuditLogMutation({ selection: { fields: { id: true } } }) +useDeleteAuditLogMutation({}) +``` + +## Examples + +### List all auditLogs + +```typescript +const { data, isLoading } = useAuditLogsQuery({ + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, +}); +``` + +### Create a auditLog + +```typescript +const { mutate } = useCreateAuditLogMutation({ + selection: { fields: { id: true } }, +}); +mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); +``` diff --git a/skills/hooks-public/references/bootstrap-user.md b/skills/hooks-public/references/bootstrap-user.md new file mode 100644 index 000000000..ad6c0fff8 --- /dev/null +++ b/skills/hooks-public/references/bootstrap-user.md @@ -0,0 +1,20 @@ +# bootstrapUser + + + +React Query mutation hook for bootstrapUser + +## Usage + +```typescript +const { mutate } = useBootstrapUserMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useBootstrapUserMutation + +```typescript +const { mutate, isLoading } = useBootstrapUserMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/check-constraint.md b/skills/hooks-public/references/check-constraint.md new file mode 100644 index 000000000..f77483e84 --- /dev/null +++ b/skills/hooks-public/references/check-constraint.md @@ -0,0 +1,34 @@ +# checkConstraint + + + +React Query hooks for CheckConstraint data operations + +## Usage + +```typescript +useCheckConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCheckConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateCheckConstraintMutation({ selection: { fields: { id: true } } }) +useUpdateCheckConstraintMutation({ selection: { fields: { id: true } } }) +useDeleteCheckConstraintMutation({}) +``` + +## Examples + +### List all checkConstraints + +```typescript +const { data, isLoading } = useCheckConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a checkConstraint + +```typescript +const { mutate } = useCreateCheckConstraintMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/skills/hooks-public/references/check-password.md b/skills/hooks-public/references/check-password.md new file mode 100644 index 000000000..d288b0d59 --- /dev/null +++ b/skills/hooks-public/references/check-password.md @@ -0,0 +1,20 @@ +# checkPassword + + + +React Query mutation hook for checkPassword + +## Usage + +```typescript +const { mutate } = useCheckPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useCheckPasswordMutation + +```typescript +const { mutate, isLoading } = useCheckPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/claimed-invite.md b/skills/hooks-public/references/claimed-invite.md new file mode 100644 index 000000000..7b3be74dd --- /dev/null +++ b/skills/hooks-public/references/claimed-invite.md @@ -0,0 +1,34 @@ +# claimedInvite + + + +Records of successfully claimed invitations, linking senders to receivers + +## Usage + +```typescript +useClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) +useClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) +useCreateClaimedInviteMutation({ selection: { fields: { id: true } } }) +useUpdateClaimedInviteMutation({ selection: { fields: { id: true } } }) +useDeleteClaimedInviteMutation({}) +``` + +## Examples + +### List all claimedInvites + +```typescript +const { data, isLoading } = useClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a claimedInvite + +```typescript +const { mutate } = useCreateClaimedInviteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ data: '', senderId: '', receiverId: '' }); +``` diff --git a/skills/hooks-public/references/commit.md b/skills/hooks-public/references/commit.md new file mode 100644 index 000000000..6c4d4710e --- /dev/null +++ b/skills/hooks-public/references/commit.md @@ -0,0 +1,34 @@ +# commit + + + +A commit records changes to the repository. + +## Usage + +```typescript +useCommitsQuery({ selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCommitQuery({ id: '', selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCreateCommitMutation({ selection: { fields: { id: true } } }) +useUpdateCommitMutation({ selection: { fields: { id: true } } }) +useDeleteCommitMutation({}) +``` + +## Examples + +### List all commits + +```typescript +const { data, isLoading } = useCommitsQuery({ + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); +``` + +### Create a commit + +```typescript +const { mutate } = useCreateCommitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +``` diff --git a/skills/hooks-public/references/confirm-delete-account.md b/skills/hooks-public/references/confirm-delete-account.md new file mode 100644 index 000000000..2cbaddf1e --- /dev/null +++ b/skills/hooks-public/references/confirm-delete-account.md @@ -0,0 +1,20 @@ +# confirmDeleteAccount + + + +React Query mutation hook for confirmDeleteAccount + +## Usage + +```typescript +const { mutate } = useConfirmDeleteAccountMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useConfirmDeleteAccountMutation + +```typescript +const { mutate, isLoading } = useConfirmDeleteAccountMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/connected-account.md b/skills/hooks-public/references/connected-account.md new file mode 100644 index 000000000..460e81e5b --- /dev/null +++ b/skills/hooks-public/references/connected-account.md @@ -0,0 +1,34 @@ +# connectedAccount + + + +OAuth and social login connections linking external service accounts to users + +## Usage + +```typescript +useConnectedAccountsQuery({ selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) +useConnectedAccountQuery({ id: '', selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) +useCreateConnectedAccountMutation({ selection: { fields: { id: true } } }) +useUpdateConnectedAccountMutation({ selection: { fields: { id: true } } }) +useDeleteConnectedAccountMutation({}) +``` + +## Examples + +### List all connectedAccounts + +```typescript +const { data, isLoading } = useConnectedAccountsQuery({ + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a connectedAccount + +```typescript +const { mutate } = useCreateConnectedAccountMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); +``` diff --git a/skills/hooks-public/references/connected-accounts-module.md b/skills/hooks-public/references/connected-accounts-module.md new file mode 100644 index 000000000..577ef3601 --- /dev/null +++ b/skills/hooks-public/references/connected-accounts-module.md @@ -0,0 +1,34 @@ +# connectedAccountsModule + + + +React Query hooks for ConnectedAccountsModule data operations + +## Usage + +```typescript +useConnectedAccountsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) +useConnectedAccountsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) +useCreateConnectedAccountsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateConnectedAccountsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteConnectedAccountsModuleMutation({}) +``` + +## Examples + +### List all connectedAccountsModules + +```typescript +const { data, isLoading } = useConnectedAccountsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, +}); +``` + +### Create a connectedAccountsModule + +```typescript +const { mutate } = useCreateConnectedAccountsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); +``` diff --git a/skills/hooks-public/references/create-user-database.md b/skills/hooks-public/references/create-user-database.md new file mode 100644 index 000000000..1242ebc84 --- /dev/null +++ b/skills/hooks-public/references/create-user-database.md @@ -0,0 +1,36 @@ +# createUserDatabase + + + +Creates a new user database with all required modules, permissions, and RLS policies. + +Parameters: + - database_name: Name for the new database (required) + - owner_id: UUID of the owner user (required) + - include_invites: Include invite system (default: true) + - include_groups: Include group-level memberships (default: false) + - include_levels: Include levels/achievements (default: false) + - bitlen: Bit length for permission masks (default: 64) + - tokens_expiration: Token expiration interval (default: 30 days) + +Returns the database_id UUID of the newly created database. + +Example usage: + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups + + +## Usage + +```typescript +const { mutate } = useCreateUserDatabaseMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useCreateUserDatabaseMutation + +```typescript +const { mutate, isLoading } = useCreateUserDatabaseMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/crypto-address.md b/skills/hooks-public/references/crypto-address.md new file mode 100644 index 000000000..99c41ff1e --- /dev/null +++ b/skills/hooks-public/references/crypto-address.md @@ -0,0 +1,34 @@ +# cryptoAddress + + + +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification + +## Usage + +```typescript +useCryptoAddressesQuery({ selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCryptoAddressQuery({ id: '', selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCreateCryptoAddressMutation({ selection: { fields: { id: true } } }) +useUpdateCryptoAddressMutation({ selection: { fields: { id: true } } }) +useDeleteCryptoAddressMutation({}) +``` + +## Examples + +### List all cryptoAddresses + +```typescript +const { data, isLoading } = useCryptoAddressesQuery({ + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a cryptoAddress + +```typescript +const { mutate } = useCreateCryptoAddressMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); +``` diff --git a/skills/hooks-public/references/crypto-addresses-module.md b/skills/hooks-public/references/crypto-addresses-module.md new file mode 100644 index 000000000..da4903516 --- /dev/null +++ b/skills/hooks-public/references/crypto-addresses-module.md @@ -0,0 +1,34 @@ +# cryptoAddressesModule + + + +React Query hooks for CryptoAddressesModule data operations + +## Usage + +```typescript +useCryptoAddressesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } } }) +useCryptoAddressesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } } }) +useCreateCryptoAddressesModuleMutation({ selection: { fields: { id: true } } }) +useUpdateCryptoAddressesModuleMutation({ selection: { fields: { id: true } } }) +useDeleteCryptoAddressesModuleMutation({}) +``` + +## Examples + +### List all cryptoAddressesModules + +```typescript +const { data, isLoading } = useCryptoAddressesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }, +}); +``` + +### Create a cryptoAddressesModule + +```typescript +const { mutate } = useCreateCryptoAddressesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }); +``` diff --git a/skills/hooks-public/references/crypto-auth-module.md b/skills/hooks-public/references/crypto-auth-module.md new file mode 100644 index 000000000..ffb749fae --- /dev/null +++ b/skills/hooks-public/references/crypto-auth-module.md @@ -0,0 +1,34 @@ +# cryptoAuthModule + + + +React Query hooks for CryptoAuthModule data operations + +## Usage + +```typescript +useCryptoAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } } }) +useCryptoAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } } }) +useCreateCryptoAuthModuleMutation({ selection: { fields: { id: true } } }) +useUpdateCryptoAuthModuleMutation({ selection: { fields: { id: true } } }) +useDeleteCryptoAuthModuleMutation({}) +``` + +## Examples + +### List all cryptoAuthModules + +```typescript +const { data, isLoading } = useCryptoAuthModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, +}); +``` + +### Create a cryptoAuthModule + +```typescript +const { mutate } = useCreateCryptoAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }); +``` diff --git a/skills/hooks-public/references/current-ip-address.md b/skills/hooks-public/references/current-ip-address.md new file mode 100644 index 000000000..ddb702e16 --- /dev/null +++ b/skills/hooks-public/references/current-ip-address.md @@ -0,0 +1,19 @@ +# currentIpAddress + + + +React Query query hook for currentIpAddress + +## Usage + +```typescript +useCurrentIpAddressQuery() +``` + +## Examples + +### Use useCurrentIpAddressQuery + +```typescript +const { data, isLoading } = useCurrentIpAddressQuery(); +``` diff --git a/skills/hooks-public/references/current-user-agent.md b/skills/hooks-public/references/current-user-agent.md new file mode 100644 index 000000000..3bc483ff7 --- /dev/null +++ b/skills/hooks-public/references/current-user-agent.md @@ -0,0 +1,19 @@ +# currentUserAgent + + + +React Query query hook for currentUserAgent + +## Usage + +```typescript +useCurrentUserAgentQuery() +``` + +## Examples + +### Use useCurrentUserAgentQuery + +```typescript +const { data, isLoading } = useCurrentUserAgentQuery(); +``` diff --git a/skills/hooks-public/references/current-user-id.md b/skills/hooks-public/references/current-user-id.md new file mode 100644 index 000000000..0dcf21a7f --- /dev/null +++ b/skills/hooks-public/references/current-user-id.md @@ -0,0 +1,19 @@ +# currentUserId + + + +React Query query hook for currentUserId + +## Usage + +```typescript +useCurrentUserIdQuery() +``` + +## Examples + +### Use useCurrentUserIdQuery + +```typescript +const { data, isLoading } = useCurrentUserIdQuery(); +``` diff --git a/skills/hooks-public/references/current-user.md b/skills/hooks-public/references/current-user.md new file mode 100644 index 000000000..3411f5951 --- /dev/null +++ b/skills/hooks-public/references/current-user.md @@ -0,0 +1,19 @@ +# currentUser + + + +React Query query hook for currentUser + +## Usage + +```typescript +useCurrentUserQuery() +``` + +## Examples + +### Use useCurrentUserQuery + +```typescript +const { data, isLoading } = useCurrentUserQuery(); +``` diff --git a/skills/hooks-public/references/database-provision-module.md b/skills/hooks-public/references/database-provision-module.md new file mode 100644 index 000000000..f4f361430 --- /dev/null +++ b/skills/hooks-public/references/database-provision-module.md @@ -0,0 +1,34 @@ +# databaseProvisionModule + + + +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. + +## Usage + +```typescript +useDatabaseProvisionModulesQuery({ selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } } }) +useDatabaseProvisionModuleQuery({ id: '', selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } } }) +useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseProvisionModuleMutation({}) +``` + +## Examples + +### List all databaseProvisionModules + +```typescript +const { data, isLoading } = useDatabaseProvisionModulesQuery({ + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, +}); +``` + +### Create a databaseProvisionModule + +```typescript +const { mutate } = useCreateDatabaseProvisionModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); +``` diff --git a/skills/hooks-public/references/database.md b/skills/hooks-public/references/database.md new file mode 100644 index 000000000..5a99d6220 --- /dev/null +++ b/skills/hooks-public/references/database.md @@ -0,0 +1,34 @@ +# database + + + +React Query hooks for Database data operations + +## Usage + +```typescript +useDatabasesQuery({ selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } } }) +useDatabaseQuery({ id: '', selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } } }) +useCreateDatabaseMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseMutation({}) +``` + +## Examples + +### List all databases + +```typescript +const { data, isLoading } = useDatabasesQuery({ + selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a database + +```typescript +const { mutate } = useCreateDatabaseMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); +``` diff --git a/skills/hooks-public/references/default-ids-module.md b/skills/hooks-public/references/default-ids-module.md new file mode 100644 index 000000000..451ff48d5 --- /dev/null +++ b/skills/hooks-public/references/default-ids-module.md @@ -0,0 +1,34 @@ +# defaultIdsModule + + + +React Query hooks for DefaultIdsModule data operations + +## Usage + +```typescript +useDefaultIdsModulesQuery({ selection: { fields: { id: true, databaseId: true } } }) +useDefaultIdsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true } } }) +useCreateDefaultIdsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateDefaultIdsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteDefaultIdsModuleMutation({}) +``` + +## Examples + +### List all defaultIdsModules + +```typescript +const { data, isLoading } = useDefaultIdsModulesQuery({ + selection: { fields: { id: true, databaseId: true } }, +}); +``` + +### Create a defaultIdsModule + +```typescript +const { mutate } = useCreateDefaultIdsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '' }); +``` diff --git a/skills/hooks-public/references/default-privilege.md b/skills/hooks-public/references/default-privilege.md new file mode 100644 index 000000000..c2d817893 --- /dev/null +++ b/skills/hooks-public/references/default-privilege.md @@ -0,0 +1,34 @@ +# defaultPrivilege + + + +React Query hooks for DefaultPrivilege data operations + +## Usage + +```typescript +useDefaultPrivilegesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } } }) +useDefaultPrivilegeQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } } }) +useCreateDefaultPrivilegeMutation({ selection: { fields: { id: true } } }) +useUpdateDefaultPrivilegeMutation({ selection: { fields: { id: true } } }) +useDeleteDefaultPrivilegeMutation({}) +``` + +## Examples + +### List all defaultPrivileges + +```typescript +const { data, isLoading } = useDefaultPrivilegesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, +}); +``` + +### Create a defaultPrivilege + +```typescript +const { mutate } = useCreateDefaultPrivilegeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }); +``` diff --git a/skills/hooks-public/references/denormalized-table-field.md b/skills/hooks-public/references/denormalized-table-field.md new file mode 100644 index 000000000..fddc67c80 --- /dev/null +++ b/skills/hooks-public/references/denormalized-table-field.md @@ -0,0 +1,34 @@ +# denormalizedTableField + + + +React Query hooks for DenormalizedTableField data operations + +## Usage + +```typescript +useDenormalizedTableFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } } }) +useDenormalizedTableFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } } }) +useCreateDenormalizedTableFieldMutation({ selection: { fields: { id: true } } }) +useUpdateDenormalizedTableFieldMutation({ selection: { fields: { id: true } } }) +useDeleteDenormalizedTableFieldMutation({}) +``` + +## Examples + +### List all denormalizedTableFields + +```typescript +const { data, isLoading } = useDenormalizedTableFieldsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, +}); +``` + +### Create a denormalizedTableField + +```typescript +const { mutate } = useCreateDenormalizedTableFieldMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); +``` diff --git a/skills/hooks-public/references/domain.md b/skills/hooks-public/references/domain.md new file mode 100644 index 000000000..2c26a3fef --- /dev/null +++ b/skills/hooks-public/references/domain.md @@ -0,0 +1,34 @@ +# domain + + + +DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site + +## Usage + +```typescript +useDomainsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } } }) +useDomainQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } } }) +useCreateDomainMutation({ selection: { fields: { id: true } } }) +useUpdateDomainMutation({ selection: { fields: { id: true } } }) +useDeleteDomainMutation({}) +``` + +## Examples + +### List all domains + +```typescript +const { data, isLoading } = useDomainsQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, +}); +``` + +### Create a domain + +```typescript +const { mutate } = useCreateDomainMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }); +``` diff --git a/skills/hooks-public/references/email.md b/skills/hooks-public/references/email.md new file mode 100644 index 000000000..4bf0c0eab --- /dev/null +++ b/skills/hooks-public/references/email.md @@ -0,0 +1,34 @@ +# email + + + +User email addresses with verification and primary-email management + +## Usage + +```typescript +useEmailsQuery({ selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useEmailQuery({ id: '', selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCreateEmailMutation({ selection: { fields: { id: true } } }) +useUpdateEmailMutation({ selection: { fields: { id: true } } }) +useDeleteEmailMutation({}) +``` + +## Examples + +### List all emails + +```typescript +const { data, isLoading } = useEmailsQuery({ + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a email + +```typescript +const { mutate } = useCreateEmailMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); +``` diff --git a/skills/hooks-public/references/emails-module.md b/skills/hooks-public/references/emails-module.md new file mode 100644 index 000000000..9ea341fb2 --- /dev/null +++ b/skills/hooks-public/references/emails-module.md @@ -0,0 +1,34 @@ +# emailsModule + + + +React Query hooks for EmailsModule data operations + +## Usage + +```typescript +useEmailsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) +useEmailsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) +useCreateEmailsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateEmailsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteEmailsModuleMutation({}) +``` + +## Examples + +### List all emailsModules + +```typescript +const { data, isLoading } = useEmailsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, +}); +``` + +### Create a emailsModule + +```typescript +const { mutate } = useCreateEmailsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); +``` diff --git a/skills/hooks-public/references/encrypted-secrets-module.md b/skills/hooks-public/references/encrypted-secrets-module.md new file mode 100644 index 000000000..505b8af62 --- /dev/null +++ b/skills/hooks-public/references/encrypted-secrets-module.md @@ -0,0 +1,34 @@ +# encryptedSecretsModule + + + +React Query hooks for EncryptedSecretsModule data operations + +## Usage + +```typescript +useEncryptedSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useEncryptedSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useCreateEncryptedSecretsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateEncryptedSecretsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteEncryptedSecretsModuleMutation({}) +``` + +## Examples + +### List all encryptedSecretsModules + +```typescript +const { data, isLoading } = useEncryptedSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a encryptedSecretsModule + +```typescript +const { mutate } = useCreateEncryptedSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/skills/hooks-public/references/extend-token-expires.md b/skills/hooks-public/references/extend-token-expires.md new file mode 100644 index 000000000..ecbad8c6a --- /dev/null +++ b/skills/hooks-public/references/extend-token-expires.md @@ -0,0 +1,20 @@ +# extendTokenExpires + + + +React Query mutation hook for extendTokenExpires + +## Usage + +```typescript +const { mutate } = useExtendTokenExpiresMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useExtendTokenExpiresMutation + +```typescript +const { mutate, isLoading } = useExtendTokenExpiresMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/field-module.md b/skills/hooks-public/references/field-module.md new file mode 100644 index 000000000..944ef2b91 --- /dev/null +++ b/skills/hooks-public/references/field-module.md @@ -0,0 +1,34 @@ +# fieldModule + + + +React Query hooks for FieldModule data operations + +## Usage + +```typescript +useFieldModulesQuery({ selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } } }) +useFieldModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } } }) +useCreateFieldModuleMutation({ selection: { fields: { id: true } } }) +useUpdateFieldModuleMutation({ selection: { fields: { id: true } } }) +useDeleteFieldModuleMutation({}) +``` + +## Examples + +### List all fieldModules + +```typescript +const { data, isLoading } = useFieldModulesQuery({ + selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }, +}); +``` + +### Create a fieldModule + +```typescript +const { mutate } = useCreateFieldModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }); +``` diff --git a/skills/hooks-public/references/field.md b/skills/hooks-public/references/field.md new file mode 100644 index 000000000..cde3c6dc5 --- /dev/null +++ b/skills/hooks-public/references/field.md @@ -0,0 +1,34 @@ +# field + + + +React Query hooks for Field data operations + +## Usage + +```typescript +useFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } } }) +useFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } } }) +useCreateFieldMutation({ selection: { fields: { id: true } } }) +useUpdateFieldMutation({ selection: { fields: { id: true } } }) +useDeleteFieldMutation({}) +``` + +## Examples + +### List all fields + +```typescript +const { data, isLoading } = useFieldsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a field + +```typescript +const { mutate } = useCreateFieldMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }); +``` diff --git a/skills/hooks-public/references/foreign-key-constraint.md b/skills/hooks-public/references/foreign-key-constraint.md new file mode 100644 index 000000000..37446aa14 --- /dev/null +++ b/skills/hooks-public/references/foreign-key-constraint.md @@ -0,0 +1,34 @@ +# foreignKeyConstraint + + + +React Query hooks for ForeignKeyConstraint data operations + +## Usage + +```typescript +useForeignKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useForeignKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) +useUpdateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) +useDeleteForeignKeyConstraintMutation({}) +``` + +## Examples + +### List all foreignKeyConstraints + +```typescript +const { data, isLoading } = useForeignKeyConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a foreignKeyConstraint + +```typescript +const { mutate } = useCreateForeignKeyConstraintMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/skills/hooks-public/references/forgot-password.md b/skills/hooks-public/references/forgot-password.md new file mode 100644 index 000000000..04d19984b --- /dev/null +++ b/skills/hooks-public/references/forgot-password.md @@ -0,0 +1,20 @@ +# forgotPassword + + + +React Query mutation hook for forgotPassword + +## Usage + +```typescript +const { mutate } = useForgotPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useForgotPasswordMutation + +```typescript +const { mutate, isLoading } = useForgotPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/freeze-objects.md b/skills/hooks-public/references/freeze-objects.md new file mode 100644 index 000000000..15d3b5afc --- /dev/null +++ b/skills/hooks-public/references/freeze-objects.md @@ -0,0 +1,20 @@ +# freezeObjects + + + +React Query mutation hook for freezeObjects + +## Usage + +```typescript +const { mutate } = useFreezeObjectsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useFreezeObjectsMutation + +```typescript +const { mutate, isLoading } = useFreezeObjectsMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/full-text-search.md b/skills/hooks-public/references/full-text-search.md new file mode 100644 index 000000000..9f921e353 --- /dev/null +++ b/skills/hooks-public/references/full-text-search.md @@ -0,0 +1,34 @@ +# fullTextSearch + + + +React Query hooks for FullTextSearch data operations + +## Usage + +```typescript +useFullTextSearchesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } } }) +useFullTextSearchQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } } }) +useCreateFullTextSearchMutation({ selection: { fields: { id: true } } }) +useUpdateFullTextSearchMutation({ selection: { fields: { id: true } } }) +useDeleteFullTextSearchMutation({}) +``` + +## Examples + +### List all fullTextSearches + +```typescript +const { data, isLoading } = useFullTextSearchesQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a fullTextSearch + +```typescript +const { mutate } = useCreateFullTextSearchMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }); +``` diff --git a/skills/hooks-public/references/get-all-objects-from-root.md b/skills/hooks-public/references/get-all-objects-from-root.md new file mode 100644 index 000000000..dea9b354e --- /dev/null +++ b/skills/hooks-public/references/get-all-objects-from-root.md @@ -0,0 +1,19 @@ +# getAllObjectsFromRoot + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useGetAllObjectsFromRootQuery + +```typescript +const { data, isLoading } = useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-public/references/get-all-record.md b/skills/hooks-public/references/get-all-record.md new file mode 100644 index 000000000..6251812bb --- /dev/null +++ b/skills/hooks-public/references/get-all-record.md @@ -0,0 +1,31 @@ +# getAllRecord + + + +React Query hooks for GetAllRecord data operations + +## Usage + +```typescript +useGetAllQuery({ selection: { fields: { path: true, data: true } } }) +useCreateGetAllRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all getAll + +```typescript +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); +``` + +### Create a getAllRecord + +```typescript +const { mutate } = useCreateGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ path: '', data: '' }); +``` diff --git a/skills/hooks-public/references/get-object-at-path.md b/skills/hooks-public/references/get-object-at-path.md new file mode 100644 index 000000000..7f8aeed00 --- /dev/null +++ b/skills/hooks-public/references/get-object-at-path.md @@ -0,0 +1,19 @@ +# getObjectAtPath + + + +React Query query hook for getObjectAtPath + +## Usage + +```typescript +useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) +``` + +## Examples + +### Use useGetObjectAtPathQuery + +```typescript +const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); +``` diff --git a/skills/hooks-public/references/get-path-objects-from-root.md b/skills/hooks-public/references/get-path-objects-from-root.md new file mode 100644 index 000000000..a453967c7 --- /dev/null +++ b/skills/hooks-public/references/get-path-objects-from-root.md @@ -0,0 +1,19 @@ +# getPathObjectsFromRoot + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useGetPathObjectsFromRootQuery + +```typescript +const { data, isLoading } = useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-public/references/hierarchy-module.md b/skills/hooks-public/references/hierarchy-module.md new file mode 100644 index 000000000..d873e2119 --- /dev/null +++ b/skills/hooks-public/references/hierarchy-module.md @@ -0,0 +1,34 @@ +# hierarchyModule + + + +React Query hooks for HierarchyModule data operations + +## Usage + +```typescript +useHierarchyModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } } }) +useHierarchyModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } } }) +useCreateHierarchyModuleMutation({ selection: { fields: { id: true } } }) +useUpdateHierarchyModuleMutation({ selection: { fields: { id: true } } }) +useDeleteHierarchyModuleMutation({}) +``` + +## Examples + +### List all hierarchyModules + +```typescript +const { data, isLoading } = useHierarchyModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }, +}); +``` + +### Create a hierarchyModule + +```typescript +const { mutate } = useCreateHierarchyModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }); +``` diff --git a/skills/hooks-public/references/index.md b/skills/hooks-public/references/index.md new file mode 100644 index 000000000..59168a9b3 --- /dev/null +++ b/skills/hooks-public/references/index.md @@ -0,0 +1,34 @@ +# index + + + +React Query hooks for Index data operations + +## Usage + +```typescript +useIndicesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useIndexQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateIndexMutation({ selection: { fields: { id: true } } }) +useUpdateIndexMutation({ selection: { fields: { id: true } } }) +useDeleteIndexMutation({}) +``` + +## Examples + +### List all indices + +```typescript +const { data, isLoading } = useIndicesQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a index + +```typescript +const { mutate } = useCreateIndexMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/skills/hooks-public/references/init-empty-repo.md b/skills/hooks-public/references/init-empty-repo.md new file mode 100644 index 000000000..08928b0f4 --- /dev/null +++ b/skills/hooks-public/references/init-empty-repo.md @@ -0,0 +1,20 @@ +# initEmptyRepo + + + +React Query mutation hook for initEmptyRepo + +## Usage + +```typescript +const { mutate } = useInitEmptyRepoMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInitEmptyRepoMutation + +```typescript +const { mutate, isLoading } = useInitEmptyRepoMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/insert-node-at-path.md b/skills/hooks-public/references/insert-node-at-path.md new file mode 100644 index 000000000..4b19bea31 --- /dev/null +++ b/skills/hooks-public/references/insert-node-at-path.md @@ -0,0 +1,20 @@ +# insertNodeAtPath + + + +React Query mutation hook for insertNodeAtPath + +## Usage + +```typescript +const { mutate } = useInsertNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInsertNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useInsertNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/invite.md b/skills/hooks-public/references/invite.md new file mode 100644 index 000000000..3d968b414 --- /dev/null +++ b/skills/hooks-public/references/invite.md @@ -0,0 +1,34 @@ +# invite + + + +Invitation records sent to prospective members via email, with token-based redemption and expiration + +## Usage + +```typescript +useInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) +useInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) +useCreateInviteMutation({ selection: { fields: { id: true } } }) +useUpdateInviteMutation({ selection: { fields: { id: true } } }) +useDeleteInviteMutation({}) +``` + +## Examples + +### List all invites + +```typescript +const { data, isLoading } = useInvitesQuery({ + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a invite + +```typescript +const { mutate } = useCreateInviteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); +``` diff --git a/skills/hooks-public/references/invites-module.md b/skills/hooks-public/references/invites-module.md new file mode 100644 index 000000000..aba033d2c --- /dev/null +++ b/skills/hooks-public/references/invites-module.md @@ -0,0 +1,34 @@ +# invitesModule + + + +React Query hooks for InvitesModule data operations + +## Usage + +```typescript +useInvitesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } } }) +useInvitesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } } }) +useCreateInvitesModuleMutation({ selection: { fields: { id: true } } }) +useUpdateInvitesModuleMutation({ selection: { fields: { id: true } } }) +useDeleteInvitesModuleMutation({}) +``` + +## Examples + +### List all invitesModules + +```typescript +const { data, isLoading } = useInvitesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }, +}); +``` + +### Create a invitesModule + +```typescript +const { mutate } = useCreateInvitesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }); +``` diff --git a/skills/hooks-public/references/levels-module.md b/skills/hooks-public/references/levels-module.md new file mode 100644 index 000000000..33d5426f7 --- /dev/null +++ b/skills/hooks-public/references/levels-module.md @@ -0,0 +1,34 @@ +# levelsModule + + + +React Query hooks for LevelsModule data operations + +## Usage + +```typescript +useLevelsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) +useLevelsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) +useCreateLevelsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateLevelsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteLevelsModuleMutation({}) +``` + +## Examples + +### List all levelsModules + +```typescript +const { data, isLoading } = useLevelsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, +}); +``` + +### Create a levelsModule + +```typescript +const { mutate } = useCreateLevelsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); +``` diff --git a/skills/hooks-public/references/limits-module.md b/skills/hooks-public/references/limits-module.md new file mode 100644 index 000000000..ab9ba9668 --- /dev/null +++ b/skills/hooks-public/references/limits-module.md @@ -0,0 +1,34 @@ +# limitsModule + + + +React Query hooks for LimitsModule data operations + +## Usage + +```typescript +useLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) +useLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) +useCreateLimitsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateLimitsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteLimitsModuleMutation({}) +``` + +## Examples + +### List all limitsModules + +```typescript +const { data, isLoading } = useLimitsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, +}); +``` + +### Create a limitsModule + +```typescript +const { mutate } = useCreateLimitsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); +``` diff --git a/skills/hooks-public/references/membership-type.md b/skills/hooks-public/references/membership-type.md new file mode 100644 index 000000000..d603f30be --- /dev/null +++ b/skills/hooks-public/references/membership-type.md @@ -0,0 +1,34 @@ +# membershipType + + + +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) + +## Usage + +```typescript +useMembershipTypesQuery({ selection: { fields: { id: true, name: true, description: true, prefix: true } } }) +useMembershipTypeQuery({ id: '', selection: { fields: { id: true, name: true, description: true, prefix: true } } }) +useCreateMembershipTypeMutation({ selection: { fields: { id: true } } }) +useUpdateMembershipTypeMutation({ selection: { fields: { id: true } } }) +useDeleteMembershipTypeMutation({}) +``` + +## Examples + +### List all membershipTypes + +```typescript +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true } }, +}); +``` + +### Create a membershipType + +```typescript +const { mutate } = useCreateMembershipTypeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', description: '', prefix: '' }); +``` diff --git a/skills/hooks-public/references/membership-types-module.md b/skills/hooks-public/references/membership-types-module.md new file mode 100644 index 000000000..816af9c33 --- /dev/null +++ b/skills/hooks-public/references/membership-types-module.md @@ -0,0 +1,34 @@ +# membershipTypesModule + + + +React Query hooks for MembershipTypesModule data operations + +## Usage + +```typescript +useMembershipTypesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useMembershipTypesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useCreateMembershipTypesModuleMutation({ selection: { fields: { id: true } } }) +useUpdateMembershipTypesModuleMutation({ selection: { fields: { id: true } } }) +useDeleteMembershipTypesModuleMutation({}) +``` + +## Examples + +### List all membershipTypesModules + +```typescript +const { data, isLoading } = useMembershipTypesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a membershipTypesModule + +```typescript +const { mutate } = useCreateMembershipTypesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/skills/hooks-public/references/memberships-module.md b/skills/hooks-public/references/memberships-module.md new file mode 100644 index 000000000..2462f3e9b --- /dev/null +++ b/skills/hooks-public/references/memberships-module.md @@ -0,0 +1,34 @@ +# membershipsModule + + + +React Query hooks for MembershipsModule data operations + +## Usage + +```typescript +useMembershipsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } } }) +useMembershipsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } } }) +useCreateMembershipsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateMembershipsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteMembershipsModuleMutation({}) +``` + +## Examples + +### List all membershipsModules + +```typescript +const { data, isLoading } = useMembershipsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }, +}); +``` + +### Create a membershipsModule + +```typescript +const { mutate } = useCreateMembershipsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }); +``` diff --git a/skills/hooks-public/references/node-type-registry.md b/skills/hooks-public/references/node-type-registry.md new file mode 100644 index 000000000..463fc0827 --- /dev/null +++ b/skills/hooks-public/references/node-type-registry.md @@ -0,0 +1,34 @@ +# nodeTypeRegistry + + + +Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). + +## Usage + +```typescript +useNodeTypeRegistriesQuery({ selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } } }) +useNodeTypeRegistryQuery({ name: '', selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) +useUpdateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) +useDeleteNodeTypeRegistryMutation({}) +``` + +## Examples + +### List all nodeTypeRegistries + +```typescript +const { data, isLoading } = useNodeTypeRegistriesQuery({ + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a nodeTypeRegistry + +```typescript +const { mutate } = useCreateNodeTypeRegistryMutation({ + selection: { fields: { name: true } }, +}); +mutate({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); +``` diff --git a/skills/hooks-public/references/object.md b/skills/hooks-public/references/object.md new file mode 100644 index 000000000..14e14593f --- /dev/null +++ b/skills/hooks-public/references/object.md @@ -0,0 +1,34 @@ +# object + + + +React Query hooks for Object data operations + +## Usage + +```typescript +useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useCreateObjectMutation({ selection: { fields: { id: true } } }) +useUpdateObjectMutation({ selection: { fields: { id: true } } }) +useDeleteObjectMutation({}) +``` + +## Examples + +### List all objects + +```typescript +const { data, isLoading } = useObjectsQuery({ + selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); +``` + +### Create a object + +```typescript +const { mutate } = useCreateObjectMutation({ + selection: { fields: { id: true } }, +}); +mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +``` diff --git a/skills/hooks-public/references/one-time-token.md b/skills/hooks-public/references/one-time-token.md new file mode 100644 index 000000000..1b5ddf37f --- /dev/null +++ b/skills/hooks-public/references/one-time-token.md @@ -0,0 +1,20 @@ +# oneTimeToken + + + +React Query mutation hook for oneTimeToken + +## Usage + +```typescript +const { mutate } = useOneTimeTokenMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useOneTimeTokenMutation + +```typescript +const { mutate, isLoading } = useOneTimeTokenMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/org-admin-grant.md b/skills/hooks-public/references/org-admin-grant.md new file mode 100644 index 000000000..0c33888b4 --- /dev/null +++ b/skills/hooks-public/references/org-admin-grant.md @@ -0,0 +1,34 @@ +# orgAdminGrant + + + +Records of admin role grants and revocations between members + +## Usage + +```typescript +useOrgAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useOrgAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgAdminGrantMutation({}) +``` + +## Examples + +### List all orgAdminGrants + +```typescript +const { data, isLoading } = useOrgAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a orgAdminGrant + +```typescript +const { mutate } = useCreateOrgAdminGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` diff --git a/skills/hooks-public/references/org-chart-edge-grant.md b/skills/hooks-public/references/org-chart-edge-grant.md new file mode 100644 index 000000000..89e9aa996 --- /dev/null +++ b/skills/hooks-public/references/org-chart-edge-grant.md @@ -0,0 +1,34 @@ +# orgChartEdgeGrant + + + +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + +## Usage + +```typescript +useOrgChartEdgeGrantsQuery({ selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) +useOrgChartEdgeGrantQuery({ id: '', selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) +useCreateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgChartEdgeGrantMutation({}) +``` + +## Examples + +### List all orgChartEdgeGrants + +```typescript +const { data, isLoading } = useOrgChartEdgeGrantsQuery({ + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, +}); +``` + +### Create a orgChartEdgeGrant + +```typescript +const { mutate } = useCreateOrgChartEdgeGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); +``` diff --git a/skills/hooks-public/references/org-chart-edge.md b/skills/hooks-public/references/org-chart-edge.md new file mode 100644 index 000000000..c2c1e4e01 --- /dev/null +++ b/skills/hooks-public/references/org-chart-edge.md @@ -0,0 +1,34 @@ +# orgChartEdge + + + +Organizational chart edges defining parent-child reporting relationships between members within an entity + +## Usage + +```typescript +useOrgChartEdgesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) +useOrgChartEdgeQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) +useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) +useUpdateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) +useDeleteOrgChartEdgeMutation({}) +``` + +## Examples + +### List all orgChartEdges + +```typescript +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); +``` + +### Create a orgChartEdge + +```typescript +const { mutate } = useCreateOrgChartEdgeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); +``` diff --git a/skills/hooks-public/references/org-claimed-invite.md b/skills/hooks-public/references/org-claimed-invite.md new file mode 100644 index 000000000..a03250a6b --- /dev/null +++ b/skills/hooks-public/references/org-claimed-invite.md @@ -0,0 +1,34 @@ +# orgClaimedInvite + + + +Records of successfully claimed invitations, linking senders to receivers + +## Usage + +```typescript +useOrgClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) +useCreateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) +useUpdateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) +useDeleteOrgClaimedInviteMutation({}) +``` + +## Examples + +### List all orgClaimedInvites + +```typescript +const { data, isLoading } = useOrgClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, +}); +``` + +### Create a orgClaimedInvite + +```typescript +const { mutate } = useCreateOrgClaimedInviteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ data: '', senderId: '', receiverId: '', entityId: '' }); +``` diff --git a/skills/hooks-public/references/org-get-managers-record.md b/skills/hooks-public/references/org-get-managers-record.md new file mode 100644 index 000000000..26045a477 --- /dev/null +++ b/skills/hooks-public/references/org-get-managers-record.md @@ -0,0 +1,31 @@ +# orgGetManagersRecord + + + +React Query hooks for OrgGetManagersRecord data operations + +## Usage + +```typescript +useOrgGetManagersQuery({ selection: { fields: { userId: true, depth: true } } }) +useCreateOrgGetManagersRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgGetManagers + +```typescript +const { data, isLoading } = useOrgGetManagersQuery({ + selection: { fields: { userId: true, depth: true } }, +}); +``` + +### Create a orgGetManagersRecord + +```typescript +const { mutate } = useCreateOrgGetManagersRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ userId: '', depth: '' }); +``` diff --git a/skills/hooks-public/references/org-get-subordinates-record.md b/skills/hooks-public/references/org-get-subordinates-record.md new file mode 100644 index 000000000..bd2be4581 --- /dev/null +++ b/skills/hooks-public/references/org-get-subordinates-record.md @@ -0,0 +1,31 @@ +# orgGetSubordinatesRecord + + + +React Query hooks for OrgGetSubordinatesRecord data operations + +## Usage + +```typescript +useOrgGetSubordinatesQuery({ selection: { fields: { userId: true, depth: true } } }) +useCreateOrgGetSubordinatesRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgGetSubordinates + +```typescript +const { data, isLoading } = useOrgGetSubordinatesQuery({ + selection: { fields: { userId: true, depth: true } }, +}); +``` + +### Create a orgGetSubordinatesRecord + +```typescript +const { mutate } = useCreateOrgGetSubordinatesRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ userId: '', depth: '' }); +``` diff --git a/skills/hooks-public/references/org-grant.md b/skills/hooks-public/references/org-grant.md new file mode 100644 index 000000000..97c64dfd3 --- /dev/null +++ b/skills/hooks-public/references/org-grant.md @@ -0,0 +1,34 @@ +# orgGrant + + + +Records of individual permission grants and revocations for members via bitmask + +## Usage + +```typescript +useOrgGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useOrgGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateOrgGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgGrantMutation({}) +``` + +## Examples + +### List all orgGrants + +```typescript +const { data, isLoading } = useOrgGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a orgGrant + +```typescript +const { mutate } = useCreateOrgGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` diff --git a/skills/hooks-public/references/org-invite.md b/skills/hooks-public/references/org-invite.md new file mode 100644 index 000000000..7f42032c5 --- /dev/null +++ b/skills/hooks-public/references/org-invite.md @@ -0,0 +1,34 @@ +# orgInvite + + + +Invitation records sent to prospective members via email, with token-based redemption and expiration + +## Usage + +```typescript +useOrgInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useCreateOrgInviteMutation({ selection: { fields: { id: true } } }) +useUpdateOrgInviteMutation({ selection: { fields: { id: true } } }) +useDeleteOrgInviteMutation({}) +``` + +## Examples + +### List all orgInvites + +```typescript +const { data, isLoading } = useOrgInvitesQuery({ + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, +}); +``` + +### Create a orgInvite + +```typescript +const { mutate } = useCreateOrgInviteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); +``` diff --git a/skills/hooks-public/references/org-is-manager-of.md b/skills/hooks-public/references/org-is-manager-of.md new file mode 100644 index 000000000..3832c5a99 --- /dev/null +++ b/skills/hooks-public/references/org-is-manager-of.md @@ -0,0 +1,19 @@ +# orgIsManagerOf + + + +React Query query hook for orgIsManagerOf + +## Usage + +```typescript +useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }) +``` + +## Examples + +### Use useOrgIsManagerOfQuery + +```typescript +const { data, isLoading } = useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }); +``` diff --git a/skills/hooks-public/references/org-limit-default.md b/skills/hooks-public/references/org-limit-default.md new file mode 100644 index 000000000..0a41c4449 --- /dev/null +++ b/skills/hooks-public/references/org-limit-default.md @@ -0,0 +1,34 @@ +# orgLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) +useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitDefaultMutation({}) +``` + +## Examples + +### List all orgLimitDefaults + +```typescript +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); +``` + +### Create a orgLimitDefault + +```typescript +const { mutate } = useCreateOrgLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', max: '' }); +``` diff --git a/skills/hooks-public/references/org-limit.md b/skills/hooks-public/references/org-limit.md new file mode 100644 index 000000000..0bcd78e02 --- /dev/null +++ b/skills/hooks-public/references/org-limit.md @@ -0,0 +1,34 @@ +# orgLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) +useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) +useCreateOrgLimitMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitMutation({}) +``` + +## Examples + +### List all orgLimits + +```typescript +const { data, isLoading } = useOrgLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, +}); +``` + +### Create a orgLimit + +```typescript +const { mutate } = useCreateOrgLimitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', num: '', max: '', entityId: '' }); +``` diff --git a/skills/hooks-public/references/org-member.md b/skills/hooks-public/references/org-member.md new file mode 100644 index 000000000..76db77752 --- /dev/null +++ b/skills/hooks-public/references/org-member.md @@ -0,0 +1,34 @@ +# orgMember + + + +Simplified view of active members in an entity, used for listing who belongs to an org or group + +## Usage + +```typescript +useOrgMembersQuery({ selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) +useOrgMemberQuery({ id: '', selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) +useCreateOrgMemberMutation({ selection: { fields: { id: true } } }) +useUpdateOrgMemberMutation({ selection: { fields: { id: true } } }) +useDeleteOrgMemberMutation({}) +``` + +## Examples + +### List all orgMembers + +```typescript +const { data, isLoading } = useOrgMembersQuery({ + selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, +}); +``` + +### Create a orgMember + +```typescript +const { mutate } = useCreateOrgMemberMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isAdmin: '', actorId: '', entityId: '' }); +``` diff --git a/skills/hooks-public/references/org-membership-default.md b/skills/hooks-public/references/org-membership-default.md new file mode 100644 index 000000000..a6749380d --- /dev/null +++ b/skills/hooks-public/references/org-membership-default.md @@ -0,0 +1,34 @@ +# orgMembershipDefault + + + +Default membership settings per entity, controlling initial approval and verification state for new members + +## Usage + +```typescript +useOrgMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } } }) +useOrgMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } } }) +useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteOrgMembershipDefaultMutation({}) +``` + +## Examples + +### List all orgMembershipDefaults + +```typescript +const { data, isLoading } = useOrgMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, +}); +``` + +### Create a orgMembershipDefault + +```typescript +const { mutate } = useCreateOrgMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); +``` diff --git a/skills/hooks-public/references/org-membership.md b/skills/hooks-public/references/org-membership.md new file mode 100644 index 000000000..b31702606 --- /dev/null +++ b/skills/hooks-public/references/org-membership.md @@ -0,0 +1,34 @@ +# orgMembership + + + +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + +## Usage + +```typescript +useOrgMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } } }) +useOrgMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } } }) +useCreateOrgMembershipMutation({ selection: { fields: { id: true } } }) +useUpdateOrgMembershipMutation({ selection: { fields: { id: true } } }) +useDeleteOrgMembershipMutation({}) +``` + +## Examples + +### List all orgMemberships + +```typescript +const { data, isLoading } = useOrgMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, +}); +``` + +### Create a orgMembership + +```typescript +const { mutate } = useCreateOrgMembershipMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); +``` diff --git a/skills/hooks-public/references/org-owner-grant.md b/skills/hooks-public/references/org-owner-grant.md new file mode 100644 index 000000000..95febd1ff --- /dev/null +++ b/skills/hooks-public/references/org-owner-grant.md @@ -0,0 +1,34 @@ +# orgOwnerGrant + + + +Records of ownership transfers and grants between members + +## Usage + +```typescript +useOrgOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useOrgOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgOwnerGrantMutation({}) +``` + +## Examples + +### List all orgOwnerGrants + +```typescript +const { data, isLoading } = useOrgOwnerGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a orgOwnerGrant + +```typescript +const { mutate } = useCreateOrgOwnerGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` diff --git a/skills/hooks-public/references/org-permission-default.md b/skills/hooks-public/references/org-permission-default.md new file mode 100644 index 000000000..0db4e9538 --- /dev/null +++ b/skills/hooks-public/references/org-permission-default.md @@ -0,0 +1,34 @@ +# orgPermissionDefault + + + +Stores the default permission bitmask assigned to new members upon joining + +## Usage + +```typescript +useOrgPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true, entityId: true } } }) +useOrgPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true, entityId: true } } }) +useCreateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteOrgPermissionDefaultMutation({}) +``` + +## Examples + +### List all orgPermissionDefaults + +```typescript +const { data, isLoading } = useOrgPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); +``` + +### Create a orgPermissionDefault + +```typescript +const { mutate } = useCreateOrgPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissions: '', entityId: '' }); +``` diff --git a/skills/hooks-public/references/org-permission.md b/skills/hooks-public/references/org-permission.md new file mode 100644 index 000000000..fed780e55 --- /dev/null +++ b/skills/hooks-public/references/org-permission.md @@ -0,0 +1,34 @@ +# orgPermission + + + +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + +## Usage + +```typescript +useOrgPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) +useOrgPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) +useCreateOrgPermissionMutation({ selection: { fields: { id: true } } }) +useUpdateOrgPermissionMutation({ selection: { fields: { id: true } } }) +useDeleteOrgPermissionMutation({}) +``` + +## Examples + +### List all orgPermissions + +```typescript +const { data, isLoading } = useOrgPermissionsQuery({ + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); +``` + +### Create a orgPermission + +```typescript +const { mutate } = useCreateOrgPermissionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', bitnum: '', bitstr: '', description: '' }); +``` diff --git a/skills/hooks-public/references/org-permissions-get-by-mask.md b/skills/hooks-public/references/org-permissions-get-by-mask.md new file mode 100644 index 000000000..91a602577 --- /dev/null +++ b/skills/hooks-public/references/org-permissions-get-by-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetByMask + + + +Reads and enables pagination through a set of `OrgPermission`. + +## Usage + +```typescript +useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useOrgPermissionsGetByMaskQuery + +```typescript +const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-public/references/org-permissions-get-mask-by-names.md b/skills/hooks-public/references/org-permissions-get-mask-by-names.md new file mode 100644 index 000000000..d2652adfd --- /dev/null +++ b/skills/hooks-public/references/org-permissions-get-mask-by-names.md @@ -0,0 +1,19 @@ +# orgPermissionsGetMaskByNames + + + +React Query query hook for orgPermissionsGetMaskByNames + +## Usage + +```typescript +useOrgPermissionsGetMaskByNamesQuery({ names: '' }) +``` + +## Examples + +### Use useOrgPermissionsGetMaskByNamesQuery + +```typescript +const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ names: '' }); +``` diff --git a/skills/hooks-public/references/org-permissions-get-mask.md b/skills/hooks-public/references/org-permissions-get-mask.md new file mode 100644 index 000000000..75dc58097 --- /dev/null +++ b/skills/hooks-public/references/org-permissions-get-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetMask + + + +React Query query hook for orgPermissionsGetMask + +## Usage + +```typescript +useOrgPermissionsGetMaskQuery({ ids: '' }) +``` + +## Examples + +### Use useOrgPermissionsGetMaskQuery + +```typescript +const { data, isLoading } = useOrgPermissionsGetMaskQuery({ ids: '' }); +``` diff --git a/skills/hooks-public/references/org-permissions-get-padded-mask.md b/skills/hooks-public/references/org-permissions-get-padded-mask.md new file mode 100644 index 000000000..a23bbbf76 --- /dev/null +++ b/skills/hooks-public/references/org-permissions-get-padded-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetPaddedMask + + + +React Query query hook for orgPermissionsGetPaddedMask + +## Usage + +```typescript +useOrgPermissionsGetPaddedMaskQuery({ mask: '' }) +``` + +## Examples + +### Use useOrgPermissionsGetPaddedMaskQuery + +```typescript +const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ mask: '' }); +``` diff --git a/skills/hooks-public/references/permissions-module.md b/skills/hooks-public/references/permissions-module.md new file mode 100644 index 000000000..026dfa5bb --- /dev/null +++ b/skills/hooks-public/references/permissions-module.md @@ -0,0 +1,34 @@ +# permissionsModule + + + +React Query hooks for PermissionsModule data operations + +## Usage + +```typescript +usePermissionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } } }) +usePermissionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } } }) +useCreatePermissionsModuleMutation({ selection: { fields: { id: true } } }) +useUpdatePermissionsModuleMutation({ selection: { fields: { id: true } } }) +useDeletePermissionsModuleMutation({}) +``` + +## Examples + +### List all permissionsModules + +```typescript +const { data, isLoading } = usePermissionsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }, +}); +``` + +### Create a permissionsModule + +```typescript +const { mutate } = useCreatePermissionsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }); +``` diff --git a/skills/hooks-public/references/phone-number.md b/skills/hooks-public/references/phone-number.md new file mode 100644 index 000000000..0ce6e26c1 --- /dev/null +++ b/skills/hooks-public/references/phone-number.md @@ -0,0 +1,34 @@ +# phoneNumber + + + +User phone numbers with country code, verification, and primary-number management + +## Usage + +```typescript +usePhoneNumbersQuery({ selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +usePhoneNumberQuery({ id: '', selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) +useCreatePhoneNumberMutation({ selection: { fields: { id: true } } }) +useUpdatePhoneNumberMutation({ selection: { fields: { id: true } } }) +useDeletePhoneNumberMutation({}) +``` + +## Examples + +### List all phoneNumbers + +```typescript +const { data, isLoading } = usePhoneNumbersQuery({ + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a phoneNumber + +```typescript +const { mutate } = useCreatePhoneNumberMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); +``` diff --git a/skills/hooks-public/references/phone-numbers-module.md b/skills/hooks-public/references/phone-numbers-module.md new file mode 100644 index 000000000..ca8402f01 --- /dev/null +++ b/skills/hooks-public/references/phone-numbers-module.md @@ -0,0 +1,34 @@ +# phoneNumbersModule + + + +React Query hooks for PhoneNumbersModule data operations + +## Usage + +```typescript +usePhoneNumbersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) +usePhoneNumbersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) +useCreatePhoneNumbersModuleMutation({ selection: { fields: { id: true } } }) +useUpdatePhoneNumbersModuleMutation({ selection: { fields: { id: true } } }) +useDeletePhoneNumbersModuleMutation({}) +``` + +## Examples + +### List all phoneNumbersModules + +```typescript +const { data, isLoading } = usePhoneNumbersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, +}); +``` + +### Create a phoneNumbersModule + +```typescript +const { mutate } = useCreatePhoneNumbersModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); +``` diff --git a/skills/hooks-public/references/policy.md b/skills/hooks-public/references/policy.md new file mode 100644 index 000000000..93390d47b --- /dev/null +++ b/skills/hooks-public/references/policy.md @@ -0,0 +1,34 @@ +# policy + + + +React Query hooks for Policy data operations + +## Usage + +```typescript +usePoliciesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +usePolicyQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreatePolicyMutation({ selection: { fields: { id: true } } }) +useUpdatePolicyMutation({ selection: { fields: { id: true } } }) +useDeletePolicyMutation({}) +``` + +## Examples + +### List all policies + +```typescript +const { data, isLoading } = usePoliciesQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a policy + +```typescript +const { mutate } = useCreatePolicyMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/skills/hooks-public/references/primary-key-constraint.md b/skills/hooks-public/references/primary-key-constraint.md new file mode 100644 index 000000000..89d9bf465 --- /dev/null +++ b/skills/hooks-public/references/primary-key-constraint.md @@ -0,0 +1,34 @@ +# primaryKeyConstraint + + + +React Query hooks for PrimaryKeyConstraint data operations + +## Usage + +```typescript +usePrimaryKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +usePrimaryKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) +useUpdatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) +useDeletePrimaryKeyConstraintMutation({}) +``` + +## Examples + +### List all primaryKeyConstraints + +```typescript +const { data, isLoading } = usePrimaryKeyConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a primaryKeyConstraint + +```typescript +const { mutate } = useCreatePrimaryKeyConstraintMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/skills/hooks-public/references/profiles-module.md b/skills/hooks-public/references/profiles-module.md new file mode 100644 index 000000000..6f1a6eaac --- /dev/null +++ b/skills/hooks-public/references/profiles-module.md @@ -0,0 +1,34 @@ +# profilesModule + + + +React Query hooks for ProfilesModule data operations + +## Usage + +```typescript +useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) +useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) +useCreateProfilesModuleMutation({ selection: { fields: { id: true } } }) +useUpdateProfilesModuleMutation({ selection: { fields: { id: true } } }) +useDeleteProfilesModuleMutation({}) +``` + +## Examples + +### List all profilesModules + +```typescript +const { data, isLoading } = useProfilesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, +}); +``` + +### Create a profilesModule + +```typescript +const { mutate } = useCreateProfilesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); +``` diff --git a/skills/hooks-public/references/provision-database-with-user.md b/skills/hooks-public/references/provision-database-with-user.md new file mode 100644 index 000000000..3fdf98ab2 --- /dev/null +++ b/skills/hooks-public/references/provision-database-with-user.md @@ -0,0 +1,20 @@ +# provisionDatabaseWithUser + + + +React Query mutation hook for provisionDatabaseWithUser + +## Usage + +```typescript +const { mutate } = useProvisionDatabaseWithUserMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useProvisionDatabaseWithUserMutation + +```typescript +const { mutate, isLoading } = useProvisionDatabaseWithUserMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/ref.md b/skills/hooks-public/references/ref.md new file mode 100644 index 000000000..d8b3b24c7 --- /dev/null +++ b/skills/hooks-public/references/ref.md @@ -0,0 +1,34 @@ +# ref + + + +A ref is a data structure for pointing to a commit. + +## Usage + +```typescript +useRefsQuery({ selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) +useRefQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) +useCreateRefMutation({ selection: { fields: { id: true } } }) +useUpdateRefMutation({ selection: { fields: { id: true } } }) +useDeleteRefMutation({}) +``` + +## Examples + +### List all refs + +```typescript +const { data, isLoading } = useRefsQuery({ + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, +}); +``` + +### Create a ref + +```typescript +const { mutate } = useCreateRefMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); +``` diff --git a/skills/hooks-public/references/relation-provision.md b/skills/hooks-public/references/relation-provision.md new file mode 100644 index 000000000..4c6d4bc38 --- /dev/null +++ b/skills/hooks-public/references/relation-provision.md @@ -0,0 +1,41 @@ +# relationProvision + + + +Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + +## Usage + +```typescript +useRelationProvisionsQuery({ selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } } }) +useRelationProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } } }) +useCreateRelationProvisionMutation({ selection: { fields: { id: true } } }) +useUpdateRelationProvisionMutation({ selection: { fields: { id: true } } }) +useDeleteRelationProvisionMutation({}) +``` + +## Examples + +### List all relationProvisions + +```typescript +const { data, isLoading } = useRelationProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, +}); +``` + +### Create a relationProvision + +```typescript +const { mutate } = useCreateRelationProvisionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); +``` diff --git a/skills/hooks-public/references/remove-node-at-path.md b/skills/hooks-public/references/remove-node-at-path.md new file mode 100644 index 000000000..32d199b7e --- /dev/null +++ b/skills/hooks-public/references/remove-node-at-path.md @@ -0,0 +1,20 @@ +# removeNodeAtPath + + + +React Query mutation hook for removeNodeAtPath + +## Usage + +```typescript +const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useRemoveNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useRemoveNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/reset-password.md b/skills/hooks-public/references/reset-password.md new file mode 100644 index 000000000..490bccf5d --- /dev/null +++ b/skills/hooks-public/references/reset-password.md @@ -0,0 +1,20 @@ +# resetPassword + + + +React Query mutation hook for resetPassword + +## Usage + +```typescript +const { mutate } = useResetPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useResetPasswordMutation + +```typescript +const { mutate, isLoading } = useResetPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/rev-parse.md b/skills/hooks-public/references/rev-parse.md new file mode 100644 index 000000000..653d003af --- /dev/null +++ b/skills/hooks-public/references/rev-parse.md @@ -0,0 +1,19 @@ +# revParse + + + +React Query query hook for revParse + +## Usage + +```typescript +useRevParseQuery({ dbId: '', storeId: '', refname: '' }) +``` + +## Examples + +### Use useRevParseQuery + +```typescript +const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); +``` diff --git a/skills/hooks-public/references/rls-module.md b/skills/hooks-public/references/rls-module.md new file mode 100644 index 000000000..b5a36de0b --- /dev/null +++ b/skills/hooks-public/references/rls-module.md @@ -0,0 +1,34 @@ +# rlsModule + + + +React Query hooks for RlsModule data operations + +## Usage + +```typescript +useRlsModulesQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } } }) +useRlsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } } }) +useCreateRlsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateRlsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteRlsModuleMutation({}) +``` + +## Examples + +### List all rlsModules + +```typescript +const { data, isLoading } = useRlsModulesQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }, +}); +``` + +### Create a rlsModule + +```typescript +const { mutate } = useCreateRlsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', apiId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); +``` diff --git a/skills/hooks-public/references/role-type.md b/skills/hooks-public/references/role-type.md new file mode 100644 index 000000000..8ba5dde40 --- /dev/null +++ b/skills/hooks-public/references/role-type.md @@ -0,0 +1,34 @@ +# roleType + + + +React Query hooks for RoleType data operations + +## Usage + +```typescript +useRoleTypesQuery({ selection: { fields: { id: true, name: true } } }) +useRoleTypeQuery({ id: '', selection: { fields: { id: true, name: true } } }) +useCreateRoleTypeMutation({ selection: { fields: { id: true } } }) +useUpdateRoleTypeMutation({ selection: { fields: { id: true } } }) +useDeleteRoleTypeMutation({}) +``` + +## Examples + +### List all roleTypes + +```typescript +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true, name: true } }, +}); +``` + +### Create a roleType + +```typescript +const { mutate } = useCreateRoleTypeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '' }); +``` diff --git a/skills/hooks-public/references/schema-grant.md b/skills/hooks-public/references/schema-grant.md new file mode 100644 index 000000000..253b69a09 --- /dev/null +++ b/skills/hooks-public/references/schema-grant.md @@ -0,0 +1,34 @@ +# schemaGrant + + + +React Query hooks for SchemaGrant data operations + +## Usage + +```typescript +useSchemaGrantsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } } }) +useSchemaGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } } }) +useCreateSchemaGrantMutation({ selection: { fields: { id: true } } }) +useUpdateSchemaGrantMutation({ selection: { fields: { id: true } } }) +useDeleteSchemaGrantMutation({}) +``` + +## Examples + +### List all schemaGrants + +```typescript +const { data, isLoading } = useSchemaGrantsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a schemaGrant + +```typescript +const { mutate } = useCreateSchemaGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', granteeName: '' }); +``` diff --git a/skills/hooks-public/references/schema.md b/skills/hooks-public/references/schema.md new file mode 100644 index 000000000..ad8f9bc26 --- /dev/null +++ b/skills/hooks-public/references/schema.md @@ -0,0 +1,34 @@ +# schema + + + +React Query hooks for Schema data operations + +## Usage + +```typescript +useSchemasQuery({ selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) +useSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) +useCreateSchemaMutation({ selection: { fields: { id: true } } }) +useUpdateSchemaMutation({ selection: { fields: { id: true } } }) +useDeleteSchemaMutation({}) +``` + +## Examples + +### List all schemas + +```typescript +const { data, isLoading } = useSchemasQuery({ + selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a schema + +```typescript +const { mutate } = useCreateSchemaMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); +``` diff --git a/skills/hooks-public/references/secrets-module.md b/skills/hooks-public/references/secrets-module.md new file mode 100644 index 000000000..8146024dc --- /dev/null +++ b/skills/hooks-public/references/secrets-module.md @@ -0,0 +1,34 @@ +# secretsModule + + + +React Query hooks for SecretsModule data operations + +## Usage + +```typescript +useSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useCreateSecretsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateSecretsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteSecretsModuleMutation({}) +``` + +## Examples + +### List all secretsModules + +```typescript +const { data, isLoading } = useSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a secretsModule + +```typescript +const { mutate } = useCreateSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/skills/hooks-public/references/secure-table-provision.md b/skills/hooks-public/references/secure-table-provision.md new file mode 100644 index 000000000..ba4f77f79 --- /dev/null +++ b/skills/hooks-public/references/secure-table-provision.md @@ -0,0 +1,34 @@ +# secureTableProvision + + + +Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + +## Usage + +```typescript +useSecureTableProvisionsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } } }) +useSecureTableProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } } }) +useCreateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) +useUpdateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) +useDeleteSecureTableProvisionMutation({}) +``` + +## Examples + +### List all secureTableProvisions + +```typescript +const { data, isLoading } = useSecureTableProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }, +}); +``` + +### Create a secureTableProvision + +```typescript +const { mutate } = useCreateSecureTableProvisionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }); +``` diff --git a/skills/hooks-public/references/send-account-deletion-email.md b/skills/hooks-public/references/send-account-deletion-email.md new file mode 100644 index 000000000..6d43414a2 --- /dev/null +++ b/skills/hooks-public/references/send-account-deletion-email.md @@ -0,0 +1,20 @@ +# sendAccountDeletionEmail + + + +React Query mutation hook for sendAccountDeletionEmail + +## Usage + +```typescript +const { mutate } = useSendAccountDeletionEmailMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSendAccountDeletionEmailMutation + +```typescript +const { mutate, isLoading } = useSendAccountDeletionEmailMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/send-verification-email.md b/skills/hooks-public/references/send-verification-email.md new file mode 100644 index 000000000..36e6216fd --- /dev/null +++ b/skills/hooks-public/references/send-verification-email.md @@ -0,0 +1,20 @@ +# sendVerificationEmail + + + +React Query mutation hook for sendVerificationEmail + +## Usage + +```typescript +const { mutate } = useSendVerificationEmailMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSendVerificationEmailMutation + +```typescript +const { mutate, isLoading } = useSendVerificationEmailMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/sessions-module.md b/skills/hooks-public/references/sessions-module.md new file mode 100644 index 000000000..51c5d9ffd --- /dev/null +++ b/skills/hooks-public/references/sessions-module.md @@ -0,0 +1,34 @@ +# sessionsModule + + + +React Query hooks for SessionsModule data operations + +## Usage + +```typescript +useSessionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } } }) +useSessionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } } }) +useCreateSessionsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateSessionsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteSessionsModuleMutation({}) +``` + +## Examples + +### List all sessionsModules + +```typescript +const { data, isLoading } = useSessionsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, +}); +``` + +### Create a sessionsModule + +```typescript +const { mutate } = useCreateSessionsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }); +``` diff --git a/skills/hooks-public/references/set-and-commit.md b/skills/hooks-public/references/set-and-commit.md new file mode 100644 index 000000000..7e69d5b13 --- /dev/null +++ b/skills/hooks-public/references/set-and-commit.md @@ -0,0 +1,20 @@ +# setAndCommit + + + +React Query mutation hook for setAndCommit + +## Usage + +```typescript +const { mutate } = useSetAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetAndCommitMutation + +```typescript +const { mutate, isLoading } = useSetAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/set-data-at-path.md b/skills/hooks-public/references/set-data-at-path.md new file mode 100644 index 000000000..ff6629dec --- /dev/null +++ b/skills/hooks-public/references/set-data-at-path.md @@ -0,0 +1,20 @@ +# setDataAtPath + + + +React Query mutation hook for setDataAtPath + +## Usage + +```typescript +const { mutate } = useSetDataAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetDataAtPathMutation + +```typescript +const { mutate, isLoading } = useSetDataAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/set-field-order.md b/skills/hooks-public/references/set-field-order.md new file mode 100644 index 000000000..4ff6c672c --- /dev/null +++ b/skills/hooks-public/references/set-field-order.md @@ -0,0 +1,20 @@ +# setFieldOrder + + + +React Query mutation hook for setFieldOrder + +## Usage + +```typescript +const { mutate } = useSetFieldOrderMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetFieldOrderMutation + +```typescript +const { mutate, isLoading } = useSetFieldOrderMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/set-password.md b/skills/hooks-public/references/set-password.md new file mode 100644 index 000000000..7c43ee11f --- /dev/null +++ b/skills/hooks-public/references/set-password.md @@ -0,0 +1,20 @@ +# setPassword + + + +React Query mutation hook for setPassword + +## Usage + +```typescript +const { mutate } = useSetPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetPasswordMutation + +```typescript +const { mutate, isLoading } = useSetPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/set-props-and-commit.md b/skills/hooks-public/references/set-props-and-commit.md new file mode 100644 index 000000000..ff62e4969 --- /dev/null +++ b/skills/hooks-public/references/set-props-and-commit.md @@ -0,0 +1,20 @@ +# setPropsAndCommit + + + +React Query mutation hook for setPropsAndCommit + +## Usage + +```typescript +const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetPropsAndCommitMutation + +```typescript +const { mutate, isLoading } = useSetPropsAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/sign-in-one-time-token.md b/skills/hooks-public/references/sign-in-one-time-token.md new file mode 100644 index 000000000..8f7d4515c --- /dev/null +++ b/skills/hooks-public/references/sign-in-one-time-token.md @@ -0,0 +1,20 @@ +# signInOneTimeToken + + + +React Query mutation hook for signInOneTimeToken + +## Usage + +```typescript +const { mutate } = useSignInOneTimeTokenMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignInOneTimeTokenMutation + +```typescript +const { mutate, isLoading } = useSignInOneTimeTokenMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/sign-in.md b/skills/hooks-public/references/sign-in.md new file mode 100644 index 000000000..bdc2cec2c --- /dev/null +++ b/skills/hooks-public/references/sign-in.md @@ -0,0 +1,20 @@ +# signIn + + + +React Query mutation hook for signIn + +## Usage + +```typescript +const { mutate } = useSignInMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignInMutation + +```typescript +const { mutate, isLoading } = useSignInMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/sign-out.md b/skills/hooks-public/references/sign-out.md new file mode 100644 index 000000000..e36cac158 --- /dev/null +++ b/skills/hooks-public/references/sign-out.md @@ -0,0 +1,20 @@ +# signOut + + + +React Query mutation hook for signOut + +## Usage + +```typescript +const { mutate } = useSignOutMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignOutMutation + +```typescript +const { mutate, isLoading } = useSignOutMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/sign-up.md b/skills/hooks-public/references/sign-up.md new file mode 100644 index 000000000..ba93ac7ed --- /dev/null +++ b/skills/hooks-public/references/sign-up.md @@ -0,0 +1,20 @@ +# signUp + + + +React Query mutation hook for signUp + +## Usage + +```typescript +const { mutate } = useSignUpMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSignUpMutation + +```typescript +const { mutate, isLoading } = useSignUpMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/site-metadatum.md b/skills/hooks-public/references/site-metadatum.md new file mode 100644 index 000000000..c9ae077bc --- /dev/null +++ b/skills/hooks-public/references/site-metadatum.md @@ -0,0 +1,34 @@ +# siteMetadatum + + + +SEO and social sharing metadata for a site: page title, description, and Open Graph image + +## Usage + +```typescript +useSiteMetadataQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } } }) +useSiteMetadatumQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } } }) +useCreateSiteMetadatumMutation({ selection: { fields: { id: true } } }) +useUpdateSiteMetadatumMutation({ selection: { fields: { id: true } } }) +useDeleteSiteMetadatumMutation({}) +``` + +## Examples + +### List all siteMetadata + +```typescript +const { data, isLoading } = useSiteMetadataQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, +}); +``` + +### Create a siteMetadatum + +```typescript +const { mutate } = useCreateSiteMetadatumMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', siteId: '', title: '', description: '', ogImage: '' }); +``` diff --git a/skills/hooks-public/references/site-module.md b/skills/hooks-public/references/site-module.md new file mode 100644 index 000000000..144ac3db3 --- /dev/null +++ b/skills/hooks-public/references/site-module.md @@ -0,0 +1,34 @@ +# siteModule + + + +Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site + +## Usage + +```typescript +useSiteModulesQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } } }) +useSiteModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } } }) +useCreateSiteModuleMutation({ selection: { fields: { id: true } } }) +useUpdateSiteModuleMutation({ selection: { fields: { id: true } } }) +useDeleteSiteModuleMutation({}) +``` + +## Examples + +### List all siteModules + +```typescript +const { data, isLoading } = useSiteModulesQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, +}); +``` + +### Create a siteModule + +```typescript +const { mutate } = useCreateSiteModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', siteId: '', name: '', data: '' }); +``` diff --git a/skills/hooks-public/references/site-theme.md b/skills/hooks-public/references/site-theme.md new file mode 100644 index 000000000..651279757 --- /dev/null +++ b/skills/hooks-public/references/site-theme.md @@ -0,0 +1,34 @@ +# siteTheme + + + +Theme configuration for a site; stores design tokens, colors, and typography as JSONB + +## Usage + +```typescript +useSiteThemesQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } } }) +useSiteThemeQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } } }) +useCreateSiteThemeMutation({ selection: { fields: { id: true } } }) +useUpdateSiteThemeMutation({ selection: { fields: { id: true } } }) +useDeleteSiteThemeMutation({}) +``` + +## Examples + +### List all siteThemes + +```typescript +const { data, isLoading } = useSiteThemesQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, +}); +``` + +### Create a siteTheme + +```typescript +const { mutate } = useCreateSiteThemeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', siteId: '', theme: '' }); +``` diff --git a/skills/hooks-public/references/site.md b/skills/hooks-public/references/site.md new file mode 100644 index 000000000..d622de95b --- /dev/null +++ b/skills/hooks-public/references/site.md @@ -0,0 +1,34 @@ +# site + + + +Top-level site configuration: branding assets, title, and description for a deployed application + +## Usage + +```typescript +useSitesQuery({ selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } } }) +useSiteQuery({ id: '', selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } } }) +useCreateSiteMutation({ selection: { fields: { id: true } } }) +useUpdateSiteMutation({ selection: { fields: { id: true } } }) +useDeleteSiteMutation({}) +``` + +## Examples + +### List all sites + +```typescript +const { data, isLoading } = useSitesQuery({ + selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, +}); +``` + +### Create a site + +```typescript +const { mutate } = useCreateSiteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }); +``` diff --git a/skills/hooks-public/references/sql-migration.md b/skills/hooks-public/references/sql-migration.md new file mode 100644 index 000000000..62b6eea24 --- /dev/null +++ b/skills/hooks-public/references/sql-migration.md @@ -0,0 +1,34 @@ +# sqlMigration + + + +React Query hooks for SqlMigration data operations + +## Usage + +```typescript +useSqlMigrationsQuery({ selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) +useSqlMigrationQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) +useCreateSqlMigrationMutation({ selection: { fields: { id: true } } }) +useUpdateSqlMigrationMutation({ selection: { fields: { id: true } } }) +useDeleteSqlMigrationMutation({}) +``` + +## Examples + +### List all sqlMigrations + +```typescript +const { data, isLoading } = useSqlMigrationsQuery({ + selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); +``` + +### Create a sqlMigration + +```typescript +const { mutate } = useCreateSqlMigrationMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +``` diff --git a/skills/hooks-public/references/steps-achieved.md b/skills/hooks-public/references/steps-achieved.md new file mode 100644 index 000000000..cf0a84d43 --- /dev/null +++ b/skills/hooks-public/references/steps-achieved.md @@ -0,0 +1,19 @@ +# stepsAchieved + + + +React Query query hook for stepsAchieved + +## Usage + +```typescript +useStepsAchievedQuery({ vlevel: '', vroleId: '' }) +``` + +## Examples + +### Use useStepsAchievedQuery + +```typescript +const { data, isLoading } = useStepsAchievedQuery({ vlevel: '', vroleId: '' }); +``` diff --git a/skills/hooks-public/references/steps-required.md b/skills/hooks-public/references/steps-required.md new file mode 100644 index 000000000..e50844b6b --- /dev/null +++ b/skills/hooks-public/references/steps-required.md @@ -0,0 +1,19 @@ +# stepsRequired + + + +Reads and enables pagination through a set of `AppLevelRequirement`. + +## Usage + +```typescript +useStepsRequiredQuery({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }) +``` + +## Examples + +### Use useStepsRequiredQuery + +```typescript +const { data, isLoading } = useStepsRequiredQuery({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }); +``` diff --git a/skills/hooks-public/references/store.md b/skills/hooks-public/references/store.md new file mode 100644 index 000000000..07e008520 --- /dev/null +++ b/skills/hooks-public/references/store.md @@ -0,0 +1,34 @@ +# store + + + +A store represents an isolated object repository within a database. + +## Usage + +```typescript +useStoresQuery({ selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) +useStoreQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) +useCreateStoreMutation({ selection: { fields: { id: true } } }) +useUpdateStoreMutation({ selection: { fields: { id: true } } }) +useDeleteStoreMutation({}) +``` + +## Examples + +### List all stores + +```typescript +const { data, isLoading } = useStoresQuery({ + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +}); +``` + +### Create a store + +```typescript +const { mutate } = useCreateStoreMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', databaseId: '', hash: '' }); +``` diff --git a/skills/hooks-public/references/submit-invite-code.md b/skills/hooks-public/references/submit-invite-code.md new file mode 100644 index 000000000..e774b7aba --- /dev/null +++ b/skills/hooks-public/references/submit-invite-code.md @@ -0,0 +1,20 @@ +# submitInviteCode + + + +React Query mutation hook for submitInviteCode + +## Usage + +```typescript +const { mutate } = useSubmitInviteCodeMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSubmitInviteCodeMutation + +```typescript +const { mutate, isLoading } = useSubmitInviteCodeMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/submit-org-invite-code.md b/skills/hooks-public/references/submit-org-invite-code.md new file mode 100644 index 000000000..4a70f698f --- /dev/null +++ b/skills/hooks-public/references/submit-org-invite-code.md @@ -0,0 +1,20 @@ +# submitOrgInviteCode + + + +React Query mutation hook for submitOrgInviteCode + +## Usage + +```typescript +const { mutate } = useSubmitOrgInviteCodeMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSubmitOrgInviteCodeMutation + +```typescript +const { mutate, isLoading } = useSubmitOrgInviteCodeMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/table-grant.md b/skills/hooks-public/references/table-grant.md new file mode 100644 index 000000000..e05d6635d --- /dev/null +++ b/skills/hooks-public/references/table-grant.md @@ -0,0 +1,34 @@ +# tableGrant + + + +React Query hooks for TableGrant data operations + +## Usage + +```typescript +useTableGrantsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } } }) +useTableGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } } }) +useCreateTableGrantMutation({ selection: { fields: { id: true } } }) +useUpdateTableGrantMutation({ selection: { fields: { id: true } } }) +useDeleteTableGrantMutation({}) +``` + +## Examples + +### List all tableGrants + +```typescript +const { data, isLoading } = useTableGrantsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a tableGrant + +```typescript +const { mutate } = useCreateTableGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }); +``` diff --git a/skills/hooks-public/references/table-module.md b/skills/hooks-public/references/table-module.md new file mode 100644 index 000000000..b78bae6b7 --- /dev/null +++ b/skills/hooks-public/references/table-module.md @@ -0,0 +1,34 @@ +# tableModule + + + +React Query hooks for TableModule data operations + +## Usage + +```typescript +useTableModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } } }) +useTableModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } } }) +useCreateTableModuleMutation({ selection: { fields: { id: true } } }) +useUpdateTableModuleMutation({ selection: { fields: { id: true } } }) +useDeleteTableModuleMutation({}) +``` + +## Examples + +### List all tableModules + +```typescript +const { data, isLoading } = useTableModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, data: true, fields: true } }, +}); +``` + +### Create a tableModule + +```typescript +const { mutate } = useCreateTableModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }); +``` diff --git a/skills/hooks-public/references/table-template-module.md b/skills/hooks-public/references/table-template-module.md new file mode 100644 index 000000000..cda37ff35 --- /dev/null +++ b/skills/hooks-public/references/table-template-module.md @@ -0,0 +1,34 @@ +# tableTemplateModule + + + +React Query hooks for TableTemplateModule data operations + +## Usage + +```typescript +useTableTemplateModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } } }) +useTableTemplateModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } } }) +useCreateTableTemplateModuleMutation({ selection: { fields: { id: true } } }) +useUpdateTableTemplateModuleMutation({ selection: { fields: { id: true } } }) +useDeleteTableTemplateModuleMutation({}) +``` + +## Examples + +### List all tableTemplateModules + +```typescript +const { data, isLoading } = useTableTemplateModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }, +}); +``` + +### Create a tableTemplateModule + +```typescript +const { mutate } = useCreateTableTemplateModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }); +``` diff --git a/skills/hooks-public/references/table.md b/skills/hooks-public/references/table.md new file mode 100644 index 000000000..963c4c5e0 --- /dev/null +++ b/skills/hooks-public/references/table.md @@ -0,0 +1,34 @@ +# table + + + +React Query hooks for Table data operations + +## Usage + +```typescript +useTablesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } } }) +useTableQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } } }) +useCreateTableMutation({ selection: { fields: { id: true } } }) +useUpdateTableMutation({ selection: { fields: { id: true } } }) +useDeleteTableMutation({}) +``` + +## Examples + +### List all tables + +```typescript +const { data, isLoading } = useTablesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a table + +```typescript +const { mutate } = useCreateTableMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }); +``` diff --git a/skills/hooks-public/references/trigger-function.md b/skills/hooks-public/references/trigger-function.md new file mode 100644 index 000000000..9f9063368 --- /dev/null +++ b/skills/hooks-public/references/trigger-function.md @@ -0,0 +1,34 @@ +# triggerFunction + + + +React Query hooks for TriggerFunction data operations + +## Usage + +```typescript +useTriggerFunctionsQuery({ selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } } }) +useTriggerFunctionQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } } }) +useCreateTriggerFunctionMutation({ selection: { fields: { id: true } } }) +useUpdateTriggerFunctionMutation({ selection: { fields: { id: true } } }) +useDeleteTriggerFunctionMutation({}) +``` + +## Examples + +### List all triggerFunctions + +```typescript +const { data, isLoading } = useTriggerFunctionsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a triggerFunction + +```typescript +const { mutate } = useCreateTriggerFunctionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', code: '' }); +``` diff --git a/skills/hooks-public/references/trigger.md b/skills/hooks-public/references/trigger.md new file mode 100644 index 000000000..faed2e09c --- /dev/null +++ b/skills/hooks-public/references/trigger.md @@ -0,0 +1,34 @@ +# trigger + + + +React Query hooks for Trigger data operations + +## Usage + +```typescript +useTriggersQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useTriggerQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateTriggerMutation({ selection: { fields: { id: true } } }) +useUpdateTriggerMutation({ selection: { fields: { id: true } } }) +useDeleteTriggerMutation({}) +``` + +## Examples + +### List all triggers + +```typescript +const { data, isLoading } = useTriggersQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a trigger + +```typescript +const { mutate } = useCreateTriggerMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/skills/hooks-public/references/unique-constraint.md b/skills/hooks-public/references/unique-constraint.md new file mode 100644 index 000000000..0757bb6f2 --- /dev/null +++ b/skills/hooks-public/references/unique-constraint.md @@ -0,0 +1,34 @@ +# uniqueConstraint + + + +React Query hooks for UniqueConstraint data operations + +## Usage + +```typescript +useUniqueConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useUniqueConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateUniqueConstraintMutation({ selection: { fields: { id: true } } }) +useUpdateUniqueConstraintMutation({ selection: { fields: { id: true } } }) +useDeleteUniqueConstraintMutation({}) +``` + +## Examples + +### List all uniqueConstraints + +```typescript +const { data, isLoading } = useUniqueConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a uniqueConstraint + +```typescript +const { mutate } = useCreateUniqueConstraintMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/skills/hooks-public/references/update-node-at-path.md b/skills/hooks-public/references/update-node-at-path.md new file mode 100644 index 000000000..97a9f8bc1 --- /dev/null +++ b/skills/hooks-public/references/update-node-at-path.md @@ -0,0 +1,20 @@ +# updateNodeAtPath + + + +React Query mutation hook for updateNodeAtPath + +## Usage + +```typescript +const { mutate } = useUpdateNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useUpdateNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useUpdateNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/user-auth-module.md b/skills/hooks-public/references/user-auth-module.md new file mode 100644 index 000000000..5a24f49f1 --- /dev/null +++ b/skills/hooks-public/references/user-auth-module.md @@ -0,0 +1,34 @@ +# userAuthModule + + + +React Query hooks for UserAuthModule data operations + +## Usage + +```typescript +useUserAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } } }) +useUserAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } } }) +useCreateUserAuthModuleMutation({ selection: { fields: { id: true } } }) +useUpdateUserAuthModuleMutation({ selection: { fields: { id: true } } }) +useDeleteUserAuthModuleMutation({}) +``` + +## Examples + +### List all userAuthModules + +```typescript +const { data, isLoading } = useUserAuthModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }, +}); +``` + +### Create a userAuthModule + +```typescript +const { mutate } = useCreateUserAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }); +``` diff --git a/skills/hooks-public/references/user.md b/skills/hooks-public/references/user.md new file mode 100644 index 000000000..9d3a8cf6b --- /dev/null +++ b/skills/hooks-public/references/user.md @@ -0,0 +1,34 @@ +# user + + + +React Query hooks for User data operations + +## Usage + +```typescript +useUsersQuery({ selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) +useUserQuery({ id: '', selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) +useCreateUserMutation({ selection: { fields: { id: true } } }) +useUpdateUserMutation({ selection: { fields: { id: true } } }) +useDeleteUserMutation({}) +``` + +## Examples + +### List all users + +```typescript +const { data, isLoading } = useUsersQuery({ + selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, +}); +``` + +### Create a user + +```typescript +const { mutate } = useCreateUserMutation({ + selection: { fields: { id: true } }, +}); +mutate({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); +``` diff --git a/skills/hooks-public/references/users-module.md b/skills/hooks-public/references/users-module.md new file mode 100644 index 000000000..29b816289 --- /dev/null +++ b/skills/hooks-public/references/users-module.md @@ -0,0 +1,34 @@ +# usersModule + + + +React Query hooks for UsersModule data operations + +## Usage + +```typescript +useUsersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } } }) +useUsersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } } }) +useCreateUsersModuleMutation({ selection: { fields: { id: true } } }) +useUpdateUsersModuleMutation({ selection: { fields: { id: true } } }) +useDeleteUsersModuleMutation({}) +``` + +## Examples + +### List all usersModules + +```typescript +const { data, isLoading } = useUsersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }, +}); +``` + +### Create a usersModule + +```typescript +const { mutate } = useCreateUsersModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }); +``` diff --git a/skills/hooks-public/references/uuid-module.md b/skills/hooks-public/references/uuid-module.md new file mode 100644 index 000000000..d389dd213 --- /dev/null +++ b/skills/hooks-public/references/uuid-module.md @@ -0,0 +1,34 @@ +# uuidModule + + + +React Query hooks for UuidModule data operations + +## Usage + +```typescript +useUuidModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } } }) +useUuidModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } } }) +useCreateUuidModuleMutation({ selection: { fields: { id: true } } }) +useUpdateUuidModuleMutation({ selection: { fields: { id: true } } }) +useDeleteUuidModuleMutation({}) +``` + +## Examples + +### List all uuidModules + +```typescript +const { data, isLoading } = useUuidModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } }, +}); +``` + +### Create a uuidModule + +```typescript +const { mutate } = useCreateUuidModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '' }); +``` diff --git a/skills/hooks-public/references/verify-email.md b/skills/hooks-public/references/verify-email.md new file mode 100644 index 000000000..14a317763 --- /dev/null +++ b/skills/hooks-public/references/verify-email.md @@ -0,0 +1,20 @@ +# verifyEmail + + + +React Query mutation hook for verifyEmail + +## Usage + +```typescript +const { mutate } = useVerifyEmailMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useVerifyEmailMutation + +```typescript +const { mutate, isLoading } = useVerifyEmailMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/verify-password.md b/skills/hooks-public/references/verify-password.md new file mode 100644 index 000000000..09e407a2b --- /dev/null +++ b/skills/hooks-public/references/verify-password.md @@ -0,0 +1,20 @@ +# verifyPassword + + + +React Query mutation hook for verifyPassword + +## Usage + +```typescript +const { mutate } = useVerifyPasswordMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useVerifyPasswordMutation + +```typescript +const { mutate, isLoading } = useVerifyPasswordMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/verify-totp.md b/skills/hooks-public/references/verify-totp.md new file mode 100644 index 000000000..b5654b525 --- /dev/null +++ b/skills/hooks-public/references/verify-totp.md @@ -0,0 +1,20 @@ +# verifyTotp + + + +React Query mutation hook for verifyTotp + +## Usage + +```typescript +const { mutate } = useVerifyTotpMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useVerifyTotpMutation + +```typescript +const { mutate, isLoading } = useVerifyTotpMutation(); +mutate({ input: '' }); +``` diff --git a/skills/hooks-public/references/view-grant.md b/skills/hooks-public/references/view-grant.md new file mode 100644 index 000000000..4410d7356 --- /dev/null +++ b/skills/hooks-public/references/view-grant.md @@ -0,0 +1,34 @@ +# viewGrant + + + +React Query hooks for ViewGrant data operations + +## Usage + +```typescript +useViewGrantsQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } } }) +useViewGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } } }) +useCreateViewGrantMutation({ selection: { fields: { id: true } } }) +useUpdateViewGrantMutation({ selection: { fields: { id: true } } }) +useDeleteViewGrantMutation({}) +``` + +## Examples + +### List all viewGrants + +```typescript +const { data, isLoading } = useViewGrantsQuery({ + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, +}); +``` + +### Create a viewGrant + +```typescript +const { mutate } = useCreateViewGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }); +``` diff --git a/skills/hooks-public/references/view-rule.md b/skills/hooks-public/references/view-rule.md new file mode 100644 index 000000000..fb1807bd5 --- /dev/null +++ b/skills/hooks-public/references/view-rule.md @@ -0,0 +1,34 @@ +# viewRule + + + +DO INSTEAD rules for views (e.g., read-only enforcement) + +## Usage + +```typescript +useViewRulesQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } } }) +useViewRuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } } }) +useCreateViewRuleMutation({ selection: { fields: { id: true } } }) +useUpdateViewRuleMutation({ selection: { fields: { id: true } } }) +useDeleteViewRuleMutation({}) +``` + +## Examples + +### List all viewRules + +```typescript +const { data, isLoading } = useViewRulesQuery({ + selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, +}); +``` + +### Create a viewRule + +```typescript +const { mutate } = useCreateViewRuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', viewId: '', name: '', event: '', action: '' }); +``` diff --git a/skills/hooks-public/references/view-table.md b/skills/hooks-public/references/view-table.md new file mode 100644 index 000000000..4c5840383 --- /dev/null +++ b/skills/hooks-public/references/view-table.md @@ -0,0 +1,34 @@ +# viewTable + + + +Junction table linking views to their joined tables for referential integrity + +## Usage + +```typescript +useViewTablesQuery({ selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) +useViewTableQuery({ id: '', selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) +useCreateViewTableMutation({ selection: { fields: { id: true } } }) +useUpdateViewTableMutation({ selection: { fields: { id: true } } }) +useDeleteViewTableMutation({}) +``` + +## Examples + +### List all viewTables + +```typescript +const { data, isLoading } = useViewTablesQuery({ + selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, +}); +``` + +### Create a viewTable + +```typescript +const { mutate } = useCreateViewTableMutation({ + selection: { fields: { id: true } }, +}); +mutate({ viewId: '', tableId: '', joinOrder: '' }); +``` diff --git a/skills/hooks-public/references/view.md b/skills/hooks-public/references/view.md new file mode 100644 index 000000000..ef25cd354 --- /dev/null +++ b/skills/hooks-public/references/view.md @@ -0,0 +1,34 @@ +# view + + + +React Query hooks for View data operations + +## Usage + +```typescript +useViewsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) +useViewQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) +useCreateViewMutation({ selection: { fields: { id: true } } }) +useUpdateViewMutation({ selection: { fields: { id: true } } }) +useDeleteViewMutation({}) +``` + +## Examples + +### List all views + +```typescript +const { data, isLoading } = useViewsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, +}); +``` + +### Create a view + +```typescript +const { mutate } = useCreateViewMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/skills/orm-admin/SKILL.md b/skills/orm-admin/SKILL.md new file mode 100644 index 000000000..68d975e5a --- /dev/null +++ b/skills/orm-admin/SKILL.md @@ -0,0 +1,84 @@ +--- +name: orm-admin +description: ORM client for the admin API — provides typed CRUD operations for 32 tables and 13 custom operations +--- + +# orm-admin + + + +ORM client for the admin API — provides typed CRUD operations for 32 tables and 13 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, appPermission, orgPermission, appLevelRequirement, orgMember, appPermissionDefault, orgPermissionDefault, ... +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.orgGetManagersRecord.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [org-get-managers-record](references/org-get-managers-record.md) +- [org-get-subordinates-record](references/org-get-subordinates-record.md) +- [app-permission](references/app-permission.md) +- [org-permission](references/org-permission.md) +- [app-level-requirement](references/app-level-requirement.md) +- [org-member](references/org-member.md) +- [app-permission-default](references/app-permission-default.md) +- [org-permission-default](references/org-permission-default.md) +- [app-admin-grant](references/app-admin-grant.md) +- [app-owner-grant](references/app-owner-grant.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-owner-grant](references/org-owner-grant.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [membership-type](references/membership-type.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-limit](references/app-limit.md) +- [app-achievement](references/app-achievement.md) +- [app-step](references/app-step.md) +- [claimed-invite](references/claimed-invite.md) +- [app-grant](references/app-grant.md) +- [app-membership-default](references/app-membership-default.md) +- [org-limit](references/org-limit.md) +- [org-claimed-invite](references/org-claimed-invite.md) +- [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) +- [org-membership-default](references/org-membership-default.md) +- [invite](references/invite.md) +- [app-level](references/app-level.md) +- [app-membership](references/app-membership.md) +- [org-membership](references/org-membership.md) +- [org-invite](references/org-invite.md) +- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) +- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) +- [org-is-manager-of](references/org-is-manager-of.md) +- [steps-achieved](references/steps-achieved.md) +- [app-permissions-get-mask](references/app-permissions-get-mask.md) +- [org-permissions-get-mask](references/org-permissions-get-mask.md) +- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) +- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) +- [steps-required](references/steps-required.md) +- [submit-invite-code](references/submit-invite-code.md) +- [submit-org-invite-code](references/submit-org-invite-code.md) diff --git a/skills/orm-admin/references/app-achievement.md b/skills/orm-admin/references/app-achievement.md new file mode 100644 index 000000000..9a70ab997 --- /dev/null +++ b/skills/orm-admin/references/app-achievement.md @@ -0,0 +1,34 @@ +# appAchievement + + + +Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually + +## Usage + +```typescript +db.appAchievement.findMany({ select: { id: true } }).execute() +db.appAchievement.findOne({ id: '', select: { id: true } }).execute() +db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() +db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.appAchievement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appAchievement records + +```typescript +const items = await db.appAchievement.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a appAchievement + +```typescript +const item = await db.appAchievement.create({ + data: { actorId: 'value', name: 'value', count: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-admin-grant.md b/skills/orm-admin/references/app-admin-grant.md new file mode 100644 index 000000000..ad7a25953 --- /dev/null +++ b/skills/orm-admin/references/app-admin-grant.md @@ -0,0 +1,34 @@ +# appAdminGrant + + + +Records of admin role grants and revocations between members + +## Usage + +```typescript +db.appAdminGrant.findMany({ select: { id: true } }).execute() +db.appAdminGrant.findOne({ id: '', select: { id: true } }).execute() +db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.appAdminGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appAdminGrant records + +```typescript +const items = await db.appAdminGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a appAdminGrant + +```typescript +const item = await db.appAdminGrant.create({ + data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-grant.md b/skills/orm-admin/references/app-grant.md new file mode 100644 index 000000000..297f0df6c --- /dev/null +++ b/skills/orm-admin/references/app-grant.md @@ -0,0 +1,34 @@ +# appGrant + + + +Records of individual permission grants and revocations for members via bitmask + +## Usage + +```typescript +db.appGrant.findMany({ select: { id: true } }).execute() +db.appGrant.findOne({ id: '', select: { id: true } }).execute() +db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.appGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appGrant records + +```typescript +const items = await db.appGrant.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a appGrant + +```typescript +const item = await db.appGrant.create({ + data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-level-requirement.md b/skills/orm-admin/references/app-level-requirement.md new file mode 100644 index 000000000..0974f67da --- /dev/null +++ b/skills/orm-admin/references/app-level-requirement.md @@ -0,0 +1,34 @@ +# appLevelRequirement + + + +Defines the specific requirements that must be met to achieve a level + +## Usage + +```typescript +db.appLevelRequirement.findMany({ select: { id: true } }).execute() +db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() +db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() +db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLevelRequirement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLevelRequirement records + +```typescript +const items = await db.appLevelRequirement.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLevelRequirement + +```typescript +const item = await db.appLevelRequirement.create({ + data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-level.md b/skills/orm-admin/references/app-level.md new file mode 100644 index 000000000..d5d0b05c3 --- /dev/null +++ b/skills/orm-admin/references/app-level.md @@ -0,0 +1,34 @@ +# appLevel + + + +Defines available levels that users can achieve by completing requirements + +## Usage + +```typescript +db.appLevel.findMany({ select: { id: true } }).execute() +db.appLevel.findOne({ id: '', select: { id: true } }).execute() +db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() +db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLevel.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLevel records + +```typescript +const items = await db.appLevel.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLevel + +```typescript +const item = await db.appLevel.create({ + data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-limit-default.md b/skills/orm-admin/references/app-limit-default.md new file mode 100644 index 000000000..10261cebe --- /dev/null +++ b/skills/orm-admin/references/app-limit-default.md @@ -0,0 +1,34 @@ +# appLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +db.appLimitDefault.findMany({ select: { id: true } }).execute() +db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() +db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitDefault records + +```typescript +const items = await db.appLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitDefault + +```typescript +const item = await db.appLimitDefault.create({ + data: { name: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-limit.md b/skills/orm-admin/references/app-limit.md new file mode 100644 index 000000000..df69f2ac3 --- /dev/null +++ b/skills/orm-admin/references/app-limit.md @@ -0,0 +1,34 @@ +# appLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +db.appLimit.findMany({ select: { id: true } }).execute() +db.appLimit.findOne({ id: '', select: { id: true } }).execute() +db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() +db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimit records + +```typescript +const items = await db.appLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimit + +```typescript +const item = await db.appLimit.create({ + data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-membership-default.md b/skills/orm-admin/references/app-membership-default.md new file mode 100644 index 000000000..451f17940 --- /dev/null +++ b/skills/orm-admin/references/app-membership-default.md @@ -0,0 +1,34 @@ +# appMembershipDefault + + + +Default membership settings per entity, controlling initial approval and verification state for new members + +## Usage + +```typescript +db.appMembershipDefault.findMany({ select: { id: true } }).execute() +db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() +db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() +db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.appMembershipDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appMembershipDefault records + +```typescript +const items = await db.appMembershipDefault.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a appMembershipDefault + +```typescript +const item = await db.appMembershipDefault.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-membership.md b/skills/orm-admin/references/app-membership.md new file mode 100644 index 000000000..85515d3ce --- /dev/null +++ b/skills/orm-admin/references/app-membership.md @@ -0,0 +1,34 @@ +# appMembership + + + +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + +## Usage + +```typescript +db.appMembership.findMany({ select: { id: true } }).execute() +db.appMembership.findOne({ id: '', select: { id: true } }).execute() +db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute() +db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.appMembership.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appMembership records + +```typescript +const items = await db.appMembership.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a appMembership + +```typescript +const item = await db.appMembership.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', profileId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-owner-grant.md b/skills/orm-admin/references/app-owner-grant.md new file mode 100644 index 000000000..bef70f35c --- /dev/null +++ b/skills/orm-admin/references/app-owner-grant.md @@ -0,0 +1,34 @@ +# appOwnerGrant + + + +Records of ownership transfers and grants between members + +## Usage + +```typescript +db.appOwnerGrant.findMany({ select: { id: true } }).execute() +db.appOwnerGrant.findOne({ id: '', select: { id: true } }).execute() +db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.appOwnerGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appOwnerGrant records + +```typescript +const items = await db.appOwnerGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a appOwnerGrant + +```typescript +const item = await db.appOwnerGrant.create({ + data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-permission-default.md b/skills/orm-admin/references/app-permission-default.md new file mode 100644 index 000000000..78616d665 --- /dev/null +++ b/skills/orm-admin/references/app-permission-default.md @@ -0,0 +1,34 @@ +# appPermissionDefault + + + +Stores the default permission bitmask assigned to new members upon joining + +## Usage + +```typescript +db.appPermissionDefault.findMany({ select: { id: true } }).execute() +db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() +db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() +db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.appPermissionDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermissionDefault records + +```typescript +const items = await db.appPermissionDefault.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a appPermissionDefault + +```typescript +const item = await db.appPermissionDefault.create({ + data: { permissions: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-permission.md b/skills/orm-admin/references/app-permission.md new file mode 100644 index 000000000..14eac6378 --- /dev/null +++ b/skills/orm-admin/references/app-permission.md @@ -0,0 +1,34 @@ +# appPermission + + + +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + +## Usage + +```typescript +db.appPermission.findMany({ select: { id: true } }).execute() +db.appPermission.findOne({ id: '', select: { id: true } }).execute() +db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() +db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermission records + +```typescript +const items = await db.appPermission.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appPermission + +```typescript +const item = await db.appPermission.create({ + data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/app-permissions-get-by-mask.md b/skills/orm-admin/references/app-permissions-get-by-mask.md new file mode 100644 index 000000000..b5fc838fb --- /dev/null +++ b/skills/orm-admin/references/app-permissions-get-by-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetByMask + + + +Reads and enables pagination through a set of `AppPermission`. + +## Usage + +```typescript +db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetByMask + +```typescript +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-admin/references/app-permissions-get-mask-by-names.md b/skills/orm-admin/references/app-permissions-get-mask-by-names.md new file mode 100644 index 000000000..aac070083 --- /dev/null +++ b/skills/orm-admin/references/app-permissions-get-mask-by-names.md @@ -0,0 +1,19 @@ +# appPermissionsGetMaskByNames + + + +Execute the appPermissionsGetMaskByNames query + +## Usage + +```typescript +db.query.appPermissionsGetMaskByNames({ names: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetMaskByNames + +```typescript +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +``` diff --git a/skills/orm-admin/references/app-permissions-get-mask.md b/skills/orm-admin/references/app-permissions-get-mask.md new file mode 100644 index 000000000..7b74f41d1 --- /dev/null +++ b/skills/orm-admin/references/app-permissions-get-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetMask + + + +Execute the appPermissionsGetMask query + +## Usage + +```typescript +db.query.appPermissionsGetMask({ ids: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetMask + +```typescript +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +``` diff --git a/skills/orm-admin/references/app-permissions-get-padded-mask.md b/skills/orm-admin/references/app-permissions-get-padded-mask.md new file mode 100644 index 000000000..a13bde22a --- /dev/null +++ b/skills/orm-admin/references/app-permissions-get-padded-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetPaddedMask + + + +Execute the appPermissionsGetPaddedMask query + +## Usage + +```typescript +db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetPaddedMask + +```typescript +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +``` diff --git a/skills/orm-admin/references/app-step.md b/skills/orm-admin/references/app-step.md new file mode 100644 index 000000000..52eecd7f3 --- /dev/null +++ b/skills/orm-admin/references/app-step.md @@ -0,0 +1,34 @@ +# appStep + + + +Log of individual user actions toward level requirements; every single step ever taken is recorded here + +## Usage + +```typescript +db.appStep.findMany({ select: { id: true } }).execute() +db.appStep.findOne({ id: '', select: { id: true } }).execute() +db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() +db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.appStep.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appStep records + +```typescript +const items = await db.appStep.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a appStep + +```typescript +const item = await db.appStep.create({ + data: { actorId: 'value', name: 'value', count: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/claimed-invite.md b/skills/orm-admin/references/claimed-invite.md new file mode 100644 index 000000000..35a2f1fc7 --- /dev/null +++ b/skills/orm-admin/references/claimed-invite.md @@ -0,0 +1,34 @@ +# claimedInvite + + + +Records of successfully claimed invitations, linking senders to receivers + +## Usage + +```typescript +db.claimedInvite.findMany({ select: { id: true } }).execute() +db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() +db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() +db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.claimedInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all claimedInvite records + +```typescript +const items = await db.claimedInvite.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a claimedInvite + +```typescript +const item = await db.claimedInvite.create({ + data: { data: 'value', senderId: 'value', receiverId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/invite.md b/skills/orm-admin/references/invite.md new file mode 100644 index 000000000..58d4f5fd7 --- /dev/null +++ b/skills/orm-admin/references/invite.md @@ -0,0 +1,34 @@ +# invite + + + +Invitation records sent to prospective members via email, with token-based redemption and expiration + +## Usage + +```typescript +db.invite.findMany({ select: { id: true } }).execute() +db.invite.findOne({ id: '', select: { id: true } }).execute() +db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() +db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.invite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all invite records + +```typescript +const items = await db.invite.findMany({ + select: { id: true, email: true } +}).execute(); +``` + +### Create a invite + +```typescript +const item = await db.invite.create({ + data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/membership-type.md b/skills/orm-admin/references/membership-type.md new file mode 100644 index 000000000..f53c9f806 --- /dev/null +++ b/skills/orm-admin/references/membership-type.md @@ -0,0 +1,34 @@ +# membershipType + + + +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) + +## Usage + +```typescript +db.membershipType.findMany({ select: { id: true } }).execute() +db.membershipType.findOne({ id: '', select: { id: true } }).execute() +db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() +db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.membershipType.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipType records + +```typescript +const items = await db.membershipType.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a membershipType + +```typescript +const item = await db.membershipType.create({ + data: { name: 'value', description: 'value', prefix: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-admin-grant.md b/skills/orm-admin/references/org-admin-grant.md new file mode 100644 index 000000000..0d5f67026 --- /dev/null +++ b/skills/orm-admin/references/org-admin-grant.md @@ -0,0 +1,34 @@ +# orgAdminGrant + + + +Records of admin role grants and revocations between members + +## Usage + +```typescript +db.orgAdminGrant.findMany({ select: { id: true } }).execute() +db.orgAdminGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.orgAdminGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgAdminGrant records + +```typescript +const items = await db.orgAdminGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a orgAdminGrant + +```typescript +const item = await db.orgAdminGrant.create({ + data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-chart-edge-grant.md b/skills/orm-admin/references/org-chart-edge-grant.md new file mode 100644 index 000000000..55c97a1cb --- /dev/null +++ b/skills/orm-admin/references/org-chart-edge-grant.md @@ -0,0 +1,34 @@ +# orgChartEdgeGrant + + + +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + +## Usage + +```typescript +db.orgChartEdgeGrant.findMany({ select: { id: true } }).execute() +db.orgChartEdgeGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() +db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() +db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgChartEdgeGrant records + +```typescript +const items = await db.orgChartEdgeGrant.findMany({ + select: { id: true, entityId: true } +}).execute(); +``` + +### Create a orgChartEdgeGrant + +```typescript +const item = await db.orgChartEdgeGrant.create({ + data: { entityId: 'value', childId: 'value', parentId: 'value', grantorId: 'value', isGrant: 'value', positionTitle: 'value', positionLevel: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-chart-edge.md b/skills/orm-admin/references/org-chart-edge.md new file mode 100644 index 000000000..7fd06a563 --- /dev/null +++ b/skills/orm-admin/references/org-chart-edge.md @@ -0,0 +1,34 @@ +# orgChartEdge + + + +Organizational chart edges defining parent-child reporting relationships between members within an entity + +## Usage + +```typescript +db.orgChartEdge.findMany({ select: { id: true } }).execute() +db.orgChartEdge.findOne({ id: '', select: { id: true } }).execute() +db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() +db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() +db.orgChartEdge.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgChartEdge records + +```typescript +const items = await db.orgChartEdge.findMany({ + select: { id: true, entityId: true } +}).execute(); +``` + +### Create a orgChartEdge + +```typescript +const item = await db.orgChartEdge.create({ + data: { entityId: 'value', childId: 'value', parentId: 'value', positionTitle: 'value', positionLevel: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-claimed-invite.md b/skills/orm-admin/references/org-claimed-invite.md new file mode 100644 index 000000000..663a6733a --- /dev/null +++ b/skills/orm-admin/references/org-claimed-invite.md @@ -0,0 +1,34 @@ +# orgClaimedInvite + + + +Records of successfully claimed invitations, linking senders to receivers + +## Usage + +```typescript +db.orgClaimedInvite.findMany({ select: { id: true } }).execute() +db.orgClaimedInvite.findOne({ id: '', select: { id: true } }).execute() +db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgClaimedInvite records + +```typescript +const items = await db.orgClaimedInvite.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a orgClaimedInvite + +```typescript +const item = await db.orgClaimedInvite.create({ + data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-get-managers-record.md b/skills/orm-admin/references/org-get-managers-record.md new file mode 100644 index 000000000..5ea846004 --- /dev/null +++ b/skills/orm-admin/references/org-get-managers-record.md @@ -0,0 +1,34 @@ +# orgGetManagersRecord + + + +ORM operations for OrgGetManagersRecord records + +## Usage + +```typescript +db.orgGetManagersRecord.findMany({ select: { id: true } }).execute() +db.orgGetManagersRecord.findOne({ id: '', select: { id: true } }).execute() +db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() +db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() +db.orgGetManagersRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGetManagersRecord records + +```typescript +const items = await db.orgGetManagersRecord.findMany({ + select: { id: true, userId: true } +}).execute(); +``` + +### Create a orgGetManagersRecord + +```typescript +const item = await db.orgGetManagersRecord.create({ + data: { userId: 'value', depth: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-get-subordinates-record.md b/skills/orm-admin/references/org-get-subordinates-record.md new file mode 100644 index 000000000..9ad550faa --- /dev/null +++ b/skills/orm-admin/references/org-get-subordinates-record.md @@ -0,0 +1,34 @@ +# orgGetSubordinatesRecord + + + +ORM operations for OrgGetSubordinatesRecord records + +## Usage + +```typescript +db.orgGetSubordinatesRecord.findMany({ select: { id: true } }).execute() +db.orgGetSubordinatesRecord.findOne({ id: '', select: { id: true } }).execute() +db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() +db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() +db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGetSubordinatesRecord records + +```typescript +const items = await db.orgGetSubordinatesRecord.findMany({ + select: { id: true, userId: true } +}).execute(); +``` + +### Create a orgGetSubordinatesRecord + +```typescript +const item = await db.orgGetSubordinatesRecord.create({ + data: { userId: 'value', depth: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-grant.md b/skills/orm-admin/references/org-grant.md new file mode 100644 index 000000000..cac51ea17 --- /dev/null +++ b/skills/orm-admin/references/org-grant.md @@ -0,0 +1,34 @@ +# orgGrant + + + +Records of individual permission grants and revocations for members via bitmask + +## Usage + +```typescript +db.orgGrant.findMany({ select: { id: true } }).execute() +db.orgGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.orgGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGrant records + +```typescript +const items = await db.orgGrant.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a orgGrant + +```typescript +const item = await db.orgGrant.create({ + data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-invite.md b/skills/orm-admin/references/org-invite.md new file mode 100644 index 000000000..27ea8b4ac --- /dev/null +++ b/skills/orm-admin/references/org-invite.md @@ -0,0 +1,34 @@ +# orgInvite + + + +Invitation records sent to prospective members via email, with token-based redemption and expiration + +## Usage + +```typescript +db.orgInvite.findMany({ select: { id: true } }).execute() +db.orgInvite.findOne({ id: '', select: { id: true } }).execute() +db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() +db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.orgInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgInvite records + +```typescript +const items = await db.orgInvite.findMany({ + select: { id: true, email: true } +}).execute(); +``` + +### Create a orgInvite + +```typescript +const item = await db.orgInvite.create({ + data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-is-manager-of.md b/skills/orm-admin/references/org-is-manager-of.md new file mode 100644 index 000000000..297cd9d25 --- /dev/null +++ b/skills/orm-admin/references/org-is-manager-of.md @@ -0,0 +1,19 @@ +# orgIsManagerOf + + + +Execute the orgIsManagerOf query + +## Usage + +```typescript +db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute() +``` + +## Examples + +### Run orgIsManagerOf + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` diff --git a/skills/orm-admin/references/org-limit-default.md b/skills/orm-admin/references/org-limit-default.md new file mode 100644 index 000000000..50f1c01dc --- /dev/null +++ b/skills/orm-admin/references/org-limit-default.md @@ -0,0 +1,34 @@ +# orgLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +db.orgLimitDefault.findMany({ select: { id: true } }).execute() +db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitDefault records + +```typescript +const items = await db.orgLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitDefault + +```typescript +const item = await db.orgLimitDefault.create({ + data: { name: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-limit.md b/skills/orm-admin/references/org-limit.md new file mode 100644 index 000000000..0326e1e56 --- /dev/null +++ b/skills/orm-admin/references/org-limit.md @@ -0,0 +1,34 @@ +# orgLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +db.orgLimit.findMany({ select: { id: true } }).execute() +db.orgLimit.findOne({ id: '', select: { id: true } }).execute() +db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() +db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimit records + +```typescript +const items = await db.orgLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimit + +```typescript +const item = await db.orgLimit.create({ + data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-member.md b/skills/orm-admin/references/org-member.md new file mode 100644 index 000000000..8843ae79c --- /dev/null +++ b/skills/orm-admin/references/org-member.md @@ -0,0 +1,34 @@ +# orgMember + + + +Simplified view of active members in an entity, used for listing who belongs to an org or group + +## Usage + +```typescript +db.orgMember.findMany({ select: { id: true } }).execute() +db.orgMember.findOne({ id: '', select: { id: true } }).execute() +db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() +db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() +db.orgMember.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMember records + +```typescript +const items = await db.orgMember.findMany({ + select: { id: true, isAdmin: true } +}).execute(); +``` + +### Create a orgMember + +```typescript +const item = await db.orgMember.create({ + data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-membership-default.md b/skills/orm-admin/references/org-membership-default.md new file mode 100644 index 000000000..016a513cf --- /dev/null +++ b/skills/orm-admin/references/org-membership-default.md @@ -0,0 +1,34 @@ +# orgMembershipDefault + + + +Default membership settings per entity, controlling initial approval and verification state for new members + +## Usage + +```typescript +db.orgMembershipDefault.findMany({ select: { id: true } }).execute() +db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() +db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMembershipDefault records + +```typescript +const items = await db.orgMembershipDefault.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a orgMembershipDefault + +```typescript +const item = await db.orgMembershipDefault.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-membership.md b/skills/orm-admin/references/org-membership.md new file mode 100644 index 000000000..fd7feb28f --- /dev/null +++ b/skills/orm-admin/references/org-membership.md @@ -0,0 +1,34 @@ +# orgMembership + + + +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + +## Usage + +```typescript +db.orgMembership.findMany({ select: { id: true } }).execute() +db.orgMembership.findOne({ id: '', select: { id: true } }).execute() +db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute() +db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.orgMembership.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMembership records + +```typescript +const items = await db.orgMembership.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a orgMembership + +```typescript +const item = await db.orgMembership.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value', profileId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-owner-grant.md b/skills/orm-admin/references/org-owner-grant.md new file mode 100644 index 000000000..ddac1e36c --- /dev/null +++ b/skills/orm-admin/references/org-owner-grant.md @@ -0,0 +1,34 @@ +# orgOwnerGrant + + + +Records of ownership transfers and grants between members + +## Usage + +```typescript +db.orgOwnerGrant.findMany({ select: { id: true } }).execute() +db.orgOwnerGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgOwnerGrant records + +```typescript +const items = await db.orgOwnerGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a orgOwnerGrant + +```typescript +const item = await db.orgOwnerGrant.create({ + data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-permission-default.md b/skills/orm-admin/references/org-permission-default.md new file mode 100644 index 000000000..76fd65f89 --- /dev/null +++ b/skills/orm-admin/references/org-permission-default.md @@ -0,0 +1,34 @@ +# orgPermissionDefault + + + +Stores the default permission bitmask assigned to new members upon joining + +## Usage + +```typescript +db.orgPermissionDefault.findMany({ select: { id: true } }).execute() +db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() +db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermissionDefault records + +```typescript +const items = await db.orgPermissionDefault.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a orgPermissionDefault + +```typescript +const item = await db.orgPermissionDefault.create({ + data: { permissions: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-permission.md b/skills/orm-admin/references/org-permission.md new file mode 100644 index 000000000..5be6a77e0 --- /dev/null +++ b/skills/orm-admin/references/org-permission.md @@ -0,0 +1,34 @@ +# orgPermission + + + +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + +## Usage + +```typescript +db.orgPermission.findMany({ select: { id: true } }).execute() +db.orgPermission.findOne({ id: '', select: { id: true } }).execute() +db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() +db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermission records + +```typescript +const items = await db.orgPermission.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgPermission + +```typescript +const item = await db.orgPermission.create({ + data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-admin/references/org-permissions-get-by-mask.md b/skills/orm-admin/references/org-permissions-get-by-mask.md new file mode 100644 index 000000000..f2d575f78 --- /dev/null +++ b/skills/orm-admin/references/org-permissions-get-by-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetByMask + + + +Reads and enables pagination through a set of `OrgPermission`. + +## Usage + +```typescript +db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetByMask + +```typescript +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-admin/references/org-permissions-get-mask-by-names.md b/skills/orm-admin/references/org-permissions-get-mask-by-names.md new file mode 100644 index 000000000..b1733bc1e --- /dev/null +++ b/skills/orm-admin/references/org-permissions-get-mask-by-names.md @@ -0,0 +1,19 @@ +# orgPermissionsGetMaskByNames + + + +Execute the orgPermissionsGetMaskByNames query + +## Usage + +```typescript +db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetMaskByNames + +```typescript +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +``` diff --git a/skills/orm-admin/references/org-permissions-get-mask.md b/skills/orm-admin/references/org-permissions-get-mask.md new file mode 100644 index 000000000..1469dcd3d --- /dev/null +++ b/skills/orm-admin/references/org-permissions-get-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetMask + + + +Execute the orgPermissionsGetMask query + +## Usage + +```typescript +db.query.orgPermissionsGetMask({ ids: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetMask + +```typescript +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +``` diff --git a/skills/orm-admin/references/org-permissions-get-padded-mask.md b/skills/orm-admin/references/org-permissions-get-padded-mask.md new file mode 100644 index 000000000..9469bf338 --- /dev/null +++ b/skills/orm-admin/references/org-permissions-get-padded-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetPaddedMask + + + +Execute the orgPermissionsGetPaddedMask query + +## Usage + +```typescript +db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetPaddedMask + +```typescript +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +``` diff --git a/skills/orm-admin/references/steps-achieved.md b/skills/orm-admin/references/steps-achieved.md new file mode 100644 index 000000000..4f03f7cd7 --- /dev/null +++ b/skills/orm-admin/references/steps-achieved.md @@ -0,0 +1,19 @@ +# stepsAchieved + + + +Execute the stepsAchieved query + +## Usage + +```typescript +db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() +``` + +## Examples + +### Run stepsAchieved + +```typescript +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +``` diff --git a/skills/orm-admin/references/steps-required.md b/skills/orm-admin/references/steps-required.md new file mode 100644 index 000000000..d571950a6 --- /dev/null +++ b/skills/orm-admin/references/steps-required.md @@ -0,0 +1,19 @@ +# stepsRequired + + + +Reads and enables pagination through a set of `AppLevelRequirement`. + +## Usage + +```typescript +db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run stepsRequired + +```typescript +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-admin/references/submit-invite-code.md b/skills/orm-admin/references/submit-invite-code.md new file mode 100644 index 000000000..5fa303aa4 --- /dev/null +++ b/skills/orm-admin/references/submit-invite-code.md @@ -0,0 +1,19 @@ +# submitInviteCode + + + +Execute the submitInviteCode mutation + +## Usage + +```typescript +db.mutation.submitInviteCode({ input: '' }).execute() +``` + +## Examples + +### Run submitInviteCode + +```typescript +const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +``` diff --git a/skills/orm-admin/references/submit-org-invite-code.md b/skills/orm-admin/references/submit-org-invite-code.md new file mode 100644 index 000000000..21098824d --- /dev/null +++ b/skills/orm-admin/references/submit-org-invite-code.md @@ -0,0 +1,19 @@ +# submitOrgInviteCode + + + +Execute the submitOrgInviteCode mutation + +## Usage + +```typescript +db.mutation.submitOrgInviteCode({ input: '' }).execute() +``` + +## Examples + +### Run submitOrgInviteCode + +```typescript +const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/SKILL.md b/skills/orm-auth/SKILL.md new file mode 100644 index 000000000..7e0e0fc02 --- /dev/null +++ b/skills/orm-auth/SKILL.md @@ -0,0 +1,66 @@ +--- +name: orm-auth +description: ORM client for the auth API — provides typed CRUD operations for 7 tables and 20 custom operations +--- + +# orm-auth + + + +ORM client for the auth API — provides typed CRUD operations for 7 tables and 20 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: roleType, cryptoAddress, phoneNumber, connectedAccount, auditLog, email, user +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.roleType.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [role-type](references/role-type.md) +- [crypto-address](references/crypto-address.md) +- [phone-number](references/phone-number.md) +- [connected-account](references/connected-account.md) +- [audit-log](references/audit-log.md) +- [email](references/email.md) +- [user](references/user.md) +- [current-ip-address](references/current-ip-address.md) +- [current-user-agent](references/current-user-agent.md) +- [current-user-id](references/current-user-id.md) +- [current-user](references/current-user.md) +- [sign-out](references/sign-out.md) +- [send-account-deletion-email](references/send-account-deletion-email.md) +- [check-password](references/check-password.md) +- [confirm-delete-account](references/confirm-delete-account.md) +- [set-password](references/set-password.md) +- [verify-email](references/verify-email.md) +- [reset-password](references/reset-password.md) +- [sign-in-one-time-token](references/sign-in-one-time-token.md) +- [sign-in](references/sign-in.md) +- [sign-up](references/sign-up.md) +- [one-time-token](references/one-time-token.md) +- [extend-token-expires](references/extend-token-expires.md) +- [forgot-password](references/forgot-password.md) +- [send-verification-email](references/send-verification-email.md) +- [verify-password](references/verify-password.md) +- [verify-totp](references/verify-totp.md) diff --git a/skills/orm-auth/references/audit-log.md b/skills/orm-auth/references/audit-log.md new file mode 100644 index 000000000..e7dd7e4ca --- /dev/null +++ b/skills/orm-auth/references/audit-log.md @@ -0,0 +1,34 @@ +# auditLog + + + +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + +## Usage + +```typescript +db.auditLog.findMany({ select: { id: true } }).execute() +db.auditLog.findOne({ id: '', select: { id: true } }).execute() +db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() +db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() +db.auditLog.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all auditLog records + +```typescript +const items = await db.auditLog.findMany({ + select: { id: true, event: true } +}).execute(); +``` + +### Create a auditLog + +```typescript +const item = await db.auditLog.create({ + data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-auth/references/check-password.md b/skills/orm-auth/references/check-password.md new file mode 100644 index 000000000..bfee107d5 --- /dev/null +++ b/skills/orm-auth/references/check-password.md @@ -0,0 +1,19 @@ +# checkPassword + + + +Execute the checkPassword mutation + +## Usage + +```typescript +db.mutation.checkPassword({ input: '' }).execute() +``` + +## Examples + +### Run checkPassword + +```typescript +const result = await db.mutation.checkPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/confirm-delete-account.md b/skills/orm-auth/references/confirm-delete-account.md new file mode 100644 index 000000000..1bd81edc3 --- /dev/null +++ b/skills/orm-auth/references/confirm-delete-account.md @@ -0,0 +1,19 @@ +# confirmDeleteAccount + + + +Execute the confirmDeleteAccount mutation + +## Usage + +```typescript +db.mutation.confirmDeleteAccount({ input: '' }).execute() +``` + +## Examples + +### Run confirmDeleteAccount + +```typescript +const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/connected-account.md b/skills/orm-auth/references/connected-account.md new file mode 100644 index 000000000..aa560d236 --- /dev/null +++ b/skills/orm-auth/references/connected-account.md @@ -0,0 +1,34 @@ +# connectedAccount + + + +OAuth and social login connections linking external service accounts to users + +## Usage + +```typescript +db.connectedAccount.findMany({ select: { id: true } }).execute() +db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() +db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() +db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.connectedAccount.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all connectedAccount records + +```typescript +const items = await db.connectedAccount.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a connectedAccount + +```typescript +const item = await db.connectedAccount.create({ + data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-auth/references/crypto-address.md b/skills/orm-auth/references/crypto-address.md new file mode 100644 index 000000000..10b9cc8ed --- /dev/null +++ b/skills/orm-auth/references/crypto-address.md @@ -0,0 +1,34 @@ +# cryptoAddress + + + +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification + +## Usage + +```typescript +db.cryptoAddress.findMany({ select: { id: true } }).execute() +db.cryptoAddress.findOne({ id: '', select: { id: true } }).execute() +db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.cryptoAddress.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAddress records + +```typescript +const items = await db.cryptoAddress.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a cryptoAddress + +```typescript +const item = await db.cryptoAddress.create({ + data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-auth/references/current-ip-address.md b/skills/orm-auth/references/current-ip-address.md new file mode 100644 index 000000000..1710e6e55 --- /dev/null +++ b/skills/orm-auth/references/current-ip-address.md @@ -0,0 +1,19 @@ +# currentIpAddress + + + +Execute the currentIpAddress query + +## Usage + +```typescript +db.query.currentIpAddress().execute() +``` + +## Examples + +### Run currentIpAddress + +```typescript +const result = await db.query.currentIpAddress().execute(); +``` diff --git a/skills/orm-auth/references/current-user-agent.md b/skills/orm-auth/references/current-user-agent.md new file mode 100644 index 000000000..07c3111b8 --- /dev/null +++ b/skills/orm-auth/references/current-user-agent.md @@ -0,0 +1,19 @@ +# currentUserAgent + + + +Execute the currentUserAgent query + +## Usage + +```typescript +db.query.currentUserAgent().execute() +``` + +## Examples + +### Run currentUserAgent + +```typescript +const result = await db.query.currentUserAgent().execute(); +``` diff --git a/skills/orm-auth/references/current-user-id.md b/skills/orm-auth/references/current-user-id.md new file mode 100644 index 000000000..82b4141e2 --- /dev/null +++ b/skills/orm-auth/references/current-user-id.md @@ -0,0 +1,19 @@ +# currentUserId + + + +Execute the currentUserId query + +## Usage + +```typescript +db.query.currentUserId().execute() +``` + +## Examples + +### Run currentUserId + +```typescript +const result = await db.query.currentUserId().execute(); +``` diff --git a/skills/orm-auth/references/current-user.md b/skills/orm-auth/references/current-user.md new file mode 100644 index 000000000..9c49471b0 --- /dev/null +++ b/skills/orm-auth/references/current-user.md @@ -0,0 +1,19 @@ +# currentUser + + + +Execute the currentUser query + +## Usage + +```typescript +db.query.currentUser().execute() +``` + +## Examples + +### Run currentUser + +```typescript +const result = await db.query.currentUser().execute(); +``` diff --git a/skills/orm-auth/references/email.md b/skills/orm-auth/references/email.md new file mode 100644 index 000000000..f89a71874 --- /dev/null +++ b/skills/orm-auth/references/email.md @@ -0,0 +1,34 @@ +# email + + + +User email addresses with verification and primary-email management + +## Usage + +```typescript +db.email.findMany({ select: { id: true } }).execute() +db.email.findOne({ id: '', select: { id: true } }).execute() +db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.email.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all email records + +```typescript +const items = await db.email.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a email + +```typescript +const item = await db.email.create({ + data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-auth/references/extend-token-expires.md b/skills/orm-auth/references/extend-token-expires.md new file mode 100644 index 000000000..6d5325213 --- /dev/null +++ b/skills/orm-auth/references/extend-token-expires.md @@ -0,0 +1,19 @@ +# extendTokenExpires + + + +Execute the extendTokenExpires mutation + +## Usage + +```typescript +db.mutation.extendTokenExpires({ input: '' }).execute() +``` + +## Examples + +### Run extendTokenExpires + +```typescript +const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/forgot-password.md b/skills/orm-auth/references/forgot-password.md new file mode 100644 index 000000000..5615850c5 --- /dev/null +++ b/skills/orm-auth/references/forgot-password.md @@ -0,0 +1,19 @@ +# forgotPassword + + + +Execute the forgotPassword mutation + +## Usage + +```typescript +db.mutation.forgotPassword({ input: '' }).execute() +``` + +## Examples + +### Run forgotPassword + +```typescript +const result = await db.mutation.forgotPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/one-time-token.md b/skills/orm-auth/references/one-time-token.md new file mode 100644 index 000000000..9a2880c8f --- /dev/null +++ b/skills/orm-auth/references/one-time-token.md @@ -0,0 +1,19 @@ +# oneTimeToken + + + +Execute the oneTimeToken mutation + +## Usage + +```typescript +db.mutation.oneTimeToken({ input: '' }).execute() +``` + +## Examples + +### Run oneTimeToken + +```typescript +const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/phone-number.md b/skills/orm-auth/references/phone-number.md new file mode 100644 index 000000000..1ecf93b35 --- /dev/null +++ b/skills/orm-auth/references/phone-number.md @@ -0,0 +1,34 @@ +# phoneNumber + + + +User phone numbers with country code, verification, and primary-number management + +## Usage + +```typescript +db.phoneNumber.findMany({ select: { id: true } }).execute() +db.phoneNumber.findOne({ id: '', select: { id: true } }).execute() +db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.phoneNumber.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all phoneNumber records + +```typescript +const items = await db.phoneNumber.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a phoneNumber + +```typescript +const item = await db.phoneNumber.create({ + data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-auth/references/reset-password.md b/skills/orm-auth/references/reset-password.md new file mode 100644 index 000000000..1a456d7db --- /dev/null +++ b/skills/orm-auth/references/reset-password.md @@ -0,0 +1,19 @@ +# resetPassword + + + +Execute the resetPassword mutation + +## Usage + +```typescript +db.mutation.resetPassword({ input: '' }).execute() +``` + +## Examples + +### Run resetPassword + +```typescript +const result = await db.mutation.resetPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/role-type.md b/skills/orm-auth/references/role-type.md new file mode 100644 index 000000000..b792f600c --- /dev/null +++ b/skills/orm-auth/references/role-type.md @@ -0,0 +1,34 @@ +# roleType + + + +ORM operations for RoleType records + +## Usage + +```typescript +db.roleType.findMany({ select: { id: true } }).execute() +db.roleType.findOne({ id: '', select: { id: true } }).execute() +db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() +db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.roleType.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all roleType records + +```typescript +const items = await db.roleType.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a roleType + +```typescript +const item = await db.roleType.create({ + data: { name: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-auth/references/send-account-deletion-email.md b/skills/orm-auth/references/send-account-deletion-email.md new file mode 100644 index 000000000..300831013 --- /dev/null +++ b/skills/orm-auth/references/send-account-deletion-email.md @@ -0,0 +1,19 @@ +# sendAccountDeletionEmail + + + +Execute the sendAccountDeletionEmail mutation + +## Usage + +```typescript +db.mutation.sendAccountDeletionEmail({ input: '' }).execute() +``` + +## Examples + +### Run sendAccountDeletionEmail + +```typescript +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/send-verification-email.md b/skills/orm-auth/references/send-verification-email.md new file mode 100644 index 000000000..1e8703b3b --- /dev/null +++ b/skills/orm-auth/references/send-verification-email.md @@ -0,0 +1,19 @@ +# sendVerificationEmail + + + +Execute the sendVerificationEmail mutation + +## Usage + +```typescript +db.mutation.sendVerificationEmail({ input: '' }).execute() +``` + +## Examples + +### Run sendVerificationEmail + +```typescript +const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/set-password.md b/skills/orm-auth/references/set-password.md new file mode 100644 index 000000000..b73aa55f2 --- /dev/null +++ b/skills/orm-auth/references/set-password.md @@ -0,0 +1,19 @@ +# setPassword + + + +Execute the setPassword mutation + +## Usage + +```typescript +db.mutation.setPassword({ input: '' }).execute() +``` + +## Examples + +### Run setPassword + +```typescript +const result = await db.mutation.setPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/sign-in-one-time-token.md b/skills/orm-auth/references/sign-in-one-time-token.md new file mode 100644 index 000000000..c65989daa --- /dev/null +++ b/skills/orm-auth/references/sign-in-one-time-token.md @@ -0,0 +1,19 @@ +# signInOneTimeToken + + + +Execute the signInOneTimeToken mutation + +## Usage + +```typescript +db.mutation.signInOneTimeToken({ input: '' }).execute() +``` + +## Examples + +### Run signInOneTimeToken + +```typescript +const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/sign-in.md b/skills/orm-auth/references/sign-in.md new file mode 100644 index 000000000..45b03c63a --- /dev/null +++ b/skills/orm-auth/references/sign-in.md @@ -0,0 +1,19 @@ +# signIn + + + +Execute the signIn mutation + +## Usage + +```typescript +db.mutation.signIn({ input: '' }).execute() +``` + +## Examples + +### Run signIn + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/sign-out.md b/skills/orm-auth/references/sign-out.md new file mode 100644 index 000000000..bdbd4228f --- /dev/null +++ b/skills/orm-auth/references/sign-out.md @@ -0,0 +1,19 @@ +# signOut + + + +Execute the signOut mutation + +## Usage + +```typescript +db.mutation.signOut({ input: '' }).execute() +``` + +## Examples + +### Run signOut + +```typescript +const result = await db.mutation.signOut({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/sign-up.md b/skills/orm-auth/references/sign-up.md new file mode 100644 index 000000000..8f63164d3 --- /dev/null +++ b/skills/orm-auth/references/sign-up.md @@ -0,0 +1,19 @@ +# signUp + + + +Execute the signUp mutation + +## Usage + +```typescript +db.mutation.signUp({ input: '' }).execute() +``` + +## Examples + +### Run signUp + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/user.md b/skills/orm-auth/references/user.md new file mode 100644 index 000000000..6daa65e5d --- /dev/null +++ b/skills/orm-auth/references/user.md @@ -0,0 +1,34 @@ +# user + + + +ORM operations for User records + +## Usage + +```typescript +db.user.findMany({ select: { id: true } }).execute() +db.user.findOne({ id: '', select: { id: true } }).execute() +db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() +db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() +db.user.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all user records + +```typescript +const items = await db.user.findMany({ + select: { id: true, username: true } +}).execute(); +``` + +### Create a user + +```typescript +const item = await db.user.create({ + data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-auth/references/verify-email.md b/skills/orm-auth/references/verify-email.md new file mode 100644 index 000000000..ffe9adc92 --- /dev/null +++ b/skills/orm-auth/references/verify-email.md @@ -0,0 +1,19 @@ +# verifyEmail + + + +Execute the verifyEmail mutation + +## Usage + +```typescript +db.mutation.verifyEmail({ input: '' }).execute() +``` + +## Examples + +### Run verifyEmail + +```typescript +const result = await db.mutation.verifyEmail({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/verify-password.md b/skills/orm-auth/references/verify-password.md new file mode 100644 index 000000000..f89d17a23 --- /dev/null +++ b/skills/orm-auth/references/verify-password.md @@ -0,0 +1,19 @@ +# verifyPassword + + + +Execute the verifyPassword mutation + +## Usage + +```typescript +db.mutation.verifyPassword({ input: '' }).execute() +``` + +## Examples + +### Run verifyPassword + +```typescript +const result = await db.mutation.verifyPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-auth/references/verify-totp.md b/skills/orm-auth/references/verify-totp.md new file mode 100644 index 000000000..02b135ced --- /dev/null +++ b/skills/orm-auth/references/verify-totp.md @@ -0,0 +1,19 @@ +# verifyTotp + + + +Execute the verifyTotp mutation + +## Usage + +```typescript +db.mutation.verifyTotp({ input: '' }).execute() +``` + +## Examples + +### Run verifyTotp + +```typescript +const result = await db.mutation.verifyTotp({ input: '' }).execute(); +``` diff --git a/skills/orm-objects/SKILL.md b/skills/orm-objects/SKILL.md new file mode 100644 index 000000000..19a4e2126 --- /dev/null +++ b/skills/orm-objects/SKILL.md @@ -0,0 +1,56 @@ +--- +name: orm-objects +description: ORM client for the objects API — provides typed CRUD operations for 5 tables and 12 custom operations +--- + +# orm-objects + + + +ORM client for the objects API — provides typed CRUD operations for 5 tables and 12 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: getAllRecord, object, ref, store, commit +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.getAllRecord.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [get-all-record](references/get-all-record.md) +- [object](references/object.md) +- [ref](references/ref.md) +- [store](references/store.md) +- [commit](references/commit.md) +- [rev-parse](references/rev-parse.md) +- [get-all-objects-from-root](references/get-all-objects-from-root.md) +- [get-path-objects-from-root](references/get-path-objects-from-root.md) +- [get-object-at-path](references/get-object-at-path.md) +- [freeze-objects](references/freeze-objects.md) +- [init-empty-repo](references/init-empty-repo.md) +- [remove-node-at-path](references/remove-node-at-path.md) +- [set-data-at-path](references/set-data-at-path.md) +- [set-props-and-commit](references/set-props-and-commit.md) +- [insert-node-at-path](references/insert-node-at-path.md) +- [update-node-at-path](references/update-node-at-path.md) +- [set-and-commit](references/set-and-commit.md) diff --git a/skills/orm-objects/references/commit.md b/skills/orm-objects/references/commit.md new file mode 100644 index 000000000..6f3ead99d --- /dev/null +++ b/skills/orm-objects/references/commit.md @@ -0,0 +1,34 @@ +# commit + + + +A commit records changes to the repository. + +## Usage + +```typescript +db.commit.findMany({ select: { id: true } }).execute() +db.commit.findOne({ id: '', select: { id: true } }).execute() +db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() +db.commit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all commit records + +```typescript +const items = await db.commit.findMany({ + select: { id: true, message: true } +}).execute(); +``` + +### Create a commit + +```typescript +const item = await db.commit.create({ + data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-objects/references/freeze-objects.md b/skills/orm-objects/references/freeze-objects.md new file mode 100644 index 000000000..e8b29e205 --- /dev/null +++ b/skills/orm-objects/references/freeze-objects.md @@ -0,0 +1,19 @@ +# freezeObjects + + + +Execute the freezeObjects mutation + +## Usage + +```typescript +db.mutation.freezeObjects({ input: '' }).execute() +``` + +## Examples + +### Run freezeObjects + +```typescript +const result = await db.mutation.freezeObjects({ input: '' }).execute(); +``` diff --git a/skills/orm-objects/references/get-all-objects-from-root.md b/skills/orm-objects/references/get-all-objects-from-root.md new file mode 100644 index 000000000..a7c250d28 --- /dev/null +++ b/skills/orm-objects/references/get-all-objects-from-root.md @@ -0,0 +1,19 @@ +# getAllObjectsFromRoot + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run getAllObjectsFromRoot + +```typescript +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-objects/references/get-all-record.md b/skills/orm-objects/references/get-all-record.md new file mode 100644 index 000000000..b40517647 --- /dev/null +++ b/skills/orm-objects/references/get-all-record.md @@ -0,0 +1,34 @@ +# getAllRecord + + + +ORM operations for GetAllRecord records + +## Usage + +```typescript +db.getAllRecord.findMany({ select: { id: true } }).execute() +db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() +db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() +db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() +db.getAllRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all getAllRecord records + +```typescript +const items = await db.getAllRecord.findMany({ + select: { id: true, path: true } +}).execute(); +``` + +### Create a getAllRecord + +```typescript +const item = await db.getAllRecord.create({ + data: { path: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-objects/references/get-object-at-path.md b/skills/orm-objects/references/get-object-at-path.md new file mode 100644 index 000000000..c49736477 --- /dev/null +++ b/skills/orm-objects/references/get-object-at-path.md @@ -0,0 +1,19 @@ +# getObjectAtPath + + + +Execute the getObjectAtPath query + +## Usage + +```typescript +db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() +``` + +## Examples + +### Run getObjectAtPath + +```typescript +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +``` diff --git a/skills/orm-objects/references/get-path-objects-from-root.md b/skills/orm-objects/references/get-path-objects-from-root.md new file mode 100644 index 000000000..59e8badd7 --- /dev/null +++ b/skills/orm-objects/references/get-path-objects-from-root.md @@ -0,0 +1,19 @@ +# getPathObjectsFromRoot + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run getPathObjectsFromRoot + +```typescript +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-objects/references/init-empty-repo.md b/skills/orm-objects/references/init-empty-repo.md new file mode 100644 index 000000000..8fc4c9b99 --- /dev/null +++ b/skills/orm-objects/references/init-empty-repo.md @@ -0,0 +1,19 @@ +# initEmptyRepo + + + +Execute the initEmptyRepo mutation + +## Usage + +```typescript +db.mutation.initEmptyRepo({ input: '' }).execute() +``` + +## Examples + +### Run initEmptyRepo + +```typescript +const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +``` diff --git a/skills/orm-objects/references/insert-node-at-path.md b/skills/orm-objects/references/insert-node-at-path.md new file mode 100644 index 000000000..76509b290 --- /dev/null +++ b/skills/orm-objects/references/insert-node-at-path.md @@ -0,0 +1,19 @@ +# insertNodeAtPath + + + +Execute the insertNodeAtPath mutation + +## Usage + +```typescript +db.mutation.insertNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run insertNodeAtPath + +```typescript +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +``` diff --git a/skills/orm-objects/references/object.md b/skills/orm-objects/references/object.md new file mode 100644 index 000000000..793c8bcd7 --- /dev/null +++ b/skills/orm-objects/references/object.md @@ -0,0 +1,34 @@ +# object + + + +ORM operations for Object records + +## Usage + +```typescript +db.object.findMany({ select: { id: true } }).execute() +db.object.findOne({ id: '', select: { id: true } }).execute() +db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() +db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() +db.object.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all object records + +```typescript +const items = await db.object.findMany({ + select: { id: true, hashUuid: true } +}).execute(); +``` + +### Create a object + +```typescript +const item = await db.object.create({ + data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-objects/references/ref.md b/skills/orm-objects/references/ref.md new file mode 100644 index 000000000..f677081b4 --- /dev/null +++ b/skills/orm-objects/references/ref.md @@ -0,0 +1,34 @@ +# ref + + + +A ref is a data structure for pointing to a commit. + +## Usage + +```typescript +db.ref.findMany({ select: { id: true } }).execute() +db.ref.findOne({ id: '', select: { id: true } }).execute() +db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.ref.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all ref records + +```typescript +const items = await db.ref.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a ref + +```typescript +const item = await db.ref.create({ + data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-objects/references/remove-node-at-path.md b/skills/orm-objects/references/remove-node-at-path.md new file mode 100644 index 000000000..2f40be220 --- /dev/null +++ b/skills/orm-objects/references/remove-node-at-path.md @@ -0,0 +1,19 @@ +# removeNodeAtPath + + + +Execute the removeNodeAtPath mutation + +## Usage + +```typescript +db.mutation.removeNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run removeNodeAtPath + +```typescript +const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +``` diff --git a/skills/orm-objects/references/rev-parse.md b/skills/orm-objects/references/rev-parse.md new file mode 100644 index 000000000..a453a521e --- /dev/null +++ b/skills/orm-objects/references/rev-parse.md @@ -0,0 +1,19 @@ +# revParse + + + +Execute the revParse query + +## Usage + +```typescript +db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() +``` + +## Examples + +### Run revParse + +```typescript +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +``` diff --git a/skills/orm-objects/references/set-and-commit.md b/skills/orm-objects/references/set-and-commit.md new file mode 100644 index 000000000..0338f98b8 --- /dev/null +++ b/skills/orm-objects/references/set-and-commit.md @@ -0,0 +1,19 @@ +# setAndCommit + + + +Execute the setAndCommit mutation + +## Usage + +```typescript +db.mutation.setAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run setAndCommit + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` diff --git a/skills/orm-objects/references/set-data-at-path.md b/skills/orm-objects/references/set-data-at-path.md new file mode 100644 index 000000000..8aa78306f --- /dev/null +++ b/skills/orm-objects/references/set-data-at-path.md @@ -0,0 +1,19 @@ +# setDataAtPath + + + +Execute the setDataAtPath mutation + +## Usage + +```typescript +db.mutation.setDataAtPath({ input: '' }).execute() +``` + +## Examples + +### Run setDataAtPath + +```typescript +const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +``` diff --git a/skills/orm-objects/references/set-props-and-commit.md b/skills/orm-objects/references/set-props-and-commit.md new file mode 100644 index 000000000..55680feb5 --- /dev/null +++ b/skills/orm-objects/references/set-props-and-commit.md @@ -0,0 +1,19 @@ +# setPropsAndCommit + + + +Execute the setPropsAndCommit mutation + +## Usage + +```typescript +db.mutation.setPropsAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run setPropsAndCommit + +```typescript +const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +``` diff --git a/skills/orm-objects/references/store.md b/skills/orm-objects/references/store.md new file mode 100644 index 000000000..0716daaff --- /dev/null +++ b/skills/orm-objects/references/store.md @@ -0,0 +1,34 @@ +# store + + + +A store represents an isolated object repository within a database. + +## Usage + +```typescript +db.store.findMany({ select: { id: true } }).execute() +db.store.findOne({ id: '', select: { id: true } }).execute() +db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.store.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all store records + +```typescript +const items = await db.store.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a store + +```typescript +const item = await db.store.create({ + data: { name: 'value', databaseId: 'value', hash: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-objects/references/update-node-at-path.md b/skills/orm-objects/references/update-node-at-path.md new file mode 100644 index 000000000..950af4042 --- /dev/null +++ b/skills/orm-objects/references/update-node-at-path.md @@ -0,0 +1,19 @@ +# updateNodeAtPath + + + +Execute the updateNodeAtPath mutation + +## Usage + +```typescript +db.mutation.updateNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run updateNodeAtPath + +```typescript +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +``` diff --git a/skills/orm-public/SKILL.md b/skills/orm-public/SKILL.md new file mode 100644 index 000000000..f48b920bc --- /dev/null +++ b/skills/orm-public/SKILL.md @@ -0,0 +1,193 @@ +--- +name: orm-public +description: ORM client for the public API — provides typed CRUD operations for 104 tables and 50 custom operations +--- + +# orm-public + + + +ORM client for the public API — provides typed CRUD operations for 104 tables and 50 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, getAllRecord, appPermission, orgPermission, object, appLevelRequirement, database, ... +db..findMany({ select: { id: true } }).execute() +db..findOne({ id: '', select: { id: true } }).execute() +db..create({ data: { ... }, select: { id: true } }).execute() +db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() +db..delete({ where: { id: '' } }).execute() +``` + +## Examples + +### Query records + +```typescript +const items = await db.orgGetManagersRecord.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [org-get-managers-record](references/org-get-managers-record.md) +- [org-get-subordinates-record](references/org-get-subordinates-record.md) +- [get-all-record](references/get-all-record.md) +- [app-permission](references/app-permission.md) +- [org-permission](references/org-permission.md) +- [object](references/object.md) +- [app-level-requirement](references/app-level-requirement.md) +- [database](references/database.md) +- [schema](references/schema.md) +- [table](references/table.md) +- [check-constraint](references/check-constraint.md) +- [field](references/field.md) +- [foreign-key-constraint](references/foreign-key-constraint.md) +- [full-text-search](references/full-text-search.md) +- [index](references/index.md) +- [policy](references/policy.md) +- [primary-key-constraint](references/primary-key-constraint.md) +- [table-grant](references/table-grant.md) +- [trigger](references/trigger.md) +- [unique-constraint](references/unique-constraint.md) +- [view](references/view.md) +- [view-table](references/view-table.md) +- [view-grant](references/view-grant.md) +- [view-rule](references/view-rule.md) +- [table-module](references/table-module.md) +- [table-template-module](references/table-template-module.md) +- [secure-table-provision](references/secure-table-provision.md) +- [relation-provision](references/relation-provision.md) +- [schema-grant](references/schema-grant.md) +- [default-privilege](references/default-privilege.md) +- [api-schema](references/api-schema.md) +- [api-module](references/api-module.md) +- [domain](references/domain.md) +- [site-metadatum](references/site-metadatum.md) +- [site-module](references/site-module.md) +- [site-theme](references/site-theme.md) +- [trigger-function](references/trigger-function.md) +- [api](references/api.md) +- [site](references/site.md) +- [app](references/app.md) +- [connected-accounts-module](references/connected-accounts-module.md) +- [crypto-addresses-module](references/crypto-addresses-module.md) +- [crypto-auth-module](references/crypto-auth-module.md) +- [default-ids-module](references/default-ids-module.md) +- [denormalized-table-field](references/denormalized-table-field.md) +- [emails-module](references/emails-module.md) +- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [field-module](references/field-module.md) +- [invites-module](references/invites-module.md) +- [levels-module](references/levels-module.md) +- [limits-module](references/limits-module.md) +- [membership-types-module](references/membership-types-module.md) +- [memberships-module](references/memberships-module.md) +- [permissions-module](references/permissions-module.md) +- [phone-numbers-module](references/phone-numbers-module.md) +- [profiles-module](references/profiles-module.md) +- [rls-module](references/rls-module.md) +- [secrets-module](references/secrets-module.md) +- [sessions-module](references/sessions-module.md) +- [user-auth-module](references/user-auth-module.md) +- [users-module](references/users-module.md) +- [uuid-module](references/uuid-module.md) +- [database-provision-module](references/database-provision-module.md) +- [app-admin-grant](references/app-admin-grant.md) +- [app-owner-grant](references/app-owner-grant.md) +- [app-grant](references/app-grant.md) +- [org-membership](references/org-membership.md) +- [org-member](references/org-member.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-owner-grant](references/org-owner-grant.md) +- [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-limit](references/app-limit.md) +- [org-limit](references/org-limit.md) +- [app-step](references/app-step.md) +- [app-achievement](references/app-achievement.md) +- [invite](references/invite.md) +- [claimed-invite](references/claimed-invite.md) +- [org-invite](references/org-invite.md) +- [org-claimed-invite](references/org-claimed-invite.md) +- [ref](references/ref.md) +- [store](references/store.md) +- [app-permission-default](references/app-permission-default.md) +- [role-type](references/role-type.md) +- [org-permission-default](references/org-permission-default.md) +- [crypto-address](references/crypto-address.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [connected-account](references/connected-account.md) +- [phone-number](references/phone-number.md) +- [membership-type](references/membership-type.md) +- [node-type-registry](references/node-type-registry.md) +- [app-membership-default](references/app-membership-default.md) +- [commit](references/commit.md) +- [org-membership-default](references/org-membership-default.md) +- [audit-log](references/audit-log.md) +- [app-level](references/app-level.md) +- [email](references/email.md) +- [sql-migration](references/sql-migration.md) +- [ast-migration](references/ast-migration.md) +- [user](references/user.md) +- [app-membership](references/app-membership.md) +- [hierarchy-module](references/hierarchy-module.md) +- [current-user-id](references/current-user-id.md) +- [current-ip-address](references/current-ip-address.md) +- [current-user-agent](references/current-user-agent.md) +- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) +- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) +- [steps-achieved](references/steps-achieved.md) +- [rev-parse](references/rev-parse.md) +- [org-is-manager-of](references/org-is-manager-of.md) +- [app-permissions-get-mask](references/app-permissions-get-mask.md) +- [org-permissions-get-mask](references/org-permissions-get-mask.md) +- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) +- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) +- [get-all-objects-from-root](references/get-all-objects-from-root.md) +- [get-path-objects-from-root](references/get-path-objects-from-root.md) +- [get-object-at-path](references/get-object-at-path.md) +- [steps-required](references/steps-required.md) +- [current-user](references/current-user.md) +- [sign-out](references/sign-out.md) +- [send-account-deletion-email](references/send-account-deletion-email.md) +- [check-password](references/check-password.md) +- [submit-invite-code](references/submit-invite-code.md) +- [submit-org-invite-code](references/submit-org-invite-code.md) +- [freeze-objects](references/freeze-objects.md) +- [init-empty-repo](references/init-empty-repo.md) +- [confirm-delete-account](references/confirm-delete-account.md) +- [set-password](references/set-password.md) +- [verify-email](references/verify-email.md) +- [reset-password](references/reset-password.md) +- [remove-node-at-path](references/remove-node-at-path.md) +- [bootstrap-user](references/bootstrap-user.md) +- [set-data-at-path](references/set-data-at-path.md) +- [set-props-and-commit](references/set-props-and-commit.md) +- [provision-database-with-user](references/provision-database-with-user.md) +- [sign-in-one-time-token](references/sign-in-one-time-token.md) +- [create-user-database](references/create-user-database.md) +- [extend-token-expires](references/extend-token-expires.md) +- [sign-in](references/sign-in.md) +- [sign-up](references/sign-up.md) +- [set-field-order](references/set-field-order.md) +- [one-time-token](references/one-time-token.md) +- [insert-node-at-path](references/insert-node-at-path.md) +- [update-node-at-path](references/update-node-at-path.md) +- [set-and-commit](references/set-and-commit.md) +- [apply-rls](references/apply-rls.md) +- [forgot-password](references/forgot-password.md) +- [send-verification-email](references/send-verification-email.md) +- [verify-password](references/verify-password.md) +- [verify-totp](references/verify-totp.md) diff --git a/skills/orm-public/references/api-module.md b/skills/orm-public/references/api-module.md new file mode 100644 index 000000000..a31dd405d --- /dev/null +++ b/skills/orm-public/references/api-module.md @@ -0,0 +1,34 @@ +# apiModule + + + +Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server + +## Usage + +```typescript +db.apiModule.findMany({ select: { id: true } }).execute() +db.apiModule.findOne({ id: '', select: { id: true } }).execute() +db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute() +db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.apiModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all apiModule records + +```typescript +const items = await db.apiModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a apiModule + +```typescript +const item = await db.apiModule.create({ + data: { databaseId: 'value', apiId: 'value', name: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/api-schema.md b/skills/orm-public/references/api-schema.md new file mode 100644 index 000000000..acab88c5a --- /dev/null +++ b/skills/orm-public/references/api-schema.md @@ -0,0 +1,34 @@ +# apiSchema + + + +Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API + +## Usage + +```typescript +db.apiSchema.findMany({ select: { id: true } }).execute() +db.apiSchema.findOne({ id: '', select: { id: true } }).execute() +db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute() +db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.apiSchema.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all apiSchema records + +```typescript +const items = await db.apiSchema.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a apiSchema + +```typescript +const item = await db.apiSchema.create({ + data: { databaseId: 'value', schemaId: 'value', apiId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/api.md b/skills/orm-public/references/api.md new file mode 100644 index 000000000..9c45c72e7 --- /dev/null +++ b/skills/orm-public/references/api.md @@ -0,0 +1,34 @@ +# api + + + +API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings + +## Usage + +```typescript +db.api.findMany({ select: { id: true } }).execute() +db.api.findOne({ id: '', select: { id: true } }).execute() +db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute() +db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.api.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all api records + +```typescript +const items = await db.api.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a api + +```typescript +const item = await db.api.create({ + data: { databaseId: 'value', name: 'value', dbname: 'value', roleName: 'value', anonRole: 'value', isPublic: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-achievement.md b/skills/orm-public/references/app-achievement.md new file mode 100644 index 000000000..9a70ab997 --- /dev/null +++ b/skills/orm-public/references/app-achievement.md @@ -0,0 +1,34 @@ +# appAchievement + + + +Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually + +## Usage + +```typescript +db.appAchievement.findMany({ select: { id: true } }).execute() +db.appAchievement.findOne({ id: '', select: { id: true } }).execute() +db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() +db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.appAchievement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appAchievement records + +```typescript +const items = await db.appAchievement.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a appAchievement + +```typescript +const item = await db.appAchievement.create({ + data: { actorId: 'value', name: 'value', count: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-admin-grant.md b/skills/orm-public/references/app-admin-grant.md new file mode 100644 index 000000000..ad7a25953 --- /dev/null +++ b/skills/orm-public/references/app-admin-grant.md @@ -0,0 +1,34 @@ +# appAdminGrant + + + +Records of admin role grants and revocations between members + +## Usage + +```typescript +db.appAdminGrant.findMany({ select: { id: true } }).execute() +db.appAdminGrant.findOne({ id: '', select: { id: true } }).execute() +db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.appAdminGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appAdminGrant records + +```typescript +const items = await db.appAdminGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a appAdminGrant + +```typescript +const item = await db.appAdminGrant.create({ + data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-grant.md b/skills/orm-public/references/app-grant.md new file mode 100644 index 000000000..297f0df6c --- /dev/null +++ b/skills/orm-public/references/app-grant.md @@ -0,0 +1,34 @@ +# appGrant + + + +Records of individual permission grants and revocations for members via bitmask + +## Usage + +```typescript +db.appGrant.findMany({ select: { id: true } }).execute() +db.appGrant.findOne({ id: '', select: { id: true } }).execute() +db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.appGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appGrant records + +```typescript +const items = await db.appGrant.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a appGrant + +```typescript +const item = await db.appGrant.create({ + data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-level-requirement.md b/skills/orm-public/references/app-level-requirement.md new file mode 100644 index 000000000..0974f67da --- /dev/null +++ b/skills/orm-public/references/app-level-requirement.md @@ -0,0 +1,34 @@ +# appLevelRequirement + + + +Defines the specific requirements that must be met to achieve a level + +## Usage + +```typescript +db.appLevelRequirement.findMany({ select: { id: true } }).execute() +db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() +db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() +db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLevelRequirement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLevelRequirement records + +```typescript +const items = await db.appLevelRequirement.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLevelRequirement + +```typescript +const item = await db.appLevelRequirement.create({ + data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-level.md b/skills/orm-public/references/app-level.md new file mode 100644 index 000000000..d5d0b05c3 --- /dev/null +++ b/skills/orm-public/references/app-level.md @@ -0,0 +1,34 @@ +# appLevel + + + +Defines available levels that users can achieve by completing requirements + +## Usage + +```typescript +db.appLevel.findMany({ select: { id: true } }).execute() +db.appLevel.findOne({ id: '', select: { id: true } }).execute() +db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() +db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLevel.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLevel records + +```typescript +const items = await db.appLevel.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLevel + +```typescript +const item = await db.appLevel.create({ + data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-limit-default.md b/skills/orm-public/references/app-limit-default.md new file mode 100644 index 000000000..10261cebe --- /dev/null +++ b/skills/orm-public/references/app-limit-default.md @@ -0,0 +1,34 @@ +# appLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +db.appLimitDefault.findMany({ select: { id: true } }).execute() +db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() +db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitDefault records + +```typescript +const items = await db.appLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitDefault + +```typescript +const item = await db.appLimitDefault.create({ + data: { name: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-limit.md b/skills/orm-public/references/app-limit.md new file mode 100644 index 000000000..df69f2ac3 --- /dev/null +++ b/skills/orm-public/references/app-limit.md @@ -0,0 +1,34 @@ +# appLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +db.appLimit.findMany({ select: { id: true } }).execute() +db.appLimit.findOne({ id: '', select: { id: true } }).execute() +db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() +db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimit records + +```typescript +const items = await db.appLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimit + +```typescript +const item = await db.appLimit.create({ + data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-membership-default.md b/skills/orm-public/references/app-membership-default.md new file mode 100644 index 000000000..451f17940 --- /dev/null +++ b/skills/orm-public/references/app-membership-default.md @@ -0,0 +1,34 @@ +# appMembershipDefault + + + +Default membership settings per entity, controlling initial approval and verification state for new members + +## Usage + +```typescript +db.appMembershipDefault.findMany({ select: { id: true } }).execute() +db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() +db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() +db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.appMembershipDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appMembershipDefault records + +```typescript +const items = await db.appMembershipDefault.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a appMembershipDefault + +```typescript +const item = await db.appMembershipDefault.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-membership.md b/skills/orm-public/references/app-membership.md new file mode 100644 index 000000000..85515d3ce --- /dev/null +++ b/skills/orm-public/references/app-membership.md @@ -0,0 +1,34 @@ +# appMembership + + + +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + +## Usage + +```typescript +db.appMembership.findMany({ select: { id: true } }).execute() +db.appMembership.findOne({ id: '', select: { id: true } }).execute() +db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute() +db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.appMembership.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appMembership records + +```typescript +const items = await db.appMembership.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a appMembership + +```typescript +const item = await db.appMembership.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', profileId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-owner-grant.md b/skills/orm-public/references/app-owner-grant.md new file mode 100644 index 000000000..bef70f35c --- /dev/null +++ b/skills/orm-public/references/app-owner-grant.md @@ -0,0 +1,34 @@ +# appOwnerGrant + + + +Records of ownership transfers and grants between members + +## Usage + +```typescript +db.appOwnerGrant.findMany({ select: { id: true } }).execute() +db.appOwnerGrant.findOne({ id: '', select: { id: true } }).execute() +db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.appOwnerGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appOwnerGrant records + +```typescript +const items = await db.appOwnerGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a appOwnerGrant + +```typescript +const item = await db.appOwnerGrant.create({ + data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-permission-default.md b/skills/orm-public/references/app-permission-default.md new file mode 100644 index 000000000..78616d665 --- /dev/null +++ b/skills/orm-public/references/app-permission-default.md @@ -0,0 +1,34 @@ +# appPermissionDefault + + + +Stores the default permission bitmask assigned to new members upon joining + +## Usage + +```typescript +db.appPermissionDefault.findMany({ select: { id: true } }).execute() +db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() +db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() +db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.appPermissionDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermissionDefault records + +```typescript +const items = await db.appPermissionDefault.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a appPermissionDefault + +```typescript +const item = await db.appPermissionDefault.create({ + data: { permissions: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-permission.md b/skills/orm-public/references/app-permission.md new file mode 100644 index 000000000..14eac6378 --- /dev/null +++ b/skills/orm-public/references/app-permission.md @@ -0,0 +1,34 @@ +# appPermission + + + +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + +## Usage + +```typescript +db.appPermission.findMany({ select: { id: true } }).execute() +db.appPermission.findOne({ id: '', select: { id: true } }).execute() +db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() +db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermission records + +```typescript +const items = await db.appPermission.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appPermission + +```typescript +const item = await db.appPermission.create({ + data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app-permissions-get-by-mask.md b/skills/orm-public/references/app-permissions-get-by-mask.md new file mode 100644 index 000000000..b5fc838fb --- /dev/null +++ b/skills/orm-public/references/app-permissions-get-by-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetByMask + + + +Reads and enables pagination through a set of `AppPermission`. + +## Usage + +```typescript +db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetByMask + +```typescript +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-public/references/app-permissions-get-mask-by-names.md b/skills/orm-public/references/app-permissions-get-mask-by-names.md new file mode 100644 index 000000000..aac070083 --- /dev/null +++ b/skills/orm-public/references/app-permissions-get-mask-by-names.md @@ -0,0 +1,19 @@ +# appPermissionsGetMaskByNames + + + +Execute the appPermissionsGetMaskByNames query + +## Usage + +```typescript +db.query.appPermissionsGetMaskByNames({ names: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetMaskByNames + +```typescript +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +``` diff --git a/skills/orm-public/references/app-permissions-get-mask.md b/skills/orm-public/references/app-permissions-get-mask.md new file mode 100644 index 000000000..7b74f41d1 --- /dev/null +++ b/skills/orm-public/references/app-permissions-get-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetMask + + + +Execute the appPermissionsGetMask query + +## Usage + +```typescript +db.query.appPermissionsGetMask({ ids: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetMask + +```typescript +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +``` diff --git a/skills/orm-public/references/app-permissions-get-padded-mask.md b/skills/orm-public/references/app-permissions-get-padded-mask.md new file mode 100644 index 000000000..a13bde22a --- /dev/null +++ b/skills/orm-public/references/app-permissions-get-padded-mask.md @@ -0,0 +1,19 @@ +# appPermissionsGetPaddedMask + + + +Execute the appPermissionsGetPaddedMask query + +## Usage + +```typescript +db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetPaddedMask + +```typescript +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +``` diff --git a/skills/orm-public/references/app-step.md b/skills/orm-public/references/app-step.md new file mode 100644 index 000000000..52eecd7f3 --- /dev/null +++ b/skills/orm-public/references/app-step.md @@ -0,0 +1,34 @@ +# appStep + + + +Log of individual user actions toward level requirements; every single step ever taken is recorded here + +## Usage + +```typescript +db.appStep.findMany({ select: { id: true } }).execute() +db.appStep.findOne({ id: '', select: { id: true } }).execute() +db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() +db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.appStep.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appStep records + +```typescript +const items = await db.appStep.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a appStep + +```typescript +const item = await db.appStep.create({ + data: { actorId: 'value', name: 'value', count: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/app.md b/skills/orm-public/references/app.md new file mode 100644 index 000000000..0dd221b3c --- /dev/null +++ b/skills/orm-public/references/app.md @@ -0,0 +1,34 @@ +# app + + + +Mobile and native app configuration linked to a site, including store links and identifiers + +## Usage + +```typescript +db.app.findMany({ select: { id: true } }).execute() +db.app.findOne({ id: '', select: { id: true } }).execute() +db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute() +db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.app.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all app records + +```typescript +const items = await db.app.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a app + +```typescript +const item = await db.app.create({ + data: { databaseId: 'value', siteId: 'value', name: 'value', appImage: 'value', appStoreLink: 'value', appStoreId: 'value', appIdPrefix: 'value', playStoreLink: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/apply-rls.md b/skills/orm-public/references/apply-rls.md new file mode 100644 index 000000000..8391dd13c --- /dev/null +++ b/skills/orm-public/references/apply-rls.md @@ -0,0 +1,19 @@ +# applyRls + + + +Execute the applyRls mutation + +## Usage + +```typescript +db.mutation.applyRls({ input: '' }).execute() +``` + +## Examples + +### Run applyRls + +```typescript +const result = await db.mutation.applyRls({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/ast-migration.md b/skills/orm-public/references/ast-migration.md new file mode 100644 index 000000000..a2bda9429 --- /dev/null +++ b/skills/orm-public/references/ast-migration.md @@ -0,0 +1,34 @@ +# astMigration + + + +ORM operations for AstMigration records + +## Usage + +```typescript +db.astMigration.findMany({ select: { id: true } }).execute() +db.astMigration.findOne({ id: '', select: { id: true } }).execute() +db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() +db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.astMigration.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all astMigration records + +```typescript +const items = await db.astMigration.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a astMigration + +```typescript +const item = await db.astMigration.create({ + data: { databaseId: 'value', name: 'value', requires: 'value', payload: 'value', deploys: 'value', deploy: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/audit-log.md b/skills/orm-public/references/audit-log.md new file mode 100644 index 000000000..e7dd7e4ca --- /dev/null +++ b/skills/orm-public/references/audit-log.md @@ -0,0 +1,34 @@ +# auditLog + + + +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + +## Usage + +```typescript +db.auditLog.findMany({ select: { id: true } }).execute() +db.auditLog.findOne({ id: '', select: { id: true } }).execute() +db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() +db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() +db.auditLog.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all auditLog records + +```typescript +const items = await db.auditLog.findMany({ + select: { id: true, event: true } +}).execute(); +``` + +### Create a auditLog + +```typescript +const item = await db.auditLog.create({ + data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/bootstrap-user.md b/skills/orm-public/references/bootstrap-user.md new file mode 100644 index 000000000..0b6d8af05 --- /dev/null +++ b/skills/orm-public/references/bootstrap-user.md @@ -0,0 +1,19 @@ +# bootstrapUser + + + +Execute the bootstrapUser mutation + +## Usage + +```typescript +db.mutation.bootstrapUser({ input: '' }).execute() +``` + +## Examples + +### Run bootstrapUser + +```typescript +const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/check-constraint.md b/skills/orm-public/references/check-constraint.md new file mode 100644 index 000000000..ff7e00803 --- /dev/null +++ b/skills/orm-public/references/check-constraint.md @@ -0,0 +1,34 @@ +# checkConstraint + + + +ORM operations for CheckConstraint records + +## Usage + +```typescript +db.checkConstraint.findMany({ select: { id: true } }).execute() +db.checkConstraint.findOne({ id: '', select: { id: true } }).execute() +db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.checkConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all checkConstraint records + +```typescript +const items = await db.checkConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a checkConstraint + +```typescript +const item = await db.checkConstraint.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', expr: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/check-password.md b/skills/orm-public/references/check-password.md new file mode 100644 index 000000000..bfee107d5 --- /dev/null +++ b/skills/orm-public/references/check-password.md @@ -0,0 +1,19 @@ +# checkPassword + + + +Execute the checkPassword mutation + +## Usage + +```typescript +db.mutation.checkPassword({ input: '' }).execute() +``` + +## Examples + +### Run checkPassword + +```typescript +const result = await db.mutation.checkPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/claimed-invite.md b/skills/orm-public/references/claimed-invite.md new file mode 100644 index 000000000..35a2f1fc7 --- /dev/null +++ b/skills/orm-public/references/claimed-invite.md @@ -0,0 +1,34 @@ +# claimedInvite + + + +Records of successfully claimed invitations, linking senders to receivers + +## Usage + +```typescript +db.claimedInvite.findMany({ select: { id: true } }).execute() +db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() +db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() +db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.claimedInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all claimedInvite records + +```typescript +const items = await db.claimedInvite.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a claimedInvite + +```typescript +const item = await db.claimedInvite.create({ + data: { data: 'value', senderId: 'value', receiverId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/commit.md b/skills/orm-public/references/commit.md new file mode 100644 index 000000000..6f3ead99d --- /dev/null +++ b/skills/orm-public/references/commit.md @@ -0,0 +1,34 @@ +# commit + + + +A commit records changes to the repository. + +## Usage + +```typescript +db.commit.findMany({ select: { id: true } }).execute() +db.commit.findOne({ id: '', select: { id: true } }).execute() +db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() +db.commit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all commit records + +```typescript +const items = await db.commit.findMany({ + select: { id: true, message: true } +}).execute(); +``` + +### Create a commit + +```typescript +const item = await db.commit.create({ + data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/confirm-delete-account.md b/skills/orm-public/references/confirm-delete-account.md new file mode 100644 index 000000000..1bd81edc3 --- /dev/null +++ b/skills/orm-public/references/confirm-delete-account.md @@ -0,0 +1,19 @@ +# confirmDeleteAccount + + + +Execute the confirmDeleteAccount mutation + +## Usage + +```typescript +db.mutation.confirmDeleteAccount({ input: '' }).execute() +``` + +## Examples + +### Run confirmDeleteAccount + +```typescript +const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/connected-account.md b/skills/orm-public/references/connected-account.md new file mode 100644 index 000000000..aa560d236 --- /dev/null +++ b/skills/orm-public/references/connected-account.md @@ -0,0 +1,34 @@ +# connectedAccount + + + +OAuth and social login connections linking external service accounts to users + +## Usage + +```typescript +db.connectedAccount.findMany({ select: { id: true } }).execute() +db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() +db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() +db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.connectedAccount.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all connectedAccount records + +```typescript +const items = await db.connectedAccount.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a connectedAccount + +```typescript +const item = await db.connectedAccount.create({ + data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/connected-accounts-module.md b/skills/orm-public/references/connected-accounts-module.md new file mode 100644 index 000000000..848609464 --- /dev/null +++ b/skills/orm-public/references/connected-accounts-module.md @@ -0,0 +1,34 @@ +# connectedAccountsModule + + + +ORM operations for ConnectedAccountsModule records + +## Usage + +```typescript +db.connectedAccountsModule.findMany({ select: { id: true } }).execute() +db.connectedAccountsModule.findOne({ id: '', select: { id: true } }).execute() +db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() +db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.connectedAccountsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all connectedAccountsModule records + +```typescript +const items = await db.connectedAccountsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a connectedAccountsModule + +```typescript +const item = await db.connectedAccountsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/create-user-database.md b/skills/orm-public/references/create-user-database.md new file mode 100644 index 000000000..8f39155cc --- /dev/null +++ b/skills/orm-public/references/create-user-database.md @@ -0,0 +1,35 @@ +# createUserDatabase + + + +Creates a new user database with all required modules, permissions, and RLS policies. + +Parameters: + - database_name: Name for the new database (required) + - owner_id: UUID of the owner user (required) + - include_invites: Include invite system (default: true) + - include_groups: Include group-level memberships (default: false) + - include_levels: Include levels/achievements (default: false) + - bitlen: Bit length for permission masks (default: 64) + - tokens_expiration: Token expiration interval (default: 30 days) + +Returns the database_id UUID of the newly created database. + +Example usage: + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups + + +## Usage + +```typescript +db.mutation.createUserDatabase({ input: '' }).execute() +``` + +## Examples + +### Run createUserDatabase + +```typescript +const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/crypto-address.md b/skills/orm-public/references/crypto-address.md new file mode 100644 index 000000000..10b9cc8ed --- /dev/null +++ b/skills/orm-public/references/crypto-address.md @@ -0,0 +1,34 @@ +# cryptoAddress + + + +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification + +## Usage + +```typescript +db.cryptoAddress.findMany({ select: { id: true } }).execute() +db.cryptoAddress.findOne({ id: '', select: { id: true } }).execute() +db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.cryptoAddress.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAddress records + +```typescript +const items = await db.cryptoAddress.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a cryptoAddress + +```typescript +const item = await db.cryptoAddress.create({ + data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/crypto-addresses-module.md b/skills/orm-public/references/crypto-addresses-module.md new file mode 100644 index 000000000..e90eade85 --- /dev/null +++ b/skills/orm-public/references/crypto-addresses-module.md @@ -0,0 +1,34 @@ +# cryptoAddressesModule + + + +ORM operations for CryptoAddressesModule records + +## Usage + +```typescript +db.cryptoAddressesModule.findMany({ select: { id: true } }).execute() +db.cryptoAddressesModule.findOne({ id: '', select: { id: true } }).execute() +db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute() +db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.cryptoAddressesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAddressesModule records + +```typescript +const items = await db.cryptoAddressesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a cryptoAddressesModule + +```typescript +const item = await db.cryptoAddressesModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', cryptoNetwork: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/crypto-auth-module.md b/skills/orm-public/references/crypto-auth-module.md new file mode 100644 index 000000000..01c8d12b0 --- /dev/null +++ b/skills/orm-public/references/crypto-auth-module.md @@ -0,0 +1,34 @@ +# cryptoAuthModule + + + +ORM operations for CryptoAuthModule records + +## Usage + +```typescript +db.cryptoAuthModule.findMany({ select: { id: true } }).execute() +db.cryptoAuthModule.findOne({ id: '', select: { id: true } }).execute() +db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute() +db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.cryptoAuthModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAuthModule records + +```typescript +const items = await db.cryptoAuthModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a cryptoAuthModule + +```typescript +const item = await db.cryptoAuthModule.create({ + data: { databaseId: 'value', schemaId: 'value', usersTableId: 'value', secretsTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', addressesTableId: 'value', userField: 'value', cryptoNetwork: 'value', signInRequestChallenge: 'value', signInRecordFailure: 'value', signUpWithKey: 'value', signInWithChallenge: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/current-ip-address.md b/skills/orm-public/references/current-ip-address.md new file mode 100644 index 000000000..1710e6e55 --- /dev/null +++ b/skills/orm-public/references/current-ip-address.md @@ -0,0 +1,19 @@ +# currentIpAddress + + + +Execute the currentIpAddress query + +## Usage + +```typescript +db.query.currentIpAddress().execute() +``` + +## Examples + +### Run currentIpAddress + +```typescript +const result = await db.query.currentIpAddress().execute(); +``` diff --git a/skills/orm-public/references/current-user-agent.md b/skills/orm-public/references/current-user-agent.md new file mode 100644 index 000000000..07c3111b8 --- /dev/null +++ b/skills/orm-public/references/current-user-agent.md @@ -0,0 +1,19 @@ +# currentUserAgent + + + +Execute the currentUserAgent query + +## Usage + +```typescript +db.query.currentUserAgent().execute() +``` + +## Examples + +### Run currentUserAgent + +```typescript +const result = await db.query.currentUserAgent().execute(); +``` diff --git a/skills/orm-public/references/current-user-id.md b/skills/orm-public/references/current-user-id.md new file mode 100644 index 000000000..82b4141e2 --- /dev/null +++ b/skills/orm-public/references/current-user-id.md @@ -0,0 +1,19 @@ +# currentUserId + + + +Execute the currentUserId query + +## Usage + +```typescript +db.query.currentUserId().execute() +``` + +## Examples + +### Run currentUserId + +```typescript +const result = await db.query.currentUserId().execute(); +``` diff --git a/skills/orm-public/references/current-user.md b/skills/orm-public/references/current-user.md new file mode 100644 index 000000000..9c49471b0 --- /dev/null +++ b/skills/orm-public/references/current-user.md @@ -0,0 +1,19 @@ +# currentUser + + + +Execute the currentUser query + +## Usage + +```typescript +db.query.currentUser().execute() +``` + +## Examples + +### Run currentUser + +```typescript +const result = await db.query.currentUser().execute(); +``` diff --git a/skills/orm-public/references/database-provision-module.md b/skills/orm-public/references/database-provision-module.md new file mode 100644 index 000000000..323f93b4f --- /dev/null +++ b/skills/orm-public/references/database-provision-module.md @@ -0,0 +1,34 @@ +# databaseProvisionModule + + + +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. + +## Usage + +```typescript +db.databaseProvisionModule.findMany({ select: { id: true } }).execute() +db.databaseProvisionModule.findOne({ id: '', select: { id: true } }).execute() +db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute() +db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute() +db.databaseProvisionModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseProvisionModule records + +```typescript +const items = await db.databaseProvisionModule.findMany({ + select: { id: true, databaseName: true } +}).execute(); +``` + +### Create a databaseProvisionModule + +```typescript +const item = await db.databaseProvisionModule.create({ + data: { databaseName: 'value', ownerId: 'value', subdomain: 'value', domain: 'value', modules: 'value', options: 'value', bootstrapUser: 'value', status: 'value', errorMessage: 'value', databaseId: 'value', completedAt: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/database.md b/skills/orm-public/references/database.md new file mode 100644 index 000000000..86340eb94 --- /dev/null +++ b/skills/orm-public/references/database.md @@ -0,0 +1,34 @@ +# database + + + +ORM operations for Database records + +## Usage + +```typescript +db.database.findMany({ select: { id: true } }).execute() +db.database.findOne({ id: '', select: { id: true } }).execute() +db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute() +db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.database.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all database records + +```typescript +const items = await db.database.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a database + +```typescript +const item = await db.database.create({ + data: { ownerId: 'value', schemaHash: 'value', name: 'value', label: 'value', hash: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/default-ids-module.md b/skills/orm-public/references/default-ids-module.md new file mode 100644 index 000000000..b9a75b545 --- /dev/null +++ b/skills/orm-public/references/default-ids-module.md @@ -0,0 +1,34 @@ +# defaultIdsModule + + + +ORM operations for DefaultIdsModule records + +## Usage + +```typescript +db.defaultIdsModule.findMany({ select: { id: true } }).execute() +db.defaultIdsModule.findOne({ id: '', select: { id: true } }).execute() +db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute() +db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.defaultIdsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all defaultIdsModule records + +```typescript +const items = await db.defaultIdsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a defaultIdsModule + +```typescript +const item = await db.defaultIdsModule.create({ + data: { databaseId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/default-privilege.md b/skills/orm-public/references/default-privilege.md new file mode 100644 index 000000000..78953f33a --- /dev/null +++ b/skills/orm-public/references/default-privilege.md @@ -0,0 +1,34 @@ +# defaultPrivilege + + + +ORM operations for DefaultPrivilege records + +## Usage + +```typescript +db.defaultPrivilege.findMany({ select: { id: true } }).execute() +db.defaultPrivilege.findOne({ id: '', select: { id: true } }).execute() +db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute() +db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.defaultPrivilege.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all defaultPrivilege records + +```typescript +const items = await db.defaultPrivilege.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a defaultPrivilege + +```typescript +const item = await db.defaultPrivilege.create({ + data: { databaseId: 'value', schemaId: 'value', objectType: 'value', privilege: 'value', granteeName: 'value', isGrant: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/denormalized-table-field.md b/skills/orm-public/references/denormalized-table-field.md new file mode 100644 index 000000000..e8e21b99b --- /dev/null +++ b/skills/orm-public/references/denormalized-table-field.md @@ -0,0 +1,34 @@ +# denormalizedTableField + + + +ORM operations for DenormalizedTableField records + +## Usage + +```typescript +db.denormalizedTableField.findMany({ select: { id: true } }).execute() +db.denormalizedTableField.findOne({ id: '', select: { id: true } }).execute() +db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute() +db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.denormalizedTableField.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all denormalizedTableField records + +```typescript +const items = await db.denormalizedTableField.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a denormalizedTableField + +```typescript +const item = await db.denormalizedTableField.create({ + data: { databaseId: 'value', tableId: 'value', fieldId: 'value', setIds: 'value', refTableId: 'value', refFieldId: 'value', refIds: 'value', useUpdates: 'value', updateDefaults: 'value', funcName: 'value', funcOrder: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/domain.md b/skills/orm-public/references/domain.md new file mode 100644 index 000000000..8ba735f20 --- /dev/null +++ b/skills/orm-public/references/domain.md @@ -0,0 +1,34 @@ +# domain + + + +DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site + +## Usage + +```typescript +db.domain.findMany({ select: { id: true } }).execute() +db.domain.findOne({ id: '', select: { id: true } }).execute() +db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute() +db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.domain.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all domain records + +```typescript +const items = await db.domain.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a domain + +```typescript +const item = await db.domain.create({ + data: { databaseId: 'value', apiId: 'value', siteId: 'value', subdomain: 'value', domain: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/email.md b/skills/orm-public/references/email.md new file mode 100644 index 000000000..f89a71874 --- /dev/null +++ b/skills/orm-public/references/email.md @@ -0,0 +1,34 @@ +# email + + + +User email addresses with verification and primary-email management + +## Usage + +```typescript +db.email.findMany({ select: { id: true } }).execute() +db.email.findOne({ id: '', select: { id: true } }).execute() +db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.email.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all email records + +```typescript +const items = await db.email.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a email + +```typescript +const item = await db.email.create({ + data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/emails-module.md b/skills/orm-public/references/emails-module.md new file mode 100644 index 000000000..7aa8b7c01 --- /dev/null +++ b/skills/orm-public/references/emails-module.md @@ -0,0 +1,34 @@ +# emailsModule + + + +ORM operations for EmailsModule records + +## Usage + +```typescript +db.emailsModule.findMany({ select: { id: true } }).execute() +db.emailsModule.findOne({ id: '', select: { id: true } }).execute() +db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() +db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.emailsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all emailsModule records + +```typescript +const items = await db.emailsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a emailsModule + +```typescript +const item = await db.emailsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/encrypted-secrets-module.md b/skills/orm-public/references/encrypted-secrets-module.md new file mode 100644 index 000000000..899ff8b77 --- /dev/null +++ b/skills/orm-public/references/encrypted-secrets-module.md @@ -0,0 +1,34 @@ +# encryptedSecretsModule + + + +ORM operations for EncryptedSecretsModule records + +## Usage + +```typescript +db.encryptedSecretsModule.findMany({ select: { id: true } }).execute() +db.encryptedSecretsModule.findOne({ id: '', select: { id: true } }).execute() +db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.encryptedSecretsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all encryptedSecretsModule records + +```typescript +const items = await db.encryptedSecretsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a encryptedSecretsModule + +```typescript +const item = await db.encryptedSecretsModule.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/extend-token-expires.md b/skills/orm-public/references/extend-token-expires.md new file mode 100644 index 000000000..6d5325213 --- /dev/null +++ b/skills/orm-public/references/extend-token-expires.md @@ -0,0 +1,19 @@ +# extendTokenExpires + + + +Execute the extendTokenExpires mutation + +## Usage + +```typescript +db.mutation.extendTokenExpires({ input: '' }).execute() +``` + +## Examples + +### Run extendTokenExpires + +```typescript +const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/field-module.md b/skills/orm-public/references/field-module.md new file mode 100644 index 000000000..572a2f624 --- /dev/null +++ b/skills/orm-public/references/field-module.md @@ -0,0 +1,34 @@ +# fieldModule + + + +ORM operations for FieldModule records + +## Usage + +```typescript +db.fieldModule.findMany({ select: { id: true } }).execute() +db.fieldModule.findOne({ id: '', select: { id: true } }).execute() +db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute() +db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.fieldModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all fieldModule records + +```typescript +const items = await db.fieldModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a fieldModule + +```typescript +const item = await db.fieldModule.create({ + data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', fieldId: 'value', nodeType: 'value', data: 'value', triggers: 'value', functions: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/field.md b/skills/orm-public/references/field.md new file mode 100644 index 000000000..bc6a094ca --- /dev/null +++ b/skills/orm-public/references/field.md @@ -0,0 +1,34 @@ +# field + + + +ORM operations for Field records + +## Usage + +```typescript +db.field.findMany({ select: { id: true } }).execute() +db.field.findOne({ id: '', select: { id: true } }).execute() +db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute() +db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.field.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all field records + +```typescript +const items = await db.field.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a field + +```typescript +const item = await db.field.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', isRequired: 'value', defaultValue: 'value', defaultValueAst: 'value', isHidden: 'value', type: 'value', fieldOrder: 'value', regexp: 'value', chk: 'value', chkExpr: 'value', min: 'value', max: 'value', tags: 'value', category: 'value', module: 'value', scope: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/foreign-key-constraint.md b/skills/orm-public/references/foreign-key-constraint.md new file mode 100644 index 000000000..208ed418b --- /dev/null +++ b/skills/orm-public/references/foreign-key-constraint.md @@ -0,0 +1,34 @@ +# foreignKeyConstraint + + + +ORM operations for ForeignKeyConstraint records + +## Usage + +```typescript +db.foreignKeyConstraint.findMany({ select: { id: true } }).execute() +db.foreignKeyConstraint.findOne({ id: '', select: { id: true } }).execute() +db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.foreignKeyConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all foreignKeyConstraint records + +```typescript +const items = await db.foreignKeyConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a foreignKeyConstraint + +```typescript +const item = await db.foreignKeyConstraint.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', refTableId: 'value', refFieldIds: 'value', deleteAction: 'value', updateAction: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/forgot-password.md b/skills/orm-public/references/forgot-password.md new file mode 100644 index 000000000..5615850c5 --- /dev/null +++ b/skills/orm-public/references/forgot-password.md @@ -0,0 +1,19 @@ +# forgotPassword + + + +Execute the forgotPassword mutation + +## Usage + +```typescript +db.mutation.forgotPassword({ input: '' }).execute() +``` + +## Examples + +### Run forgotPassword + +```typescript +const result = await db.mutation.forgotPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/freeze-objects.md b/skills/orm-public/references/freeze-objects.md new file mode 100644 index 000000000..e8b29e205 --- /dev/null +++ b/skills/orm-public/references/freeze-objects.md @@ -0,0 +1,19 @@ +# freezeObjects + + + +Execute the freezeObjects mutation + +## Usage + +```typescript +db.mutation.freezeObjects({ input: '' }).execute() +``` + +## Examples + +### Run freezeObjects + +```typescript +const result = await db.mutation.freezeObjects({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/full-text-search.md b/skills/orm-public/references/full-text-search.md new file mode 100644 index 000000000..b433af08b --- /dev/null +++ b/skills/orm-public/references/full-text-search.md @@ -0,0 +1,34 @@ +# fullTextSearch + + + +ORM operations for FullTextSearch records + +## Usage + +```typescript +db.fullTextSearch.findMany({ select: { id: true } }).execute() +db.fullTextSearch.findOne({ id: '', select: { id: true } }).execute() +db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute() +db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.fullTextSearch.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all fullTextSearch records + +```typescript +const items = await db.fullTextSearch.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a fullTextSearch + +```typescript +const item = await db.fullTextSearch.create({ + data: { databaseId: 'value', tableId: 'value', fieldId: 'value', fieldIds: 'value', weights: 'value', langs: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/get-all-objects-from-root.md b/skills/orm-public/references/get-all-objects-from-root.md new file mode 100644 index 000000000..a7c250d28 --- /dev/null +++ b/skills/orm-public/references/get-all-objects-from-root.md @@ -0,0 +1,19 @@ +# getAllObjectsFromRoot + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run getAllObjectsFromRoot + +```typescript +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-public/references/get-all-record.md b/skills/orm-public/references/get-all-record.md new file mode 100644 index 000000000..b40517647 --- /dev/null +++ b/skills/orm-public/references/get-all-record.md @@ -0,0 +1,34 @@ +# getAllRecord + + + +ORM operations for GetAllRecord records + +## Usage + +```typescript +db.getAllRecord.findMany({ select: { id: true } }).execute() +db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() +db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() +db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() +db.getAllRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all getAllRecord records + +```typescript +const items = await db.getAllRecord.findMany({ + select: { id: true, path: true } +}).execute(); +``` + +### Create a getAllRecord + +```typescript +const item = await db.getAllRecord.create({ + data: { path: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/get-object-at-path.md b/skills/orm-public/references/get-object-at-path.md new file mode 100644 index 000000000..c49736477 --- /dev/null +++ b/skills/orm-public/references/get-object-at-path.md @@ -0,0 +1,19 @@ +# getObjectAtPath + + + +Execute the getObjectAtPath query + +## Usage + +```typescript +db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() +``` + +## Examples + +### Run getObjectAtPath + +```typescript +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +``` diff --git a/skills/orm-public/references/get-path-objects-from-root.md b/skills/orm-public/references/get-path-objects-from-root.md new file mode 100644 index 000000000..59e8badd7 --- /dev/null +++ b/skills/orm-public/references/get-path-objects-from-root.md @@ -0,0 +1,19 @@ +# getPathObjectsFromRoot + + + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run getPathObjectsFromRoot + +```typescript +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-public/references/hierarchy-module.md b/skills/orm-public/references/hierarchy-module.md new file mode 100644 index 000000000..4487340e5 --- /dev/null +++ b/skills/orm-public/references/hierarchy-module.md @@ -0,0 +1,34 @@ +# hierarchyModule + + + +ORM operations for HierarchyModule records + +## Usage + +```typescript +db.hierarchyModule.findMany({ select: { id: true } }).execute() +db.hierarchyModule.findOne({ id: '', select: { id: true } }).execute() +db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute() +db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.hierarchyModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all hierarchyModule records + +```typescript +const items = await db.hierarchyModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a hierarchyModule + +```typescript +const item = await db.hierarchyModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', chartEdgesTableId: 'value', chartEdgesTableName: 'value', hierarchySprtTableId: 'value', hierarchySprtTableName: 'value', chartEdgeGrantsTableId: 'value', chartEdgeGrantsTableName: 'value', entityTableId: 'value', usersTableId: 'value', prefix: 'value', privateSchemaName: 'value', sprtTableName: 'value', rebuildHierarchyFunction: 'value', getSubordinatesFunction: 'value', getManagersFunction: 'value', isManagerOfFunction: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/index.md b/skills/orm-public/references/index.md new file mode 100644 index 000000000..aa07f8444 --- /dev/null +++ b/skills/orm-public/references/index.md @@ -0,0 +1,34 @@ +# index + + + +ORM operations for Index records + +## Usage + +```typescript +db.index.findMany({ select: { id: true } }).execute() +db.index.findOne({ id: '', select: { id: true } }).execute() +db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.index.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all index records + +```typescript +const items = await db.index.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a index + +```typescript +const item = await db.index.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', fieldIds: 'value', includeFieldIds: 'value', accessMethod: 'value', indexParams: 'value', whereClause: 'value', isUnique: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/init-empty-repo.md b/skills/orm-public/references/init-empty-repo.md new file mode 100644 index 000000000..8fc4c9b99 --- /dev/null +++ b/skills/orm-public/references/init-empty-repo.md @@ -0,0 +1,19 @@ +# initEmptyRepo + + + +Execute the initEmptyRepo mutation + +## Usage + +```typescript +db.mutation.initEmptyRepo({ input: '' }).execute() +``` + +## Examples + +### Run initEmptyRepo + +```typescript +const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/insert-node-at-path.md b/skills/orm-public/references/insert-node-at-path.md new file mode 100644 index 000000000..76509b290 --- /dev/null +++ b/skills/orm-public/references/insert-node-at-path.md @@ -0,0 +1,19 @@ +# insertNodeAtPath + + + +Execute the insertNodeAtPath mutation + +## Usage + +```typescript +db.mutation.insertNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run insertNodeAtPath + +```typescript +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/invite.md b/skills/orm-public/references/invite.md new file mode 100644 index 000000000..58d4f5fd7 --- /dev/null +++ b/skills/orm-public/references/invite.md @@ -0,0 +1,34 @@ +# invite + + + +Invitation records sent to prospective members via email, with token-based redemption and expiration + +## Usage + +```typescript +db.invite.findMany({ select: { id: true } }).execute() +db.invite.findOne({ id: '', select: { id: true } }).execute() +db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() +db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.invite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all invite records + +```typescript +const items = await db.invite.findMany({ + select: { id: true, email: true } +}).execute(); +``` + +### Create a invite + +```typescript +const item = await db.invite.create({ + data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/invites-module.md b/skills/orm-public/references/invites-module.md new file mode 100644 index 000000000..969726254 --- /dev/null +++ b/skills/orm-public/references/invites-module.md @@ -0,0 +1,34 @@ +# invitesModule + + + +ORM operations for InvitesModule records + +## Usage + +```typescript +db.invitesModule.findMany({ select: { id: true } }).execute() +db.invitesModule.findOne({ id: '', select: { id: true } }).execute() +db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute() +db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.invitesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all invitesModule records + +```typescript +const items = await db.invitesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a invitesModule + +```typescript +const item = await db.invitesModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', emailsTableId: 'value', usersTableId: 'value', invitesTableId: 'value', claimedInvitesTableId: 'value', invitesTableName: 'value', claimedInvitesTableName: 'value', submitInviteCodeFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/levels-module.md b/skills/orm-public/references/levels-module.md new file mode 100644 index 000000000..788933a3c --- /dev/null +++ b/skills/orm-public/references/levels-module.md @@ -0,0 +1,34 @@ +# levelsModule + + + +ORM operations for LevelsModule records + +## Usage + +```typescript +db.levelsModule.findMany({ select: { id: true } }).execute() +db.levelsModule.findOne({ id: '', select: { id: true } }).execute() +db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() +db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.levelsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all levelsModule records + +```typescript +const items = await db.levelsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a levelsModule + +```typescript +const item = await db.levelsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', stepsTableId: 'value', stepsTableName: 'value', achievementsTableId: 'value', achievementsTableName: 'value', levelsTableId: 'value', levelsTableName: 'value', levelRequirementsTableId: 'value', levelRequirementsTableName: 'value', completedStep: 'value', incompletedStep: 'value', tgAchievement: 'value', tgAchievementToggle: 'value', tgAchievementToggleBoolean: 'value', tgAchievementBoolean: 'value', upsertAchievement: 'value', tgUpdateAchievements: 'value', stepsRequired: 'value', levelAchieved: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/limits-module.md b/skills/orm-public/references/limits-module.md new file mode 100644 index 000000000..fcf15b0e9 --- /dev/null +++ b/skills/orm-public/references/limits-module.md @@ -0,0 +1,34 @@ +# limitsModule + + + +ORM operations for LimitsModule records + +## Usage + +```typescript +db.limitsModule.findMany({ select: { id: true } }).execute() +db.limitsModule.findOne({ id: '', select: { id: true } }).execute() +db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() +db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.limitsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all limitsModule records + +```typescript +const items = await db.limitsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a limitsModule + +```typescript +const item = await db.limitsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', limitIncrementFunction: 'value', limitDecrementFunction: 'value', limitIncrementTrigger: 'value', limitDecrementTrigger: 'value', limitUpdateTrigger: 'value', limitCheckFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/membership-type.md b/skills/orm-public/references/membership-type.md new file mode 100644 index 000000000..f53c9f806 --- /dev/null +++ b/skills/orm-public/references/membership-type.md @@ -0,0 +1,34 @@ +# membershipType + + + +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) + +## Usage + +```typescript +db.membershipType.findMany({ select: { id: true } }).execute() +db.membershipType.findOne({ id: '', select: { id: true } }).execute() +db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() +db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.membershipType.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipType records + +```typescript +const items = await db.membershipType.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a membershipType + +```typescript +const item = await db.membershipType.create({ + data: { name: 'value', description: 'value', prefix: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/membership-types-module.md b/skills/orm-public/references/membership-types-module.md new file mode 100644 index 000000000..7c684800a --- /dev/null +++ b/skills/orm-public/references/membership-types-module.md @@ -0,0 +1,34 @@ +# membershipTypesModule + + + +ORM operations for MembershipTypesModule records + +## Usage + +```typescript +db.membershipTypesModule.findMany({ select: { id: true } }).execute() +db.membershipTypesModule.findOne({ id: '', select: { id: true } }).execute() +db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.membershipTypesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipTypesModule records + +```typescript +const items = await db.membershipTypesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a membershipTypesModule + +```typescript +const item = await db.membershipTypesModule.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/memberships-module.md b/skills/orm-public/references/memberships-module.md new file mode 100644 index 000000000..776bc63a0 --- /dev/null +++ b/skills/orm-public/references/memberships-module.md @@ -0,0 +1,34 @@ +# membershipsModule + + + +ORM operations for MembershipsModule records + +## Usage + +```typescript +db.membershipsModule.findMany({ select: { id: true } }).execute() +db.membershipsModule.findOne({ id: '', select: { id: true } }).execute() +db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }, select: { id: true } }).execute() +db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.membershipsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipsModule records + +```typescript +const items = await db.membershipsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a membershipsModule + +```typescript +const item = await db.membershipsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', membershipsTableId: 'value', membershipsTableName: 'value', membersTableId: 'value', membersTableName: 'value', membershipDefaultsTableId: 'value', membershipDefaultsTableName: 'value', grantsTableId: 'value', grantsTableName: 'value', actorTableId: 'value', limitsTableId: 'value', defaultLimitsTableId: 'value', permissionsTableId: 'value', defaultPermissionsTableId: 'value', sprtTableId: 'value', adminGrantsTableId: 'value', adminGrantsTableName: 'value', ownerGrantsTableId: 'value', ownerGrantsTableName: 'value', membershipType: 'value', entityTableId: 'value', entityTableOwnerId: 'value', prefix: 'value', actorMaskCheck: 'value', actorPermCheck: 'value', entityIdsByMask: 'value', entityIdsByPerm: 'value', entityIdsFunction: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/node-type-registry.md b/skills/orm-public/references/node-type-registry.md new file mode 100644 index 000000000..08d1c2054 --- /dev/null +++ b/skills/orm-public/references/node-type-registry.md @@ -0,0 +1,34 @@ +# nodeTypeRegistry + + + +Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). + +## Usage + +```typescript +db.nodeTypeRegistry.findMany({ select: { id: true } }).execute() +db.nodeTypeRegistry.findOne({ name: '', select: { id: true } }).execute() +db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { id: true } }).execute() +db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { id: true } }).execute() +db.nodeTypeRegistry.delete({ where: { name: '' } }).execute() +``` + +## Examples + +### List all nodeTypeRegistry records + +```typescript +const items = await db.nodeTypeRegistry.findMany({ + select: { name: true, slug: true } +}).execute(); +``` + +### Create a nodeTypeRegistry + +```typescript +const item = await db.nodeTypeRegistry.create({ + data: { slug: 'value', category: 'value', displayName: 'value', description: 'value', parameterSchema: 'value', tags: 'value' }, + select: { name: true } +}).execute(); +``` diff --git a/skills/orm-public/references/object.md b/skills/orm-public/references/object.md new file mode 100644 index 000000000..793c8bcd7 --- /dev/null +++ b/skills/orm-public/references/object.md @@ -0,0 +1,34 @@ +# object + + + +ORM operations for Object records + +## Usage + +```typescript +db.object.findMany({ select: { id: true } }).execute() +db.object.findOne({ id: '', select: { id: true } }).execute() +db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() +db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() +db.object.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all object records + +```typescript +const items = await db.object.findMany({ + select: { id: true, hashUuid: true } +}).execute(); +``` + +### Create a object + +```typescript +const item = await db.object.create({ + data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/one-time-token.md b/skills/orm-public/references/one-time-token.md new file mode 100644 index 000000000..9a2880c8f --- /dev/null +++ b/skills/orm-public/references/one-time-token.md @@ -0,0 +1,19 @@ +# oneTimeToken + + + +Execute the oneTimeToken mutation + +## Usage + +```typescript +db.mutation.oneTimeToken({ input: '' }).execute() +``` + +## Examples + +### Run oneTimeToken + +```typescript +const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/org-admin-grant.md b/skills/orm-public/references/org-admin-grant.md new file mode 100644 index 000000000..0d5f67026 --- /dev/null +++ b/skills/orm-public/references/org-admin-grant.md @@ -0,0 +1,34 @@ +# orgAdminGrant + + + +Records of admin role grants and revocations between members + +## Usage + +```typescript +db.orgAdminGrant.findMany({ select: { id: true } }).execute() +db.orgAdminGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.orgAdminGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgAdminGrant records + +```typescript +const items = await db.orgAdminGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a orgAdminGrant + +```typescript +const item = await db.orgAdminGrant.create({ + data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-chart-edge-grant.md b/skills/orm-public/references/org-chart-edge-grant.md new file mode 100644 index 000000000..55c97a1cb --- /dev/null +++ b/skills/orm-public/references/org-chart-edge-grant.md @@ -0,0 +1,34 @@ +# orgChartEdgeGrant + + + +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table + +## Usage + +```typescript +db.orgChartEdgeGrant.findMany({ select: { id: true } }).execute() +db.orgChartEdgeGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() +db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() +db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgChartEdgeGrant records + +```typescript +const items = await db.orgChartEdgeGrant.findMany({ + select: { id: true, entityId: true } +}).execute(); +``` + +### Create a orgChartEdgeGrant + +```typescript +const item = await db.orgChartEdgeGrant.create({ + data: { entityId: 'value', childId: 'value', parentId: 'value', grantorId: 'value', isGrant: 'value', positionTitle: 'value', positionLevel: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-chart-edge.md b/skills/orm-public/references/org-chart-edge.md new file mode 100644 index 000000000..7fd06a563 --- /dev/null +++ b/skills/orm-public/references/org-chart-edge.md @@ -0,0 +1,34 @@ +# orgChartEdge + + + +Organizational chart edges defining parent-child reporting relationships between members within an entity + +## Usage + +```typescript +db.orgChartEdge.findMany({ select: { id: true } }).execute() +db.orgChartEdge.findOne({ id: '', select: { id: true } }).execute() +db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() +db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() +db.orgChartEdge.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgChartEdge records + +```typescript +const items = await db.orgChartEdge.findMany({ + select: { id: true, entityId: true } +}).execute(); +``` + +### Create a orgChartEdge + +```typescript +const item = await db.orgChartEdge.create({ + data: { entityId: 'value', childId: 'value', parentId: 'value', positionTitle: 'value', positionLevel: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-claimed-invite.md b/skills/orm-public/references/org-claimed-invite.md new file mode 100644 index 000000000..663a6733a --- /dev/null +++ b/skills/orm-public/references/org-claimed-invite.md @@ -0,0 +1,34 @@ +# orgClaimedInvite + + + +Records of successfully claimed invitations, linking senders to receivers + +## Usage + +```typescript +db.orgClaimedInvite.findMany({ select: { id: true } }).execute() +db.orgClaimedInvite.findOne({ id: '', select: { id: true } }).execute() +db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgClaimedInvite records + +```typescript +const items = await db.orgClaimedInvite.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a orgClaimedInvite + +```typescript +const item = await db.orgClaimedInvite.create({ + data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-get-managers-record.md b/skills/orm-public/references/org-get-managers-record.md new file mode 100644 index 000000000..5ea846004 --- /dev/null +++ b/skills/orm-public/references/org-get-managers-record.md @@ -0,0 +1,34 @@ +# orgGetManagersRecord + + + +ORM operations for OrgGetManagersRecord records + +## Usage + +```typescript +db.orgGetManagersRecord.findMany({ select: { id: true } }).execute() +db.orgGetManagersRecord.findOne({ id: '', select: { id: true } }).execute() +db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() +db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() +db.orgGetManagersRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGetManagersRecord records + +```typescript +const items = await db.orgGetManagersRecord.findMany({ + select: { id: true, userId: true } +}).execute(); +``` + +### Create a orgGetManagersRecord + +```typescript +const item = await db.orgGetManagersRecord.create({ + data: { userId: 'value', depth: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-get-subordinates-record.md b/skills/orm-public/references/org-get-subordinates-record.md new file mode 100644 index 000000000..9ad550faa --- /dev/null +++ b/skills/orm-public/references/org-get-subordinates-record.md @@ -0,0 +1,34 @@ +# orgGetSubordinatesRecord + + + +ORM operations for OrgGetSubordinatesRecord records + +## Usage + +```typescript +db.orgGetSubordinatesRecord.findMany({ select: { id: true } }).execute() +db.orgGetSubordinatesRecord.findOne({ id: '', select: { id: true } }).execute() +db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() +db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() +db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGetSubordinatesRecord records + +```typescript +const items = await db.orgGetSubordinatesRecord.findMany({ + select: { id: true, userId: true } +}).execute(); +``` + +### Create a orgGetSubordinatesRecord + +```typescript +const item = await db.orgGetSubordinatesRecord.create({ + data: { userId: 'value', depth: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-grant.md b/skills/orm-public/references/org-grant.md new file mode 100644 index 000000000..cac51ea17 --- /dev/null +++ b/skills/orm-public/references/org-grant.md @@ -0,0 +1,34 @@ +# orgGrant + + + +Records of individual permission grants and revocations for members via bitmask + +## Usage + +```typescript +db.orgGrant.findMany({ select: { id: true } }).execute() +db.orgGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.orgGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGrant records + +```typescript +const items = await db.orgGrant.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a orgGrant + +```typescript +const item = await db.orgGrant.create({ + data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-invite.md b/skills/orm-public/references/org-invite.md new file mode 100644 index 000000000..27ea8b4ac --- /dev/null +++ b/skills/orm-public/references/org-invite.md @@ -0,0 +1,34 @@ +# orgInvite + + + +Invitation records sent to prospective members via email, with token-based redemption and expiration + +## Usage + +```typescript +db.orgInvite.findMany({ select: { id: true } }).execute() +db.orgInvite.findOne({ id: '', select: { id: true } }).execute() +db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() +db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.orgInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgInvite records + +```typescript +const items = await db.orgInvite.findMany({ + select: { id: true, email: true } +}).execute(); +``` + +### Create a orgInvite + +```typescript +const item = await db.orgInvite.create({ + data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-is-manager-of.md b/skills/orm-public/references/org-is-manager-of.md new file mode 100644 index 000000000..297cd9d25 --- /dev/null +++ b/skills/orm-public/references/org-is-manager-of.md @@ -0,0 +1,19 @@ +# orgIsManagerOf + + + +Execute the orgIsManagerOf query + +## Usage + +```typescript +db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute() +``` + +## Examples + +### Run orgIsManagerOf + +```typescript +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +``` diff --git a/skills/orm-public/references/org-limit-default.md b/skills/orm-public/references/org-limit-default.md new file mode 100644 index 000000000..50f1c01dc --- /dev/null +++ b/skills/orm-public/references/org-limit-default.md @@ -0,0 +1,34 @@ +# orgLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +db.orgLimitDefault.findMany({ select: { id: true } }).execute() +db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitDefault records + +```typescript +const items = await db.orgLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitDefault + +```typescript +const item = await db.orgLimitDefault.create({ + data: { name: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-limit.md b/skills/orm-public/references/org-limit.md new file mode 100644 index 000000000..0326e1e56 --- /dev/null +++ b/skills/orm-public/references/org-limit.md @@ -0,0 +1,34 @@ +# orgLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +db.orgLimit.findMany({ select: { id: true } }).execute() +db.orgLimit.findOne({ id: '', select: { id: true } }).execute() +db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() +db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimit records + +```typescript +const items = await db.orgLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimit + +```typescript +const item = await db.orgLimit.create({ + data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-member.md b/skills/orm-public/references/org-member.md new file mode 100644 index 000000000..8843ae79c --- /dev/null +++ b/skills/orm-public/references/org-member.md @@ -0,0 +1,34 @@ +# orgMember + + + +Simplified view of active members in an entity, used for listing who belongs to an org or group + +## Usage + +```typescript +db.orgMember.findMany({ select: { id: true } }).execute() +db.orgMember.findOne({ id: '', select: { id: true } }).execute() +db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() +db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() +db.orgMember.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMember records + +```typescript +const items = await db.orgMember.findMany({ + select: { id: true, isAdmin: true } +}).execute(); +``` + +### Create a orgMember + +```typescript +const item = await db.orgMember.create({ + data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-membership-default.md b/skills/orm-public/references/org-membership-default.md new file mode 100644 index 000000000..016a513cf --- /dev/null +++ b/skills/orm-public/references/org-membership-default.md @@ -0,0 +1,34 @@ +# orgMembershipDefault + + + +Default membership settings per entity, controlling initial approval and verification state for new members + +## Usage + +```typescript +db.orgMembershipDefault.findMany({ select: { id: true } }).execute() +db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() +db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMembershipDefault records + +```typescript +const items = await db.orgMembershipDefault.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a orgMembershipDefault + +```typescript +const item = await db.orgMembershipDefault.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-membership.md b/skills/orm-public/references/org-membership.md new file mode 100644 index 000000000..fd7feb28f --- /dev/null +++ b/skills/orm-public/references/org-membership.md @@ -0,0 +1,34 @@ +# orgMembership + + + +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + +## Usage + +```typescript +db.orgMembership.findMany({ select: { id: true } }).execute() +db.orgMembership.findOne({ id: '', select: { id: true } }).execute() +db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute() +db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.orgMembership.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMembership records + +```typescript +const items = await db.orgMembership.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a orgMembership + +```typescript +const item = await db.orgMembership.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value', profileId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-owner-grant.md b/skills/orm-public/references/org-owner-grant.md new file mode 100644 index 000000000..ddac1e36c --- /dev/null +++ b/skills/orm-public/references/org-owner-grant.md @@ -0,0 +1,34 @@ +# orgOwnerGrant + + + +Records of ownership transfers and grants between members + +## Usage + +```typescript +db.orgOwnerGrant.findMany({ select: { id: true } }).execute() +db.orgOwnerGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgOwnerGrant records + +```typescript +const items = await db.orgOwnerGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a orgOwnerGrant + +```typescript +const item = await db.orgOwnerGrant.create({ + data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-permission-default.md b/skills/orm-public/references/org-permission-default.md new file mode 100644 index 000000000..76fd65f89 --- /dev/null +++ b/skills/orm-public/references/org-permission-default.md @@ -0,0 +1,34 @@ +# orgPermissionDefault + + + +Stores the default permission bitmask assigned to new members upon joining + +## Usage + +```typescript +db.orgPermissionDefault.findMany({ select: { id: true } }).execute() +db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() +db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermissionDefault records + +```typescript +const items = await db.orgPermissionDefault.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a orgPermissionDefault + +```typescript +const item = await db.orgPermissionDefault.create({ + data: { permissions: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-permission.md b/skills/orm-public/references/org-permission.md new file mode 100644 index 000000000..5be6a77e0 --- /dev/null +++ b/skills/orm-public/references/org-permission.md @@ -0,0 +1,34 @@ +# orgPermission + + + +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + +## Usage + +```typescript +db.orgPermission.findMany({ select: { id: true } }).execute() +db.orgPermission.findOne({ id: '', select: { id: true } }).execute() +db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() +db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermission records + +```typescript +const items = await db.orgPermission.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgPermission + +```typescript +const item = await db.orgPermission.create({ + data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/org-permissions-get-by-mask.md b/skills/orm-public/references/org-permissions-get-by-mask.md new file mode 100644 index 000000000..f2d575f78 --- /dev/null +++ b/skills/orm-public/references/org-permissions-get-by-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetByMask + + + +Reads and enables pagination through a set of `OrgPermission`. + +## Usage + +```typescript +db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetByMask + +```typescript +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-public/references/org-permissions-get-mask-by-names.md b/skills/orm-public/references/org-permissions-get-mask-by-names.md new file mode 100644 index 000000000..b1733bc1e --- /dev/null +++ b/skills/orm-public/references/org-permissions-get-mask-by-names.md @@ -0,0 +1,19 @@ +# orgPermissionsGetMaskByNames + + + +Execute the orgPermissionsGetMaskByNames query + +## Usage + +```typescript +db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetMaskByNames + +```typescript +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +``` diff --git a/skills/orm-public/references/org-permissions-get-mask.md b/skills/orm-public/references/org-permissions-get-mask.md new file mode 100644 index 000000000..1469dcd3d --- /dev/null +++ b/skills/orm-public/references/org-permissions-get-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetMask + + + +Execute the orgPermissionsGetMask query + +## Usage + +```typescript +db.query.orgPermissionsGetMask({ ids: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetMask + +```typescript +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +``` diff --git a/skills/orm-public/references/org-permissions-get-padded-mask.md b/skills/orm-public/references/org-permissions-get-padded-mask.md new file mode 100644 index 000000000..9469bf338 --- /dev/null +++ b/skills/orm-public/references/org-permissions-get-padded-mask.md @@ -0,0 +1,19 @@ +# orgPermissionsGetPaddedMask + + + +Execute the orgPermissionsGetPaddedMask query + +## Usage + +```typescript +db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetPaddedMask + +```typescript +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +``` diff --git a/skills/orm-public/references/permissions-module.md b/skills/orm-public/references/permissions-module.md new file mode 100644 index 000000000..ea62c00fe --- /dev/null +++ b/skills/orm-public/references/permissions-module.md @@ -0,0 +1,34 @@ +# permissionsModule + + + +ORM operations for PermissionsModule records + +## Usage + +```typescript +db.permissionsModule.findMany({ select: { id: true } }).execute() +db.permissionsModule.findOne({ id: '', select: { id: true } }).execute() +db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute() +db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.permissionsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all permissionsModule records + +```typescript +const items = await db.permissionsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a permissionsModule + +```typescript +const item = await db.permissionsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', prefix: 'value', getPaddedMask: 'value', getMask: 'value', getByMask: 'value', getMaskByName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/phone-number.md b/skills/orm-public/references/phone-number.md new file mode 100644 index 000000000..1ecf93b35 --- /dev/null +++ b/skills/orm-public/references/phone-number.md @@ -0,0 +1,34 @@ +# phoneNumber + + + +User phone numbers with country code, verification, and primary-number management + +## Usage + +```typescript +db.phoneNumber.findMany({ select: { id: true } }).execute() +db.phoneNumber.findOne({ id: '', select: { id: true } }).execute() +db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.phoneNumber.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all phoneNumber records + +```typescript +const items = await db.phoneNumber.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a phoneNumber + +```typescript +const item = await db.phoneNumber.create({ + data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/phone-numbers-module.md b/skills/orm-public/references/phone-numbers-module.md new file mode 100644 index 000000000..ce5468e2f --- /dev/null +++ b/skills/orm-public/references/phone-numbers-module.md @@ -0,0 +1,34 @@ +# phoneNumbersModule + + + +ORM operations for PhoneNumbersModule records + +## Usage + +```typescript +db.phoneNumbersModule.findMany({ select: { id: true } }).execute() +db.phoneNumbersModule.findOne({ id: '', select: { id: true } }).execute() +db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() +db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.phoneNumbersModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all phoneNumbersModule records + +```typescript +const items = await db.phoneNumbersModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a phoneNumbersModule + +```typescript +const item = await db.phoneNumbersModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/policy.md b/skills/orm-public/references/policy.md new file mode 100644 index 000000000..d73ed7e05 --- /dev/null +++ b/skills/orm-public/references/policy.md @@ -0,0 +1,34 @@ +# policy + + + +ORM operations for Policy records + +## Usage + +```typescript +db.policy.findMany({ select: { id: true } }).execute() +db.policy.findOne({ id: '', select: { id: true } }).execute() +db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.policy.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all policy records + +```typescript +const items = await db.policy.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a policy + +```typescript +const item = await db.policy.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', granteeName: 'value', privilege: 'value', permissive: 'value', disabled: 'value', policyType: 'value', data: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/primary-key-constraint.md b/skills/orm-public/references/primary-key-constraint.md new file mode 100644 index 000000000..c3e4fb20a --- /dev/null +++ b/skills/orm-public/references/primary-key-constraint.md @@ -0,0 +1,34 @@ +# primaryKeyConstraint + + + +ORM operations for PrimaryKeyConstraint records + +## Usage + +```typescript +db.primaryKeyConstraint.findMany({ select: { id: true } }).execute() +db.primaryKeyConstraint.findOne({ id: '', select: { id: true } }).execute() +db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.primaryKeyConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all primaryKeyConstraint records + +```typescript +const items = await db.primaryKeyConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a primaryKeyConstraint + +```typescript +const item = await db.primaryKeyConstraint.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/profiles-module.md b/skills/orm-public/references/profiles-module.md new file mode 100644 index 000000000..db21d821e --- /dev/null +++ b/skills/orm-public/references/profiles-module.md @@ -0,0 +1,34 @@ +# profilesModule + + + +ORM operations for ProfilesModule records + +## Usage + +```typescript +db.profilesModule.findMany({ select: { id: true } }).execute() +db.profilesModule.findOne({ id: '', select: { id: true } }).execute() +db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() +db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.profilesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all profilesModule records + +```typescript +const items = await db.profilesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a profilesModule + +```typescript +const item = await db.profilesModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', profilePermissionsTableId: 'value', profilePermissionsTableName: 'value', profileGrantsTableId: 'value', profileGrantsTableName: 'value', profileDefinitionGrantsTableId: 'value', profileDefinitionGrantsTableName: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', permissionsTableId: 'value', membershipsTableId: 'value', prefix: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/provision-database-with-user.md b/skills/orm-public/references/provision-database-with-user.md new file mode 100644 index 000000000..9935ab57c --- /dev/null +++ b/skills/orm-public/references/provision-database-with-user.md @@ -0,0 +1,19 @@ +# provisionDatabaseWithUser + + + +Execute the provisionDatabaseWithUser mutation + +## Usage + +```typescript +db.mutation.provisionDatabaseWithUser({ input: '' }).execute() +``` + +## Examples + +### Run provisionDatabaseWithUser + +```typescript +const result = await db.mutation.provisionDatabaseWithUser({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/ref.md b/skills/orm-public/references/ref.md new file mode 100644 index 000000000..f677081b4 --- /dev/null +++ b/skills/orm-public/references/ref.md @@ -0,0 +1,34 @@ +# ref + + + +A ref is a data structure for pointing to a commit. + +## Usage + +```typescript +db.ref.findMany({ select: { id: true } }).execute() +db.ref.findOne({ id: '', select: { id: true } }).execute() +db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.ref.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all ref records + +```typescript +const items = await db.ref.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a ref + +```typescript +const item = await db.ref.create({ + data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/relation-provision.md b/skills/orm-public/references/relation-provision.md new file mode 100644 index 000000000..2ee6d8817 --- /dev/null +++ b/skills/orm-public/references/relation-provision.md @@ -0,0 +1,41 @@ +# relationProvision + + + +Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. + +## Usage + +```typescript +db.relationProvision.findMany({ select: { id: true } }).execute() +db.relationProvision.findOne({ id: '', select: { id: true } }).execute() +db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute() +db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.relationProvision.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all relationProvision records + +```typescript +const items = await db.relationProvision.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a relationProvision + +```typescript +const item = await db.relationProvision.create({ + data: { databaseId: 'value', relationType: 'value', sourceTableId: 'value', targetTableId: 'value', fieldName: 'value', deleteAction: 'value', isRequired: 'value', junctionTableId: 'value', junctionTableName: 'value', junctionSchemaId: 'value', sourceFieldName: 'value', targetFieldName: 'value', useCompositeKey: 'value', nodeType: 'value', nodeData: 'value', grantRoles: 'value', grantPrivileges: 'value', policyType: 'value', policyPrivileges: 'value', policyRole: 'value', policyPermissive: 'value', policyName: 'value', policyData: 'value', outFieldId: 'value', outJunctionTableId: 'value', outSourceFieldId: 'value', outTargetFieldId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/remove-node-at-path.md b/skills/orm-public/references/remove-node-at-path.md new file mode 100644 index 000000000..2f40be220 --- /dev/null +++ b/skills/orm-public/references/remove-node-at-path.md @@ -0,0 +1,19 @@ +# removeNodeAtPath + + + +Execute the removeNodeAtPath mutation + +## Usage + +```typescript +db.mutation.removeNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run removeNodeAtPath + +```typescript +const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/reset-password.md b/skills/orm-public/references/reset-password.md new file mode 100644 index 000000000..1a456d7db --- /dev/null +++ b/skills/orm-public/references/reset-password.md @@ -0,0 +1,19 @@ +# resetPassword + + + +Execute the resetPassword mutation + +## Usage + +```typescript +db.mutation.resetPassword({ input: '' }).execute() +``` + +## Examples + +### Run resetPassword + +```typescript +const result = await db.mutation.resetPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/rev-parse.md b/skills/orm-public/references/rev-parse.md new file mode 100644 index 000000000..a453a521e --- /dev/null +++ b/skills/orm-public/references/rev-parse.md @@ -0,0 +1,19 @@ +# revParse + + + +Execute the revParse query + +## Usage + +```typescript +db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() +``` + +## Examples + +### Run revParse + +```typescript +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +``` diff --git a/skills/orm-public/references/rls-module.md b/skills/orm-public/references/rls-module.md new file mode 100644 index 000000000..3878d9298 --- /dev/null +++ b/skills/orm-public/references/rls-module.md @@ -0,0 +1,34 @@ +# rlsModule + + + +ORM operations for RlsModule records + +## Usage + +```typescript +db.rlsModule.findMany({ select: { id: true } }).execute() +db.rlsModule.findOne({ id: '', select: { id: true } }).execute() +db.rlsModule.create({ data: { databaseId: '', apiId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute() +db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.rlsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all rlsModule records + +```typescript +const items = await db.rlsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a rlsModule + +```typescript +const item = await db.rlsModule.create({ + data: { databaseId: 'value', apiId: 'value', schemaId: 'value', privateSchemaId: 'value', sessionCredentialsTableId: 'value', sessionsTableId: 'value', usersTableId: 'value', authenticate: 'value', authenticateStrict: 'value', currentRole: 'value', currentRoleId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/role-type.md b/skills/orm-public/references/role-type.md new file mode 100644 index 000000000..b792f600c --- /dev/null +++ b/skills/orm-public/references/role-type.md @@ -0,0 +1,34 @@ +# roleType + + + +ORM operations for RoleType records + +## Usage + +```typescript +db.roleType.findMany({ select: { id: true } }).execute() +db.roleType.findOne({ id: '', select: { id: true } }).execute() +db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() +db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.roleType.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all roleType records + +```typescript +const items = await db.roleType.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a roleType + +```typescript +const item = await db.roleType.create({ + data: { name: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/schema-grant.md b/skills/orm-public/references/schema-grant.md new file mode 100644 index 000000000..01ac45e74 --- /dev/null +++ b/skills/orm-public/references/schema-grant.md @@ -0,0 +1,34 @@ +# schemaGrant + + + +ORM operations for SchemaGrant records + +## Usage + +```typescript +db.schemaGrant.findMany({ select: { id: true } }).execute() +db.schemaGrant.findOne({ id: '', select: { id: true } }).execute() +db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute() +db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.schemaGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all schemaGrant records + +```typescript +const items = await db.schemaGrant.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a schemaGrant + +```typescript +const item = await db.schemaGrant.create({ + data: { databaseId: 'value', schemaId: 'value', granteeName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/schema.md b/skills/orm-public/references/schema.md new file mode 100644 index 000000000..b79a48fdc --- /dev/null +++ b/skills/orm-public/references/schema.md @@ -0,0 +1,34 @@ +# schema + + + +ORM operations for Schema records + +## Usage + +```typescript +db.schema.findMany({ select: { id: true } }).execute() +db.schema.findOne({ id: '', select: { id: true } }).execute() +db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute() +db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.schema.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all schema records + +```typescript +const items = await db.schema.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a schema + +```typescript +const item = await db.schema.create({ + data: { databaseId: 'value', name: 'value', schemaName: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value', isPublic: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/secrets-module.md b/skills/orm-public/references/secrets-module.md new file mode 100644 index 000000000..2916cd2e5 --- /dev/null +++ b/skills/orm-public/references/secrets-module.md @@ -0,0 +1,34 @@ +# secretsModule + + + +ORM operations for SecretsModule records + +## Usage + +```typescript +db.secretsModule.findMany({ select: { id: true } }).execute() +db.secretsModule.findOne({ id: '', select: { id: true } }).execute() +db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.secretsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all secretsModule records + +```typescript +const items = await db.secretsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a secretsModule + +```typescript +const item = await db.secretsModule.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/secure-table-provision.md b/skills/orm-public/references/secure-table-provision.md new file mode 100644 index 000000000..a541e3a0b --- /dev/null +++ b/skills/orm-public/references/secure-table-provision.md @@ -0,0 +1,34 @@ +# secureTableProvision + + + +Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. + +## Usage + +```typescript +db.secureTableProvision.findMany({ select: { id: true } }).execute() +db.secureTableProvision.findOne({ id: '', select: { id: true } }).execute() +db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }, select: { id: true } }).execute() +db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.secureTableProvision.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all secureTableProvision records + +```typescript +const items = await db.secureTableProvision.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a secureTableProvision + +```typescript +const item = await db.secureTableProvision.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value', nodeType: 'value', useRls: 'value', nodeData: 'value', grantRoles: 'value', grantPrivileges: 'value', policyType: 'value', policyPrivileges: 'value', policyRole: 'value', policyPermissive: 'value', policyName: 'value', policyData: 'value', outFields: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/send-account-deletion-email.md b/skills/orm-public/references/send-account-deletion-email.md new file mode 100644 index 000000000..300831013 --- /dev/null +++ b/skills/orm-public/references/send-account-deletion-email.md @@ -0,0 +1,19 @@ +# sendAccountDeletionEmail + + + +Execute the sendAccountDeletionEmail mutation + +## Usage + +```typescript +db.mutation.sendAccountDeletionEmail({ input: '' }).execute() +``` + +## Examples + +### Run sendAccountDeletionEmail + +```typescript +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/send-verification-email.md b/skills/orm-public/references/send-verification-email.md new file mode 100644 index 000000000..1e8703b3b --- /dev/null +++ b/skills/orm-public/references/send-verification-email.md @@ -0,0 +1,19 @@ +# sendVerificationEmail + + + +Execute the sendVerificationEmail mutation + +## Usage + +```typescript +db.mutation.sendVerificationEmail({ input: '' }).execute() +``` + +## Examples + +### Run sendVerificationEmail + +```typescript +const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/sessions-module.md b/skills/orm-public/references/sessions-module.md new file mode 100644 index 000000000..73a0d21c1 --- /dev/null +++ b/skills/orm-public/references/sessions-module.md @@ -0,0 +1,34 @@ +# sessionsModule + + + +ORM operations for SessionsModule records + +## Usage + +```typescript +db.sessionsModule.findMany({ select: { id: true } }).execute() +db.sessionsModule.findOne({ id: '', select: { id: true } }).execute() +db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute() +db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.sessionsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all sessionsModule records + +```typescript +const items = await db.sessionsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a sessionsModule + +```typescript +const item = await db.sessionsModule.create({ + data: { databaseId: 'value', schemaId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', authSettingsTableId: 'value', usersTableId: 'value', sessionsDefaultExpiration: 'value', sessionsTable: 'value', sessionCredentialsTable: 'value', authSettingsTable: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/set-and-commit.md b/skills/orm-public/references/set-and-commit.md new file mode 100644 index 000000000..0338f98b8 --- /dev/null +++ b/skills/orm-public/references/set-and-commit.md @@ -0,0 +1,19 @@ +# setAndCommit + + + +Execute the setAndCommit mutation + +## Usage + +```typescript +db.mutation.setAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run setAndCommit + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/set-data-at-path.md b/skills/orm-public/references/set-data-at-path.md new file mode 100644 index 000000000..8aa78306f --- /dev/null +++ b/skills/orm-public/references/set-data-at-path.md @@ -0,0 +1,19 @@ +# setDataAtPath + + + +Execute the setDataAtPath mutation + +## Usage + +```typescript +db.mutation.setDataAtPath({ input: '' }).execute() +``` + +## Examples + +### Run setDataAtPath + +```typescript +const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/set-field-order.md b/skills/orm-public/references/set-field-order.md new file mode 100644 index 000000000..7680978bc --- /dev/null +++ b/skills/orm-public/references/set-field-order.md @@ -0,0 +1,19 @@ +# setFieldOrder + + + +Execute the setFieldOrder mutation + +## Usage + +```typescript +db.mutation.setFieldOrder({ input: '' }).execute() +``` + +## Examples + +### Run setFieldOrder + +```typescript +const result = await db.mutation.setFieldOrder({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/set-password.md b/skills/orm-public/references/set-password.md new file mode 100644 index 000000000..b73aa55f2 --- /dev/null +++ b/skills/orm-public/references/set-password.md @@ -0,0 +1,19 @@ +# setPassword + + + +Execute the setPassword mutation + +## Usage + +```typescript +db.mutation.setPassword({ input: '' }).execute() +``` + +## Examples + +### Run setPassword + +```typescript +const result = await db.mutation.setPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/set-props-and-commit.md b/skills/orm-public/references/set-props-and-commit.md new file mode 100644 index 000000000..55680feb5 --- /dev/null +++ b/skills/orm-public/references/set-props-and-commit.md @@ -0,0 +1,19 @@ +# setPropsAndCommit + + + +Execute the setPropsAndCommit mutation + +## Usage + +```typescript +db.mutation.setPropsAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run setPropsAndCommit + +```typescript +const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/sign-in-one-time-token.md b/skills/orm-public/references/sign-in-one-time-token.md new file mode 100644 index 000000000..c65989daa --- /dev/null +++ b/skills/orm-public/references/sign-in-one-time-token.md @@ -0,0 +1,19 @@ +# signInOneTimeToken + + + +Execute the signInOneTimeToken mutation + +## Usage + +```typescript +db.mutation.signInOneTimeToken({ input: '' }).execute() +``` + +## Examples + +### Run signInOneTimeToken + +```typescript +const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/sign-in.md b/skills/orm-public/references/sign-in.md new file mode 100644 index 000000000..45b03c63a --- /dev/null +++ b/skills/orm-public/references/sign-in.md @@ -0,0 +1,19 @@ +# signIn + + + +Execute the signIn mutation + +## Usage + +```typescript +db.mutation.signIn({ input: '' }).execute() +``` + +## Examples + +### Run signIn + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/sign-out.md b/skills/orm-public/references/sign-out.md new file mode 100644 index 000000000..bdbd4228f --- /dev/null +++ b/skills/orm-public/references/sign-out.md @@ -0,0 +1,19 @@ +# signOut + + + +Execute the signOut mutation + +## Usage + +```typescript +db.mutation.signOut({ input: '' }).execute() +``` + +## Examples + +### Run signOut + +```typescript +const result = await db.mutation.signOut({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/sign-up.md b/skills/orm-public/references/sign-up.md new file mode 100644 index 000000000..8f63164d3 --- /dev/null +++ b/skills/orm-public/references/sign-up.md @@ -0,0 +1,19 @@ +# signUp + + + +Execute the signUp mutation + +## Usage + +```typescript +db.mutation.signUp({ input: '' }).execute() +``` + +## Examples + +### Run signUp + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/site-metadatum.md b/skills/orm-public/references/site-metadatum.md new file mode 100644 index 000000000..79bbbac5e --- /dev/null +++ b/skills/orm-public/references/site-metadatum.md @@ -0,0 +1,34 @@ +# siteMetadatum + + + +SEO and social sharing metadata for a site: page title, description, and Open Graph image + +## Usage + +```typescript +db.siteMetadatum.findMany({ select: { id: true } }).execute() +db.siteMetadatum.findOne({ id: '', select: { id: true } }).execute() +db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute() +db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.siteMetadatum.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteMetadatum records + +```typescript +const items = await db.siteMetadatum.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a siteMetadatum + +```typescript +const item = await db.siteMetadatum.create({ + data: { databaseId: 'value', siteId: 'value', title: 'value', description: 'value', ogImage: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/site-module.md b/skills/orm-public/references/site-module.md new file mode 100644 index 000000000..e2d643421 --- /dev/null +++ b/skills/orm-public/references/site-module.md @@ -0,0 +1,34 @@ +# siteModule + + + +Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site + +## Usage + +```typescript +db.siteModule.findMany({ select: { id: true } }).execute() +db.siteModule.findOne({ id: '', select: { id: true } }).execute() +db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute() +db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.siteModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteModule records + +```typescript +const items = await db.siteModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a siteModule + +```typescript +const item = await db.siteModule.create({ + data: { databaseId: 'value', siteId: 'value', name: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/site-theme.md b/skills/orm-public/references/site-theme.md new file mode 100644 index 000000000..c01eb04b7 --- /dev/null +++ b/skills/orm-public/references/site-theme.md @@ -0,0 +1,34 @@ +# siteTheme + + + +Theme configuration for a site; stores design tokens, colors, and typography as JSONB + +## Usage + +```typescript +db.siteTheme.findMany({ select: { id: true } }).execute() +db.siteTheme.findOne({ id: '', select: { id: true } }).execute() +db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute() +db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.siteTheme.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteTheme records + +```typescript +const items = await db.siteTheme.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a siteTheme + +```typescript +const item = await db.siteTheme.create({ + data: { databaseId: 'value', siteId: 'value', theme: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/site.md b/skills/orm-public/references/site.md new file mode 100644 index 000000000..b9732862b --- /dev/null +++ b/skills/orm-public/references/site.md @@ -0,0 +1,34 @@ +# site + + + +Top-level site configuration: branding assets, title, and description for a deployed application + +## Usage + +```typescript +db.site.findMany({ select: { id: true } }).execute() +db.site.findOne({ id: '', select: { id: true } }).execute() +db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute() +db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.site.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all site records + +```typescript +const items = await db.site.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a site + +```typescript +const item = await db.site.create({ + data: { databaseId: 'value', title: 'value', description: 'value', ogImage: 'value', favicon: 'value', appleTouchIcon: 'value', logo: 'value', dbname: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/sql-migration.md b/skills/orm-public/references/sql-migration.md new file mode 100644 index 000000000..10bde67a6 --- /dev/null +++ b/skills/orm-public/references/sql-migration.md @@ -0,0 +1,34 @@ +# sqlMigration + + + +ORM operations for SqlMigration records + +## Usage + +```typescript +db.sqlMigration.findMany({ select: { id: true } }).execute() +db.sqlMigration.findOne({ id: '', select: { id: true } }).execute() +db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() +db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.sqlMigration.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all sqlMigration records + +```typescript +const items = await db.sqlMigration.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a sqlMigration + +```typescript +const item = await db.sqlMigration.create({ + data: { name: 'value', databaseId: 'value', deploy: 'value', deps: 'value', payload: 'value', content: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/steps-achieved.md b/skills/orm-public/references/steps-achieved.md new file mode 100644 index 000000000..4f03f7cd7 --- /dev/null +++ b/skills/orm-public/references/steps-achieved.md @@ -0,0 +1,19 @@ +# stepsAchieved + + + +Execute the stepsAchieved query + +## Usage + +```typescript +db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() +``` + +## Examples + +### Run stepsAchieved + +```typescript +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +``` diff --git a/skills/orm-public/references/steps-required.md b/skills/orm-public/references/steps-required.md new file mode 100644 index 000000000..d571950a6 --- /dev/null +++ b/skills/orm-public/references/steps-required.md @@ -0,0 +1,19 @@ +# stepsRequired + + + +Reads and enables pagination through a set of `AppLevelRequirement`. + +## Usage + +```typescript +db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run stepsRequired + +```typescript +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/skills/orm-public/references/store.md b/skills/orm-public/references/store.md new file mode 100644 index 000000000..0716daaff --- /dev/null +++ b/skills/orm-public/references/store.md @@ -0,0 +1,34 @@ +# store + + + +A store represents an isolated object repository within a database. + +## Usage + +```typescript +db.store.findMany({ select: { id: true } }).execute() +db.store.findOne({ id: '', select: { id: true } }).execute() +db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.store.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all store records + +```typescript +const items = await db.store.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a store + +```typescript +const item = await db.store.create({ + data: { name: 'value', databaseId: 'value', hash: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/submit-invite-code.md b/skills/orm-public/references/submit-invite-code.md new file mode 100644 index 000000000..5fa303aa4 --- /dev/null +++ b/skills/orm-public/references/submit-invite-code.md @@ -0,0 +1,19 @@ +# submitInviteCode + + + +Execute the submitInviteCode mutation + +## Usage + +```typescript +db.mutation.submitInviteCode({ input: '' }).execute() +``` + +## Examples + +### Run submitInviteCode + +```typescript +const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/submit-org-invite-code.md b/skills/orm-public/references/submit-org-invite-code.md new file mode 100644 index 000000000..21098824d --- /dev/null +++ b/skills/orm-public/references/submit-org-invite-code.md @@ -0,0 +1,19 @@ +# submitOrgInviteCode + + + +Execute the submitOrgInviteCode mutation + +## Usage + +```typescript +db.mutation.submitOrgInviteCode({ input: '' }).execute() +``` + +## Examples + +### Run submitOrgInviteCode + +```typescript +const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/table-grant.md b/skills/orm-public/references/table-grant.md new file mode 100644 index 000000000..346dc0b78 --- /dev/null +++ b/skills/orm-public/references/table-grant.md @@ -0,0 +1,34 @@ +# tableGrant + + + +ORM operations for TableGrant records + +## Usage + +```typescript +db.tableGrant.findMany({ select: { id: true } }).execute() +db.tableGrant.findOne({ id: '', select: { id: true } }).execute() +db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute() +db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.tableGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all tableGrant records + +```typescript +const items = await db.tableGrant.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a tableGrant + +```typescript +const item = await db.tableGrant.create({ + data: { databaseId: 'value', tableId: 'value', privilege: 'value', granteeName: 'value', fieldIds: 'value', isGrant: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/table-module.md b/skills/orm-public/references/table-module.md new file mode 100644 index 000000000..d4566d6e2 --- /dev/null +++ b/skills/orm-public/references/table-module.md @@ -0,0 +1,34 @@ +# tableModule + + + +ORM operations for TableModule records + +## Usage + +```typescript +db.tableModule.findMany({ select: { id: true } }).execute() +db.tableModule.findOne({ id: '', select: { id: true } }).execute() +db.tableModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', data: '', fields: '' }, select: { id: true } }).execute() +db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.tableModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all tableModule records + +```typescript +const items = await db.tableModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a tableModule + +```typescript +const item = await db.tableModule.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value', nodeType: 'value', useRls: 'value', data: 'value', fields: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/table-template-module.md b/skills/orm-public/references/table-template-module.md new file mode 100644 index 000000000..ff200d737 --- /dev/null +++ b/skills/orm-public/references/table-template-module.md @@ -0,0 +1,34 @@ +# tableTemplateModule + + + +ORM operations for TableTemplateModule records + +## Usage + +```typescript +db.tableTemplateModule.findMany({ select: { id: true } }).execute() +db.tableTemplateModule.findOne({ id: '', select: { id: true } }).execute() +db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute() +db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.tableTemplateModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all tableTemplateModule records + +```typescript +const items = await db.tableTemplateModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a tableTemplateModule + +```typescript +const item = await db.tableTemplateModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', nodeType: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/table.md b/skills/orm-public/references/table.md new file mode 100644 index 000000000..2264dae94 --- /dev/null +++ b/skills/orm-public/references/table.md @@ -0,0 +1,34 @@ +# table + + + +ORM operations for Table records + +## Usage + +```typescript +db.table.findMany({ select: { id: true } }).execute() +db.table.findOne({ id: '', select: { id: true } }).execute() +db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }, select: { id: true } }).execute() +db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.table.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all table records + +```typescript +const items = await db.table.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a table + +```typescript +const item = await db.table.create({ + data: { databaseId: 'value', schemaId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', useRls: 'value', timestamps: 'value', peoplestamps: 'value', pluralName: 'value', singularName: 'value', tags: 'value', inheritsId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/trigger-function.md b/skills/orm-public/references/trigger-function.md new file mode 100644 index 000000000..5554478df --- /dev/null +++ b/skills/orm-public/references/trigger-function.md @@ -0,0 +1,34 @@ +# triggerFunction + + + +ORM operations for TriggerFunction records + +## Usage + +```typescript +db.triggerFunction.findMany({ select: { id: true } }).execute() +db.triggerFunction.findOne({ id: '', select: { id: true } }).execute() +db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute() +db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.triggerFunction.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all triggerFunction records + +```typescript +const items = await db.triggerFunction.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a triggerFunction + +```typescript +const item = await db.triggerFunction.create({ + data: { databaseId: 'value', name: 'value', code: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/trigger.md b/skills/orm-public/references/trigger.md new file mode 100644 index 000000000..449040014 --- /dev/null +++ b/skills/orm-public/references/trigger.md @@ -0,0 +1,34 @@ +# trigger + + + +ORM operations for Trigger records + +## Usage + +```typescript +db.trigger.findMany({ select: { id: true } }).execute() +db.trigger.findOne({ id: '', select: { id: true } }).execute() +db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.trigger.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all trigger records + +```typescript +const items = await db.trigger.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a trigger + +```typescript +const item = await db.trigger.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', event: 'value', functionName: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/unique-constraint.md b/skills/orm-public/references/unique-constraint.md new file mode 100644 index 000000000..e03cb446a --- /dev/null +++ b/skills/orm-public/references/unique-constraint.md @@ -0,0 +1,34 @@ +# uniqueConstraint + + + +ORM operations for UniqueConstraint records + +## Usage + +```typescript +db.uniqueConstraint.findMany({ select: { id: true } }).execute() +db.uniqueConstraint.findOne({ id: '', select: { id: true } }).execute() +db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.uniqueConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all uniqueConstraint records + +```typescript +const items = await db.uniqueConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a uniqueConstraint + +```typescript +const item = await db.uniqueConstraint.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/update-node-at-path.md b/skills/orm-public/references/update-node-at-path.md new file mode 100644 index 000000000..950af4042 --- /dev/null +++ b/skills/orm-public/references/update-node-at-path.md @@ -0,0 +1,19 @@ +# updateNodeAtPath + + + +Execute the updateNodeAtPath mutation + +## Usage + +```typescript +db.mutation.updateNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run updateNodeAtPath + +```typescript +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/user-auth-module.md b/skills/orm-public/references/user-auth-module.md new file mode 100644 index 000000000..7c6565c87 --- /dev/null +++ b/skills/orm-public/references/user-auth-module.md @@ -0,0 +1,34 @@ +# userAuthModule + + + +ORM operations for UserAuthModule records + +## Usage + +```typescript +db.userAuthModule.findMany({ select: { id: true } }).execute() +db.userAuthModule.findOne({ id: '', select: { id: true } }).execute() +db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }, select: { id: true } }).execute() +db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.userAuthModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all userAuthModule records + +```typescript +const items = await db.userAuthModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a userAuthModule + +```typescript +const item = await db.userAuthModule.create({ + data: { databaseId: 'value', schemaId: 'value', emailsTableId: 'value', usersTableId: 'value', secretsTableId: 'value', encryptedTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', auditsTableId: 'value', auditsTableName: 'value', signInFunction: 'value', signUpFunction: 'value', signOutFunction: 'value', setPasswordFunction: 'value', resetPasswordFunction: 'value', forgotPasswordFunction: 'value', sendVerificationEmailFunction: 'value', verifyEmailFunction: 'value', verifyPasswordFunction: 'value', checkPasswordFunction: 'value', sendAccountDeletionEmailFunction: 'value', deleteAccountFunction: 'value', signInOneTimeTokenFunction: 'value', oneTimeTokenFunction: 'value', extendTokenExpires: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/user.md b/skills/orm-public/references/user.md new file mode 100644 index 000000000..6daa65e5d --- /dev/null +++ b/skills/orm-public/references/user.md @@ -0,0 +1,34 @@ +# user + + + +ORM operations for User records + +## Usage + +```typescript +db.user.findMany({ select: { id: true } }).execute() +db.user.findOne({ id: '', select: { id: true } }).execute() +db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() +db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() +db.user.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all user records + +```typescript +const items = await db.user.findMany({ + select: { id: true, username: true } +}).execute(); +``` + +### Create a user + +```typescript +const item = await db.user.create({ + data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/users-module.md b/skills/orm-public/references/users-module.md new file mode 100644 index 000000000..5d2066b93 --- /dev/null +++ b/skills/orm-public/references/users-module.md @@ -0,0 +1,34 @@ +# usersModule + + + +ORM operations for UsersModule records + +## Usage + +```typescript +db.usersModule.findMany({ select: { id: true } }).execute() +db.usersModule.findOne({ id: '', select: { id: true } }).execute() +db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute() +db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.usersModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all usersModule records + +```typescript +const items = await db.usersModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a usersModule + +```typescript +const item = await db.usersModule.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value', typeTableId: 'value', typeTableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/uuid-module.md b/skills/orm-public/references/uuid-module.md new file mode 100644 index 000000000..7e0cccf05 --- /dev/null +++ b/skills/orm-public/references/uuid-module.md @@ -0,0 +1,34 @@ +# uuidModule + + + +ORM operations for UuidModule records + +## Usage + +```typescript +db.uuidModule.findMany({ select: { id: true } }).execute() +db.uuidModule.findOne({ id: '', select: { id: true } }).execute() +db.uuidModule.create({ data: { databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '' }, select: { id: true } }).execute() +db.uuidModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.uuidModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all uuidModule records + +```typescript +const items = await db.uuidModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a uuidModule + +```typescript +const item = await db.uuidModule.create({ + data: { databaseId: 'value', schemaId: 'value', uuidFunction: 'value', uuidSeed: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/verify-email.md b/skills/orm-public/references/verify-email.md new file mode 100644 index 000000000..ffe9adc92 --- /dev/null +++ b/skills/orm-public/references/verify-email.md @@ -0,0 +1,19 @@ +# verifyEmail + + + +Execute the verifyEmail mutation + +## Usage + +```typescript +db.mutation.verifyEmail({ input: '' }).execute() +``` + +## Examples + +### Run verifyEmail + +```typescript +const result = await db.mutation.verifyEmail({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/verify-password.md b/skills/orm-public/references/verify-password.md new file mode 100644 index 000000000..f89d17a23 --- /dev/null +++ b/skills/orm-public/references/verify-password.md @@ -0,0 +1,19 @@ +# verifyPassword + + + +Execute the verifyPassword mutation + +## Usage + +```typescript +db.mutation.verifyPassword({ input: '' }).execute() +``` + +## Examples + +### Run verifyPassword + +```typescript +const result = await db.mutation.verifyPassword({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/verify-totp.md b/skills/orm-public/references/verify-totp.md new file mode 100644 index 000000000..02b135ced --- /dev/null +++ b/skills/orm-public/references/verify-totp.md @@ -0,0 +1,19 @@ +# verifyTotp + + + +Execute the verifyTotp mutation + +## Usage + +```typescript +db.mutation.verifyTotp({ input: '' }).execute() +``` + +## Examples + +### Run verifyTotp + +```typescript +const result = await db.mutation.verifyTotp({ input: '' }).execute(); +``` diff --git a/skills/orm-public/references/view-grant.md b/skills/orm-public/references/view-grant.md new file mode 100644 index 000000000..1cbec7d93 --- /dev/null +++ b/skills/orm-public/references/view-grant.md @@ -0,0 +1,34 @@ +# viewGrant + + + +ORM operations for ViewGrant records + +## Usage + +```typescript +db.viewGrant.findMany({ select: { id: true } }).execute() +db.viewGrant.findOne({ id: '', select: { id: true } }).execute() +db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute() +db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.viewGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all viewGrant records + +```typescript +const items = await db.viewGrant.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a viewGrant + +```typescript +const item = await db.viewGrant.create({ + data: { databaseId: 'value', viewId: 'value', granteeName: 'value', privilege: 'value', withGrantOption: 'value', isGrant: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/view-rule.md b/skills/orm-public/references/view-rule.md new file mode 100644 index 000000000..5a72572f2 --- /dev/null +++ b/skills/orm-public/references/view-rule.md @@ -0,0 +1,34 @@ +# viewRule + + + +DO INSTEAD rules for views (e.g., read-only enforcement) + +## Usage + +```typescript +db.viewRule.findMany({ select: { id: true } }).execute() +db.viewRule.findOne({ id: '', select: { id: true } }).execute() +db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute() +db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.viewRule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all viewRule records + +```typescript +const items = await db.viewRule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a viewRule + +```typescript +const item = await db.viewRule.create({ + data: { databaseId: 'value', viewId: 'value', name: 'value', event: 'value', action: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/view-table.md b/skills/orm-public/references/view-table.md new file mode 100644 index 000000000..7b1b88639 --- /dev/null +++ b/skills/orm-public/references/view-table.md @@ -0,0 +1,34 @@ +# viewTable + + + +Junction table linking views to their joined tables for referential integrity + +## Usage + +```typescript +db.viewTable.findMany({ select: { id: true } }).execute() +db.viewTable.findOne({ id: '', select: { id: true } }).execute() +db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute() +db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute() +db.viewTable.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all viewTable records + +```typescript +const items = await db.viewTable.findMany({ + select: { id: true, viewId: true } +}).execute(); +``` + +### Create a viewTable + +```typescript +const item = await db.viewTable.create({ + data: { viewId: 'value', tableId: 'value', joinOrder: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/skills/orm-public/references/view.md b/skills/orm-public/references/view.md new file mode 100644 index 000000000..1df426311 --- /dev/null +++ b/skills/orm-public/references/view.md @@ -0,0 +1,34 @@ +# view + + + +ORM operations for View records + +## Usage + +```typescript +db.view.findMany({ select: { id: true } }).execute() +db.view.findOne({ id: '', select: { id: true } }).execute() +db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.view.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all view records + +```typescript +const items = await db.view.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a view + +```typescript +const item = await db.view.create({ + data: { databaseId: 'value', schemaId: 'value', name: 'value', tableId: 'value', viewType: 'value', data: 'value', filterType: 'value', filterData: 'value', securityInvoker: 'value', isReadOnly: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +```